ArBuZ Posted April 4, 2010 Share Posted April 4, 2010 Hi everybody! Ive got a problem. I'm making a raycast. And if I pick a surface I want to get UV coordinates at picked point. Is it possible to do? Maybe someone already done this before. I have some ideas, but wanted to know your opinion first. Thanks in advanced. Quote Q6600@2.4GHz - 9600GT - 4GB DDR2@800MHz - Windows7 x64 3ds max / photoshop CS3 / C++ http://www.arbuznikov.com Link to comment Share on other sites More sharing options...
Masterxilo Posted April 5, 2010 Share Posted April 5, 2010 If the TPick::triangle field works, I'd use that together with the surface mesh to find all the vertices of the hit triangle, and then do some math to find out the UV value at the hit position. I guess that what you had in mind. I wouldn't know another way. Quote Hurricane-Eye Entertainment - Site, blog. Link to comment Share on other sites More sharing options...
ArBuZ Posted April 6, 2010 Author Share Posted April 6, 2010 Yes, this is exactly the way I go. But the most intersting thing is "some math" I think Ive found solution, but have to test it. Someimes it doesn't work Quote Q6600@2.4GHz - 9600GT - 4GB DDR2@800MHz - Windows7 x64 3ds max / photoshop CS3 / C++ http://www.arbuznikov.com 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.