Planetside Software Forums

General => Terragen Discussion => Topic started by: james adamson on August 22, 2020, 01:07:32 PM

Title: default shader image inputs
Post by: james adamson on August 22, 2020, 01:07:32 PM
Hi all.

I am trying to connect images to the default shaders'  image inputs but can only connect to the function inputs.

I am trying image map shader-default shader. No joy. I want to be able to break the image into different passes before being utilised in the default shader.

Cheers.

James.
Title: Re: default shader image inputs
Post by: WAS on August 22, 2020, 01:16:35 PM
The image inputs only take images, otherwise you would chain image map shaders with the function inputs.
Title: Re: default shader image inputs
Post by: james adamson on August 22, 2020, 01:26:31 PM
Right that makes sense, I am obviously missing a very basic function. How do I get an image into my scene other than through the 
image map shader?
Title: Re: default shader image inputs
Post by: WAS on August 22, 2020, 01:31:08 PM
Just the image map shader if you aren't using the default shader to load the images in it itself. There is the geog image map shader, but it expects geotiffs and dems I believe.

What exactly are you trying to do with an image?
Title: Re: default shader image inputs
Post by: james adamson on August 22, 2020, 01:43:18 PM
I am confused! If the image map shader is the only way to get an image into the scene. (which is how I have been working.)
And if you can only plug the image map shader into a function input on the default shader. How do I get an image connected to any of the image inputs on the default shader?
What I am trying to do is to edit my image to extract very rough bump and  spec passes that would then feed into the default shader.
I can not find any way to connect to any of the image inputs :o
Cheers.
J.
Title: Re: default shader image inputs
Post by: WAS on August 22, 2020, 01:46:25 PM
The default shaders Images load a image itself. Like the Image Map Shader. You don't plug anything into it. Right click the input and it'll trigger a file prompt to load up a image. Or if inside the shader (see image).

Image -> Expects an image file
Function -> Expects Shaders like an Image Map Shader
Title: Re: default shader image inputs
Post by: james adamson on August 22, 2020, 01:53:37 PM
I don't think I am explaining this very well.
Up to now I have been using the default shader as you describe. Importing the image straight into the shaders image slot.
What I am not getting to work is how to add an image to the default shader using the exposed input in the schematic.
Title: Re: default shader image inputs
Post by: WAS on August 22, 2020, 02:06:27 PM
Quote from: WAS on August 22, 2020, 01:46:25 PMRight click the input and it'll trigger a file prompt to load up a image.
That's how you would add images from the node tree without opening the shader.  I recorded a small video.

Otherwise, I don't think I understand.
Title: Re: default shader image inputs
Post by: cyphyr on August 22, 2020, 04:06:30 PM
You can load an image with the image node and then plug that into any of the function inputs on the default shader.
Here I added a transform node between the image loader and the default node. Not required but it can be useful sometimes.

image.JPG
Title: Re: default shader image inputs
Post by: james adamson on August 22, 2020, 08:10:29 PM
WAS, your amazing. Thanks. I never thought to right click, and I also assumed that connecting an image to the exposed input triangle would allow you to have an image in the node graph but of course thats Nukey flamey workflow. Glad thats cleared up.
And thank you too Cyphr. Also super helpful.
Cheers.