Mail Archives: djgpp/1996/11/21/12:02:23
> I've just downloaded djgpp v2 with a view to using it to do some 3D
> graphics programming. I'm not particularly interested in developing my
> own 3D graphics library, it is the application that is my motivation
> (flight sim). Since I'm new to djgpp I was wondering if anyone out there
> could recommend a grahics library. For example, Allegro, jlib etc. Does
> a 3D library already exist? If not which base graphics library would you
> consider to be the best one to use if I were to develop my own 3D
> routines? Thanks in advance.
Well, 3D has a lot of bits to it. Allegro does no 3D, but is a godsend
if you don't like writing your own video drivers. The second bit is the
vector and matrix math that you will need to rotate vectors, perspective
correct them etc.. I've written a simple C++ lib, but it's child's play
to write your own. The third, and most critical, is the polygon drawing
engine. The problem with this is that it has to be *FAST*. There is no
way you can avoid using assembler unless your target is a 16 processor
P6. The other problem with it is that using a third party library (like
OpenGL, DirectX, whatever) is usually difficult, limits your choices and
is inherently inefficient and generalised. For a flight sim you would be
looking at a lot of custom optimisation, possibly two renderers, one for
the terrain, the other for the planes. Anyway, I don't think there are
many polygon engines out there made for DJGPP.
For general 3D help, read this page:
http://www.wh1.tu-dresden.de/~obiwan/graphics/prog/3d.html
If you want a copy of my 3D vector lib, download it from:
http://www.nlc.net.au/~shaman/code.html
--
. . . the Lord Shaman
------------------------------------------------------------------
Change is inevitable, except from a vending machine.
http://www.nlc.net.au/~shaman or mailto:shaman AT nlc DOT net DOT au
------------------------------------------------------------------
- Raw text -