DASD Posted July 22, 2014 Share Posted July 22, 2014 I have a square grid (512x512) of points with color attributes and I would like to turn them into a 512x512 pixel picture by transfering the data from the sop level into a COP. I am banging my head against the wall, because the data transfer does not seem to work properly. I am using a vopcop to try to get the point attribute values. - I want to do it this way, because I hope to maintain a certain level of interactivty by not rendering... After all, it seems like such a simple thing to do. All I would have to do (theoretically), would be to read each point color value and assign it to a pixel. - I suspect my math is flawed somewhere. Or my Houdini has a bug. Or Houdini just cannot compute for whatever reason... Maybe someone can figure it out? Thank you in advance! geoToCopExperiment.hipnc Quote Link to comment Share on other sites More sharing options...
mawi Posted July 22, 2014 Share Posted July 22, 2014 I have a square grid (512x512) of points with color attributes and I would like to turn them into a 512x512 pixel picture by transfering the data from the sop level into a COP. I am banging my head against the wall, because the data transfer does not seem to work properly. I am using a vopcop to try to get the point attribute values. - I want to do it this way, because I hope to maintain a certain level of interactivty by not rendering... After all, it seems like such a simple thing to do. All I would have to do (theoretically), would be to read each point color value and assign it to a pixel. - I suspect my math is flawed somewhere. Or my Houdini has a bug. Or Houdini just cannot compute for whatever reason... Maybe someone can figure it out? Thank you in advance! If you create point UVs on your grid, you can read the points in as a point cloud using the uv as the position channel. geoToCopExperiment.hipnc Quote Link to comment Share on other sites More sharing options...
DASD Posted July 22, 2014 Author Share Posted July 22, 2014 Works perfectly! Thank you very much! Quote Link to comment Share on other sites More sharing options...
pbarua Posted October 18, 2014 Share Posted October 18, 2014 Or you can use "render" cop to fetch mantra output without rendering to disk . Quote Link to comment Share on other sites More sharing options...
pezetko Posted October 19, 2014 Share Posted October 19, 2014 Or you can use vop cop2 generator node and generate pixel values directly from grid by it's indices. pz_pointsToPixels.hipnc 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.