Page 3 of 3

Re: Shader Thread

Posted: 19 Nov 2013, 20:10
by shermanpat
Getting some head way on understanding it. My issues is I don't see the input properties. How Do I expose the code values to the node properties?

Re: Shader Thread

Posted: 26 Nov 2013, 12:41
by ErikB
Just by declaring global variables at the beginning of the code - those are then exposed.

Also you can use much of the Ventuz information such as lights, materials or textures. Look at the help page for the HLSL shader for some more info.

Re: Shader Thread

Posted: 26 Nov 2013, 16:28
by TobiTobsen
Hey,
I am playing around with the shader node and did a Mandelbrot Shader, fine so far...
I am wondering how to trigger the shader to kind of recalculate the graphics. When I am zooming in, resolution of the drawn graphics do get pretty bad...
Thanks!
Cheers,
Tobi

Re: Shader Thread

Posted: 05 Dec 2013, 17:31
by Karol
Kind of dual-layer metallic shader - taken from ATI demo.
Metal.jpg
Your geometry needs proper UV coordinates!

Re: Shader Thread

Posted: 06 Dec 2013, 20:09
by chriss0212
hey karol

very nice! THX

greetz

christian

Re: Shader Thread

Posted: 04 Jan 2014, 12:50
by TobiTobsen
Hey!
find a simple Mandelbrot Shader attached... I like them a lot, really good ones look a lot better than mine :-).
Vza is done with the PLE.

Cheers,
Tobi

Re: Shader Thread

Posted: 22 Jan 2014, 09:37
by gabrielefx
any plan to develop a velvet shader?

thank you.

Re: Shader Thread

Posted: 22 Jan 2014, 10:24
by Karol
Hi!

Could you post some sample images what you expect?

Karol

Re: Shader Thread

Posted: 13 Mar 2014, 18:34
by shermanpat
Trying to figure out an error in a shader.

error is:
"global variables cannot use the "half" type in ps_3_0. To treat this variable as a float use the backwards compatibilty flag"

this is the line of code getting the error.


QUAD_REAL2 QuadScreenSize : VIEWPORTPIXELSIZE <
string UIName="Screen Size";
string UIWidget="None";
>;

Do i just need to get the screen size in a different way. This is sample code that i am trying to use.

Re: Shader Thread

Posted: 13 Mar 2014, 19:44
by shermanpat
ok posted too soon, found a fix.

#define QUAD_REAL float
#define QUAD_REAL2 float2 //This was set to "half2" just had to set it to "float2"
#define QUAD_REAL3 half3
#define QUAD_REAL4 half4


This for a shadow from a single light point. Got the code to compiled right, now i have to figure out how to set up the ventuz scene and feed position data to the shader. This might take a while...