Planetside Software Forums

General => Terragen Discussion => Topic started by: Doug on March 15, 2024, 09:14:43 PM

Title: i have a Default shader, what can i hook to the Displacement Image?
Post by: Doug on March 15, 2024, 09:14:43 PM
i have a Default shader
what can i hook to the Displacement Image?
i tried a Image map shader, no go

Thanks
Title: Re: i have a Default shader, what can i hook to the Displacement Image?
Post by: KlausK on March 15, 2024, 10:02:57 PM
You can load an image into the Displacement slot on the Displacement tab of the shader.
CHeers, Klaus
Title: Re: i have a Default shader, what can i hook to the Displacement Image?
Post by: Doug on March 15, 2024, 10:48:40 PM
thanks

i mean this one
Title: Re: i have a Default shader, what can i hook to the Displacement Image?
Post by: Dune on March 16, 2024, 02:32:54 AM
You're actually right, never noticed (I never used it); it doesn't take anything. While empty inside of course.

I would have expected it to take an image map shader, however that would coincide with the internal input field. Or if you internally import an image map, the triangle would dissappear. But the image map shader goes into the function input. BUG?
Title: Re: i have a Default shader, what can i hook to the Displacement Image?
Post by: Matt on March 16, 2024, 07:04:12 PM
Input triangles are shown for file inputs as well as node connections. We could remove them, but then you'd lose the ability to right-click on them to load files. That's a convenient feature.
Title: Re: i have a Default shader, what can i hook to the Displacement Image?
Post by: Doug on March 16, 2024, 07:56:16 PM
maybe the question is this

how come i can modify some inputs but not the image ones?
Title: Re: i have a Default shader, what can i hook to the Displacement Image?
Post by: Doug on March 16, 2024, 10:05:06 PM
maybe its that i can only edit an image in a paint program, then use it
the others are like displacement, are editable in Terragen
Title: Re: i have a Default shader, what can i hook to the Displacement Image?
Post by: Dune on March 17, 2024, 02:46:34 AM
@Matt : It is indeed convenient, I just noticed for the first time. I always loaded from inside. But if you load from outside, you don't see that anything is loaded until you look inside. A color change perhaps?

@Doug : Indeed, the only thing you can change after importing an image map is its color, contrast (for sharpening of soft lines for instance), and you can warp it.
Title: Re: i have a Default shader, what can i hook to the Displacement Image?
Post by: Matt on March 18, 2024, 09:16:26 PM
The image slots are not node connections, they are file loaders. The node UI is misleading in that sense because it makes them look like node connections. But that doesn't mean you're missing any functionality. For every image loader in the Default Shader there is also a corresponding "function" input which is a real node connection. The image slots are provided so that you don't need to create a separate Image Map Shader just to load a texture - they're kind of a shortcut. But if you need to do more, use the "function" inputs. You can plug an Image Map Shader into the function inputs, and then you can manipulate them with other shaders if you want to.
Title: Re: i have a Default shader, what can i hook to the Displacement Image?
Post by: Dune on March 19, 2024, 02:12:16 AM
Thanks Matt. I know the functionality, but never realized the 'misleading' inputs. Great node in any sense!