Real Software Forums
http://forums.realsoftware.com/

OpenGL example
http://forums.realsoftware.com/viewtopic.php?f=4&t=37425
Page 1 of 1

Author:  DaveS [ Thu Feb 03, 2011 3:12 pm ]
Post subject:  OpenGL example

does someone have a simple RealStudio example of moving a camera [fwd/back/left/right/ and rotate] through a simple grid with random cubes?

Author:  jquan [ Fri Feb 04, 2011 3:38 pm ]
Post subject:  Re: OpenGL example

The first six OpenGL tutorials on Nehe's site http://nehe.gamedev.net/ have a REALbasic equivalent that you can download. Click into the lesson, read up and learn, and at the bottom you'll find the code example.

Should be enough to get you started.

Author:  DaveS [ Fri Feb 04, 2011 4:30 pm ]
Post subject:  Re: OpenGL example

I didn't see any RB examples.... tons of "C" code [which I can figure out if I have to], but would rather not decypher "C" and try and learn OPENGL from that at the same time... Plus no where did I see any real explanation of "WHY" things were done,

but thanks anyways.

Author:  jquan [ Fri Feb 04, 2011 5:39 pm ]
Post subject:  Re: OpenGL example

Here are the direct links to the RB files:
http://nehe.gamedev.net/data/lessons/realbasic/RBlesson02.zip
http://nehe.gamedev.net/data/lessons/realbasic/RBlesson03.zip
http://nehe.gamedev.net/data/lessons/realbasic/RBlesson04.zip
http://nehe.gamedev.net/data/lessons/realbasic/RBlesson05.zip
http://nehe.gamedev.net/data/lessons/realbasic/RBlesson06.zip

Author:  basestring [ Sun Mar 18, 2012 6:05 pm ]
Post subject:  Re: OpenGL example

Those Lessons do not compiles, tons of errors.
also if I play around with the code, till all errors are gone, then I get an application Crash report

Author:  mauitom [ Sun Mar 18, 2012 7:23 pm ]
Post subject:  Re: OpenGL example

I did those a very, very long time ago ... you're welcome ... :roll:

Shouldn't take much to clear the errors, not sure about crash. If I get some time I'll try and clear up the errors or perhaps I'll have the lessons removed.

I had a project, again a very long time ago, that did what you were asking for Dave. Not sure if it's still on this computer, probably not.

Great learning here,
http://www.songho.ca/opengl/index.html

Google, "opengl tutorial camera movement". Most recent write-ups are for ESOpenGL, iPhones, etc. Same thing really. ES is embedded systems and it is a subset of functions for the desktop.

The convenience function call that will allow you to move the eye point around is gluLookAt(....). If for example you use lesson five from NeHe as a stating point, you'd make this call in the InitGL method of the LessonFive class. It's tricky getting the three vectors correct.

Author:  mauitom [ Sun Mar 18, 2012 10:01 pm ]
Post subject:  Re: OpenGL example

Here are updated versions of Lessons 2-6 from the NeHe site. Please let me know if something is foobar. Mac Carbon only.

http://bigdaddysurf.com/blog/?p=488

Author:  goomoo [ Thu Jun 14, 2012 5:03 am ]
Post subject:  Re: OpenGL example

http://www.real3dtutorials.com/

:)

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/