Message 1 of 5
Cast a ray manually?

Not applicable
01-29-2008
06:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to specify an initial point and a direction vector and have maya give me back the coordinates of the first point the ray hits. It seems like this shouldn't be that hard to do, but I've been going crazy for a couple of weeks looking online and have found nothing of the sort.
Basically I want a point cloud model of the visible surface of some objects in a scene. I tried using the global variable aPointW but it ends up samples the objects uniformly on the surface; I'd like to sample them with uniform space between the rays cast from the camera.
Does this make sense? Is it possible?
Thanks!
David
Basically I want a point cloud model of the visible surface of some objects in a scene. I tried using the global variable aPointW but it ends up samples the objects uniformly on the surface; I'd like to sample them with uniform space between the rays cast from the camera.
Does this make sense? Is it possible?
Thanks!
David