| View previous topic :: View next topic |
| Author |
Message |
yellowcello Lurker
Joined: 20 Jan 2003 Posts: 4 Location: NCCA bournemouth Uni
|
Posted: Mon Feb 17, 2003 1:48 pm GMT Post subject: vex troubles |
|
|
hello
I have sprites/particles which have the attribute $NUMHIT.
I want to write a shader in vex which will put a different image depending on weather numhit is >0.
In my sprite geometry object I have a grid sop and a pop net sop going into a copy sop. I have then added the createttribute sop ( adding the attribute numhit and making its value $NUMHIT) and finally a shop sop to attach the shader which i have written in vex.
The shader has parameter inputs of 2 colour maps and the parameter numhit. I have put an (if)statement so that if numhit is 1 put the first colour map, else use the other. It compiled fine but when I render i only ever get the first colour map as if numhit is always 0 when i can see clearly that it is not.
Any help would be much apreciated....
I have tried to visualise the attribute with a paint sop but the colour stays constant even when numhit is changing so i think that this might be where the problem lies?
Thanks in advance. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
|