Vex raytrace

   4660   6   2
User Avatar
Member
2199 posts
Joined: July 2005
Online
Would anyone else find it useful to be able to pick up attributes other than just Cd and Alpha using the raytrace function?
Or is there a way to do this already?
The trick is finding just the right hammer for every screw
User Avatar
Member
7025 posts
Joined: July 2005
Offline
Oh, it would be very useful.
User Avatar
Member
941 posts
Joined: July 2005
Offline
Simon
Would anyone else find it useful to be able to pick up attributes other than just Cd and Alpha using the raytrace function?
Or is there a way to do this already?

I remember requesting this a while back… maybe H9 will have some way of going about it.
For now though, what attributes do you need?
trace() will give you Cf, Of, and Af, and rayhittest() can give you P and N.
Outside of that, I think you're stuck.
Mario Marengo
Senior Developer at Folks VFX [folksvfx.com] in Toronto, Canada.
User Avatar
Member
2199 posts
Joined: July 2005
Online
That's what I figured, I was hoping to pick up geometry point attributes….
Have to make do with munging the Cd and Alpha I think, its a bit limited though. It's just for an idea at the moment nothing serious, that's why I was wondering if other people had use of such a thing before RFEing it.
The trick is finding just the right hammer for every screw
User Avatar
Member
13 posts
Joined: July 2005
Offline
Just an idea that could maybe work ( but takes more work on your side ):
-Merge all your objects into one
-Save that as bgeo
-Rayhittest in your shader to get the hit position
-use pointcloud functions with your hit position and your previously saved bgeo to get the attributes you want.

Sven
User Avatar
Member
2199 posts
Joined: July 2005
Online
Yeah thought about that, the only problem is when you are between points you have to sample a radius, in my case I really wanted to get the interpolated value straight off the geometry rather than getting an average off potentially several surfaces.
The trick is finding just the right hammer for every screw
User Avatar
Member
13 posts
Joined: July 2005
Offline
Theres a MartinLabs plugin that does what you want:

http://martian-labs.com/products.php?product=raysteal [martian-labs.com]

Sven
  • Quick Links