@asabanapal wrote:
Hi
I'm looking to be able to select and transform individual 3D objects and aim to implement some simple transform GUI tools as 3D geometry (a 3-axes move/drag tool, a 3-axes rotate tool and a 3-axes scale tool).
In order to do that I need to be able to first select the geometry I want to transform and then select the individual axes of the transform tool I want to use.
So basically I need to be able to achieve mouse rollover/rollout and mouse click/release of these 3D elements.
I don't know much about 3D hit-testing but after a little research it seems like drawing individual elements using different draw colours to an FBO and then using the mouse position on that FBO to return the colour at that pixel, along with a lookup table to associate the 3D elements with the colour, seems to be a fairly solid and reliable way of doing this. I have come across it in a few searches now but the principle's described here (in the answer to the post) http://gamedev.stackexchange.com/
I think I will be able to do this myself, but it would save me a lot of time if this has already been implemented for OF? Could anyone tell me if they know of an addon that does this (or indeed anything that will achieve the same) so I don't have to reinvent the wheel?
Thanks
Posts: 6
Participants: 2