Hi All
I am writting a program that presents some 3D objects. It allows the user to rotate and translate object in space and also to select an object. Currently I use selection and feedback.
I thought if I could know the location in space of each primitive after transformation, i can gluUnProject the mouse (with winz = 0) and find the closest object without select buffer.
For this i need to implement the transformations myself. I implemented all exacept rotation around the Z global axis. I tried but it doens’t work and i don’t know why.
My questions are:
- Do you think my idea for the selection can work?
- Does anyone have a reference for implemented transformations?
Thank you All