comp.lang.ada
 help / color / mirror / Atom feed
* A small 3D engine
@ 1999-03-10  0:00 Gautier
  0 siblings, 0 replies; only message in thread
From: Gautier @ 1999-03-10  0:00 UTC (permalink / raw)


If you'd like to see a small standalone 3D engine (no binding) in Ada, look at

  ftp://ftp.unine.ch/incoming/gautier/eng3d001.zip

I hope the ftp works - anyway it's a *provisory* location !

Some infos.

- It's simply a rotating cube, with some effects. Since it's not hardcoded
  as a cube, you could replace it by a teapot, a pink elephant or a part of a maze.

- The effects: Z_shading, Lambert, Gouraud, (environment-mapped) Phong for lighting;
  textures; not both yet.

- It comes from the nice "Peroxide / Telemachos" tutorial #4 with Pascal
  sources. URL: http://www.image.dk/~tm/ . There the docs are.

- Runs at least under MS-DOS, DR-DOS, Win9x. provided there is a 386+
  and a VESA (SVGA) graphics card.

- To (re)compile it, you need the GNAT/DOS compiler. To search it:
  http://ftpsearch.lycos.com/cgi-bin/search?form=normal&query=ez2load .
  Then "gnatmake demo3d00" - plus usual optimizations if you want...

- It's limitated and experimental, you are warned! E.g. the pseudo-Phong
  doesn't use the lighting vector; the textures are deformed.

- There are plenty of things to improve and optimize. The present state
  is readability-oriented (100% Ada for the nontrivial renderings).
  Anyway the optimizer does a great job !

-- 
Gautier




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-03-10  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-10  0:00 A small 3D engine Gautier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox