On 15 Dec 2005, at 21:15, Marco Bambini wrote:
On Dec 15, 2005, at 10:11 PM, Mars Saxman wrote:
On Dec 15, 2005, at 12:54 PM, Marco Bambini wrote:
I know that there isn't a way to add global constants inside a
plugin so my idea is to extend the RealBasic class and just add
to it the constants I need.
Why not just accept the way the system is designed to work and put
your constants into a module?
Because I would like to reduce the time needed to convert C opengl
code to RB.
It should be nice if constants can be used as is, without the needs
to append a moduleName. in each of them...
A few smart regexes should do the trick Marco. I've done this sort of
thing before. You can convert one kind of listing into another, using
some nice regexes.
Also, really I wouldn't bother with the OpenGL. It's been done. It's
been done maybe 8 years ago by xmath, and then by Doug Houlton, and a
whole bunch of other people.
There should already be a few OpenGL plugins around for all platforms
(except linux).
Eventually most people found that OpenGL while nice, doesn't make
coding for 3D easy unless you are an OpenGL master. Simple demos
aren't too bad to make using OpenGL, but to make a good game, it's
really not simple. OpenGL is hard enough to build large systems out
of what with it's OpenGL states and that, but then you need a whole
extra layer of complexity due to having to jump through hoops to
maintain speed.
Did you know that many of the best games, don't even use most of
OpenGL's API??? They just write a whole TON of triangles into an
OpenGLVertexArray (or whatever it's called), and dump the entire
scene through one API call. Instead of getting OpenGL to do all the
translation and processing, they do it themselves and use very little
OpenGL at all. This is simply because the OpenGL API isn't the best
designed for getting good gaming speed with modern games.
Also, OpenGl doesn't offer you everything you need. You'll still some
other code for things like space culling (Where objects that can't be
seen don't get drawn). And then there's collision detection. OpenGL
gives you no ability for collision detection... So you need to write
a simple and extensible, yet fast framework for collision detection.
Unless you are an OpenGL and game master I wouldn't really bother
making an OpenGL plugin.
It would be nice to see some kind of OpenGL plugin as good as my
ElfData plugin. IE something that took a complex subject and made it
fast and simple to use. Not seen it yet.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|