1. 3d gl camera
- Posted by spent memory <spent.memory at gmail.com> Nov 19, 2004
- 595 views
ok heres the problem, i am able to get camera fluctuations from the program, like X points to the right or left and up or down, i am having an extremely hard time sending these values to an equation to get a desirable 3d camera feel. i have trawled the net and everything out there either wants to be a class or structures and now i see a piece of c++ code i feel like crash tackling my computer off the desk. can any 1 suggest a simple camera translation algorithm for rotating the camera around its own y axis and x axis i can handle the rest thanx Joe
2. Re: 3d gl camera
- Posted by spent memory <spent.memory at gmail.com> Nov 19, 2004
- 541 views
i came close to the desired feel using the following code gl_translatef({-camdiff[X],-camdiff[Y],0.0}) gl_rotatef(1.0,{camdiff[Y],0.0,0.0 }) gl_rotatef(1.0,{0.0,camdiff[X],0.0 }) it just doesn't cut it tho :( On Fri, 19 Nov 2004 13:34:21 +1000, spent memory <spent.memory at gmail.com> wrote: > > > ok heres the problem, i am able to get camera fluctuations from the > program, like X points to the right or left and up or down, i am > having an extremely hard time sending these values to an equation to > get a desirable 3d camera feel. i have trawled the net and everything > out there either wants to be a class or structures and now i see a > piece of c++ code i feel like crash tackling my computer off the desk. > can any 1 suggest a simple camera translation algorithm for rotating > the camera around its own y axis and x axis i can handle the rest > > thanx Joe > >
3. Re: 3d gl camera
- Posted by cklester <cklester at yahoo.com> Nov 19, 2004
- 541 views
spent memory wrote: > > can any 1 suggest a simple camera translation algorithm for rotating > the camera around its own y axis and x axis i can handle the rest In case you didn't see these: http://www.cklester.com/euphoria/?eu_opengl Also, Evan Marshall has translated a lot of NeHe's OpenGL tutorials... http://nehe.gamedev.net/ There is Euphoria code for a LOT of those OpenGl tutorials. It's awesome. Evan has done great work with that. Check it out! -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
4. Re: 3d gl camera
- Posted by spent memory <spent.memory at gmail.com> Nov 19, 2004
- 546 views
ok thanx for the help, i have already been thru most of the NeHe OpenGl tuts and found that where there is a camera class involved there is no Eu code, i think mainly due to the nightmare of implementing classes and structure styles in Eu, not to say it cannot be done tho. i have seen your GL stuff maybe that can help, i will look in more detail, i dont remember seeing anything to do with a dynamic 3d camera in there tho :/ thanx Joe On Thu, 18 Nov 2004 19:45:37 -0800, cklester <guest at rapideuphoria.com> wrote: > > posted by: cklester <cklester at yahoo.com> > > spent memory wrote: > > > > can any 1 suggest a simple camera translation algorithm for rotating > > the camera around its own y axis and x axis i can handle the rest > > In case you didn't see these: > > http://www.cklester.com/euphoria/?eu_opengl > > Also, Evan Marshall has translated a lot of NeHe's OpenGL tutorials... > > http://nehe.gamedev.net/ > > There is Euphoria code for a LOT of those OpenGl tutorials. It's awesome. > Evan has done great work with that. Check it out! > > -=ck > "Programming in a state of EUPHORIA." > http://www.cklester.com/euphoria/ > > > >
5. Re: 3d gl camera
- Posted by cklester <cklester at yahoo.com> Nov 19, 2004
- 545 views
spent memory wrote: > > be done tho. i have seen your GL stuff maybe that can help, i will > look in more detail, i dont remember seeing anything to do with a > dynamic 3d camera in there tho :/ I don't even know exactly what you mean by a "dynamic 3d camera," so I know I can't be of much help. But I know that there is camera movement code at NeHe and on my site... let me know if you find what you need, or define "dynamic 3d camera" for me! :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
6. Re: 3d gl camera
- Posted by Evan Marshall <1evan at sbcglobal.net> Nov 19, 2004
- 544 views
spent memory wrote: > > ok thanx for the help, i have already been thru most of the NeHe > OpenGl tuts and found that where there is a camera class involved > there is no Eu code, i think mainly due to the nightmare of > implementing classes and structure styles in Eu, not to say it cannot > be done tho. i have seen your GL stuff maybe that can help, i will > look in more detail, i dont remember seeing anything to do with a > dynamic 3d camera in there tho :/ > > thanx Joe > > > On Thu, 18 Nov 2004 19:45:37 -0800, cklester <guest at rapideuphoria.com> > wrote: > > > > posted by: cklester <cklester at yahoo.com> > > > > spent memory wrote: > > > > > > can any 1 suggest a simple camera translation algorithm for rotating > > > the camera around its own y axis and x axis i can handle the rest > > > > In case you didn't see these: > > > > <a > > href="http://www.cklester.com/euphoria/?eu_opengl">http://www.cklester.com/euphoria/?eu_opengl</a> > > > > Also, Evan Marshall has translated a lot of NeHe's OpenGL tutorials... > > > > <a href="http://nehe.gamedev.net/">http://nehe.gamedev.net/</a> > > > > There is Euphoria code for a LOT of those OpenGl tutorials. It's awesome. > > Evan has done great work with that. Check it out! > > > > -=ck > > "Programming in a state of EUPHORIA." > > <a > > href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a> > > > > I've been thinking about porting the camera class. Been busy writing a board game. I need a break from it though, so maybe I'll look into the camera.
7. Re: 3d gl camera
- Posted by spent memory <spent.memory at gmail.com> Nov 19, 2004
- 551 views
ill be forever in your debt if you port that class for me, i attempted it about 6 months ago , ended in disaster and turned me off gl, is good code if u can wrap it without losing alot of it's class features by the way ck, by dynamic i mean free from and independant of the gl_begin and gl_end or draw() routine, i need to be able to assign other transforms aswell as be able to assign the cam to an object etc etc * prolly not the best choice of word in that case thanx joe On Thu, 18 Nov 2004 20:09:54 -0800, Evan Marshall <guest at rapideuphoria.com> wrote: > > posted by: Evan Marshall <1evan at sbcglobal.net> > > > spent memory wrote: > > > > ok thanx for the help, i have already been thru most of the NeHe > > OpenGl tuts and found that where there is a camera class involved > > there is no Eu code, i think mainly due to the nightmare of > > implementing classes and structure styles in Eu, not to say it cannot > > be done tho. i have seen your GL stuff maybe that can help, i will > > look in more detail, i dont remember seeing anything to do with a > > dynamic 3d camera in there tho :/ > > > > thanx Joe > > > > > > On Thu, 18 Nov 2004 19:45:37 -0800, cklester <guest at rapideuphoria.com> > > wrote: > > > > > > posted by: cklester <cklester at yahoo.com> > > > > > > spent memory wrote: > > > > > > > > can any 1 suggest a simple camera translation algorithm for rotating > > > > the camera around its own y axis and x axis i can handle the rest > > > > > > In case you didn't see these: > > > > > > <a > > > href="http://www.cklester.com/euphoria/?eu_opengl">http://www.cklester.com/euphoria/?eu_opengl</a> > > > > > > Also, Evan Marshall has translated a lot of NeHe's OpenGL tutorials... > > > > > > <a href="http://nehe.gamedev.net/">http://nehe.gamedev.net/</a> > > > > > There is Euphoria code for a LOT of those OpenGl tutorials. It's awesome. > > > Evan has done great work with that. Check it out! > > > > > > -=ck > > > "Programming in a state of EUPHORIA." > > > <a > > > href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a> > > > > > > > I've been thinking about porting the camera class. Been busy writing a > board game. I need a break from it though, so maybe I'll look into the > camera. > > > > >