VEX geometry operator UV / Partition question

   3291   2   0
User Avatar
Member
113 posts
Joined: July 2005
Offline
Hi,

I want to achieve this :
-Apply an image map on a grid and delete points of the grid whose color are less than 230 230 230

So basically what I do is :

-Create a grid
-Create a VEX geometry operator : global(P) -> vector to float -> (u v)colormap ->(Cd)Output

- Apply the vex geo operator in SOP
- Partition using color rule
- Blast

Now my problems/questions are :

- In Vex geometry operator , there are no “Uv space change” so my color map doesn't apply correctly, the UV seems wrong. Any ideas for that ?

- My partition operator has created a group for each different color, is there a way to group together point that have Cd > 230 230 230 ?


Thanks in advance !
Julien
User Avatar
Member
1631 posts
Joined: July 2005
Offline
Hey Julien,

You're connecting the position (P) of the geometry into the UV of the Colormap VOP which works correctly only if the grid is positioned with its lower left corner at the origin (0,0,0) & it is 1 unit by 1 unit.

It is better to assign UV to the geometry then read the UV in the VOPnet:

Parameter VOP -> Vector to Float -> U,V of Colormap VOP

To group the points/primitives, I used a Group SOP with Number (Enable), Operation set to “Group by Expression” & typed in the following:
$CR<230/255 && $CG<230/255 && $CB<230/255
You can download the hip file here [users.adelphia.net].

Cheers!
steven
User Avatar
Member
113 posts
Joined: July 2005
Offline
Hi Steve,

I believed my UV stuff that wasn't right :?
Anyway, now that's working perfectly, thanks for helping ! and for the help file !



Cheers,

Julien
  • Quick Links