rendertarget issue

rendertarget issue

Postby ello » Friday, 01.February 2013, 22:43

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
ello
OP-Schieber
OP-Schieber
 
Posts: 13
Joined: Monday, 21.January 2013, 18:09

Re: rendertarget issue

Postby ikam » Saturday, 02.February 2013, 09:05

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 ?
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: rendertarget issue

Postby ello » Saturday, 02.February 2013, 10:36

no, i rebuilt it and checked that the settings where all the same by switching between two instances of werkzeug...
ello
OP-Schieber
OP-Schieber
 
Posts: 13
Joined: Monday, 21.January 2013, 18:09

Re: rendertarget issue

Postby ikam » Saturday, 02.February 2013, 12:17

can you post your file ? I will examine it
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: rendertarget issue

Postby ello » Saturday, 02.February 2013, 15:35

here you go...
You do not have the required permissions to view the files attached to this post.
ello
OP-Schieber
OP-Schieber
 
Posts: 13
Joined: Monday, 21.January 2013, 18:09

Re: rendertarget issue

Postby ikam » Saturday, 02.February 2013, 18:36

ok it's done, you forgot an operator, see comments
You do not have the required permissions to view the files attached to this post.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: rendertarget issue

Postby ello » Saturday, 02.February 2013, 18:46

wow, thank you very much! what exactly does rendermesh do?
ello
OP-Schieber
OP-Schieber
 
Posts: 13
Joined: Monday, 21.January 2013, 18:09

Re: rendertarget issue

Postby ikam » Sunday, 03.February 2013, 09:29

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...
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: rendertarget issue

Postby ello » Sunday, 03.February 2013, 10:05

thank you for the input here
ello
OP-Schieber
OP-Schieber
 
Posts: 13
Joined: Monday, 21.January 2013, 18:09


Return to Support



Who is online

Users browsing this forum: No registered users and 3 guests

cron