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 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!

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?

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!

Mar 4, 2009 at 3:54pm

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

Processing versions available here:


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!


– Pasted Max Patch, click to expand. –
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.
Alberto / JesterN

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.


Mar 5, 2009 at 3:05pm

Great Thanks

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.



You must be logged in to reply to this topic.