Planetside Software Forums

General => Terragen Discussion => Topic started by: sjefen on January 13, 2010, 09:59:21 AM

Title: Paint Shader Question
Post by: sjefen on January 13, 2010, 09:59:21 AM
It seams the rendering is being slower if the painted shader is just a little bigger.
Is it supposed to be this way?

Regards,
Terje
Title: Re: Paint Shader Question
Post by: rcallicotte on January 13, 2010, 10:11:19 AM
Have you tried using the Paint Shader in the Terrain module?  This speeds everything up.
Title: Re: Paint Shader Question
Post by: Kevin F on January 13, 2010, 10:13:45 AM
Quote from: sjefen on January 13, 2010, 09:59:21 AM
It seams the rendering is being slower if the painted shader is just a little bigger.
Is it supposed to be this way?

Regards,
Terje

How do you mean? A little bigger than what?
Title: Re: Paint Shader Question
Post by: sjefen on January 13, 2010, 10:22:43 AM
Well.... I had painted something that was supposed to mask away something in the scene, then I wanted to get rid of a little more so I painted a little more. Not much, but the rendertime went noticeable up.

- Terje
Title: Re: Paint Shader Question
Post by: Henry Blewer on January 13, 2010, 10:32:52 AM
The painted shader layered itself would be my guess. Erase or clear the painted shader first, then draw a new one.
Title: Re: Paint Shader Question
Post by: sjefen on January 13, 2010, 10:35:19 AM
Yeah.... I just tried painting a new one and the rendering is much faster :)
I don't understand why it has to layer itself like that tho. Would be nice if I could just continue paining ::)

Regards,
Terje
Title: Re: Paint Shader Question
Post by: Henry Blewer on January 13, 2010, 10:38:58 AM
I think there is an option to do that. I rarely use the painted shader. I like the 'accident' way of using a distribution shader with a density fractal.
Title: Re: Paint Shader Question
Post by: sjefen on January 13, 2010, 11:43:37 AM
Hmmm..... I need to figure out that one.

- Terje
Title: Re: Paint Shader Question
Post by: jo on January 13, 2010, 07:41:21 PM
Hi Terje,
Quote from: sjefen on January 13, 2010, 10:35:19 AM
Yeah.... I just tried painting a new one and the rendering is much faster :)
I don't understand why it has to layer itself like that tho. Would be nice if I could just continue paining ::)
The Painted shader is procedural rather than being as if you were painting into a bitmap. This means it's resolution independent, kind of like a vector illustration is. It records your strokes. Strokes are layered because an erase stroke is like a negative stroke. If an erase stroke covers a paint stroke then it knows not to show anything there. When you erase nothing is actually deleted as such.

At some point we may have an option to bake the painted shader so you can use it's output as image map.

Regards,

Jo
Title: Re: Paint Shader Question
Post by: tempaccount on January 14, 2010, 03:52:22 AM
Wow, that's a good bit of info. Thanks Jo!

How does the projection in the painted shader actually work then? It just projects a plane through the "active" strokes through the axis that's specified in the transform tab?

Lets say I would paint on a plane object that's 4km away. Would the projection look different through the same camera if I painted on a plane that's only 100m away?
Title: Re: Paint Shader Question
Post by: Matt on January 16, 2010, 01:49:49 PM
The strokes are recorded in 3D space wherever you paint them, but the projection is done during rendering and can be changed after the stokes have been painted. The strokes are projected (stretched) along whichever axis you choose so that you can change the terrain without the strokes becoming disconnected from the terrain. If you choose 3D projection, the paint only applies within the original strokes in 3D space and is therefore very sensitive to changes in the geometry you project it onto.