macklebee Posted June 24, 2010 Share Posted June 24, 2010 How can you determine what vertex index you are grabbing from a particular triangle or surface? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
macklebee Posted June 24, 2010 Author Share Posted June 24, 2010 For example: you have a 5mx5m mesh plane that has a 5x5 division resulting in 50 triangles that are all using the exact same material (which then would be considered one surface). Now using a pick based on mouse position on the mesh, how would you determine what vertex your mouse was over? I do not see a GetVertex() or GetTriangle() that could allow you determine which vertex index you are near... and you need this vertex index to be able to get/set the vertex position, color, etc.. Unless I am missing something obvious, it appears theres a command missing in the wiki? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Masterxilo Posted June 25, 2010 Share Posted June 25, 2010 TPick::triangle Quote Hurricane-Eye Entertainment - Site, blog. Link to comment Share on other sites More sharing options...
macklebee Posted June 26, 2010 Author Share Posted June 26, 2010 thanks masterxilo... i just tried it in lua and it always returns a zero. I haven't tried it yet in bmax but will do so tomorrow after a good night's rest. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
macklebee Posted June 26, 2010 Author Share Posted June 26, 2010 hmmm. it returns 0 in a bmax program as well... does this work anymore? I am using 2.32... perhaps I should try earlier versions... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
macklebee Posted June 26, 2010 Author Share Posted June 26, 2010 does pick.triangle only work for C? can anyone thats using C or C++ check to see if it returns anything besides zero? In lua and bmax that's all it ever returns... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel 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.