moving into a openGL space

Mar 4, 2009 at 1:38pm

moving into a openGL space

Hi all,
i’m trying to build a 3d universe and move the camera inside pointing the mouse on the direction i want to reach. I find it quite difficult. I’d like to giev some coordinates by pointing the mouse on the render window and control a speed parameter to move inside. The problem is feeding the right parameters to the camera base on its current position and “look at” vector. After some trigonometry i thought maybe getting information form the jit.gl.handle would be much easier. Anyone should have tried something similar. Any idea/code sample on how to do that?
Any discussion is much appreciated, i see it quite challenge for me!
Thanks
Alberto

#42653
Mar 4, 2009 at 3:07pm

I don’t know if it could help you, but you should have a look at AdvancedCamera.pat example?

#152696
Mar 4, 2009 at 3:27pm

Thanks Kyred it looks really nice! I’ll have a look… Did not think it could be so difficult… but it’s a good starting point saving me lots of maths!
Cheers
Alberto/JesterN

#152697
Mar 4, 2009 at 3:54pm

I’ve made several different GL navigators here that allow you to fly around 3D-engine-like.

http://www.zacharyseldess.com/z.glNav.html

Processing versions available here:
http://www.zacharyseldess.com/processing-z_3Dnavs.html

best,
Zachary

#152698
Mar 5, 2009 at 6:00am

Here’s a click-and-drag camera rotation patch that I just whipped up. Made something like this in Processing and have been meaning to put a Max version together. So here it is. Hope someone finds it useful!

best,
Zachary

– Pasted Max Patch, click to expand. –
#152699
Mar 5, 2009 at 1:12pm

Hi Zach, thanks i’ll try your stuff soon. In the mean time i managed to modify the ”advanced camera” example and it works quite fine. But i can always learn from more experience user! By the way would it be possible for you to re-post the previous patch in max 4 format? I’m still old school Wink.
Cheers
Alberto / JesterN

#152700
Mar 5, 2009 at 2:06pm

Here’s a snapshot of the Max5 patch. You can download the patch and run it through that SC converter script – that should work as there are no Max5-only objects.

best,
Zachary

#152701
Mar 5, 2009 at 3:05pm

Great Thanks
A/J
Smile

#152702
Mar 5, 2009 at 3:10pm

I just made it into an abstraction, for ease of use. I’ve attached it here, and also included it in my abstraction package on the website. Picture included as well.

best,
Zachary

#152703

You must be logged in to reply to this topic.