FAQ FAQ      Search Search      Memberlist Memberlist      Usergroups Usergroups      Register Register      Profile Profile      Check private messages Check private messages      Log in Log in     

vex troubles

 
Post new topic   Reply to topic    Houdini Forum Index -> Technical Discussion
View previous topic :: View next topic  
Author Message
yellowcello
Lurker


Joined: 20 Jan 2003
Posts: 4
Location: NCCA bournemouth Uni

PostPosted: Mon Feb 17, 2003 1:48 pm GMT    Post subject: vex troubles Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Houdini Forum Index -> Technical Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


phpBB component v1.2.4 RC3 by Adam van Dongen. Based on phpBB © 2001, 2002 phpBB Group