comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <Gautier.deMontmollin@Maths.UniNe.CH>
Subject: A small 3D engine
Date: 1999/03/10
Date: 1999-03-10T00:00:00+00:00	[thread overview]
Message-ID: <36E68C3E.6D4D2776@Maths.UniNe.CH> (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




                 reply	other threads:[~1999-03-10  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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