Page 1 of 1

rendertarget issue

PostPosted: Friday, 01.February 2013, 22:43
by ello
hi there,
today i had a look at the rendertargets. in the example.wz4 v0.146 there is a modmaterial which seems to have some responsible shadercode. i rebuilt the ops in my own wz4 file but the modmaterial has a different shader code. how can i change the shader code?

thanks in advance.
cheers,
ello

Re: rendertarget issue

PostPosted: Saturday, 02.February 2013, 09:05
by ikam
you can't directly edit the shader code generated by modmaterial, the shader code is generated by operators, is to avoid to have to write in hlsl the shader, there is custommaterial for that.

you mean that when you copy the ops in your file the visual result is not the same ?

Re: rendertarget issue

PostPosted: Saturday, 02.February 2013, 10:36
by ello
no, i rebuilt it and checked that the settings where all the same by switching between two instances of werkzeug...

Re: rendertarget issue

PostPosted: Saturday, 02.February 2013, 12:17
by ikam
can you post your file ? I will examine it

Re: rendertarget issue

PostPosted: Saturday, 02.February 2013, 15:35
by ello
here you go...

Re: rendertarget issue

PostPosted: Saturday, 02.February 2013, 18:36
by ikam
ok it's done, you forgot an operator, see comments

Re: rendertarget issue

PostPosted: Saturday, 02.February 2013, 18:46
by ello
wow, thank you very much! what exactly does rendermesh do?

Re: rendertarget issue

PostPosted: Sunday, 03.February 2013, 09:29
by ikam
I didn't 't study its code, but it seems to convert a mesh operator into a scene node (and optimize the mesh for rendering) normally a transform (yellow operator) below a mesh opertor do the same thing before apply transformation but maybe there is a bug like in your case and it doesn't convert correctly the mesh to scene, so sometime it's good to use renderMesh for a mesh before "yellow" operations...

Re: rendertarget issue

PostPosted: Sunday, 03.February 2013, 10:05
by ello
thank you for the input here