Quote:> Anyone know a good source of portable, public domain triangle or NURBS
> rasterization code ?
> It should:
> -be portable across Wintel/Mac
> -not use 3D hardware
> -textures triangles or draws NURBS directly
> -support texturing, 8 bits per channel
It's not a big deal. All you need is just HLL implementation (e.g.
C/Pascal/whatever w/o ASM whatsoever) and draw the stuff in an off-screen
buffer. This is the most general way to keep the thing extremely portable.
Basically, this is what people do when they start software rendering for a
very 1st time, they just implement everything in HLL, test the stuff, debug
it, find fastest algorithms and the hardware dependent part is flipping the
off-screen buffer to the screen. If the proformance is not aceptable, some
hardware dependant approaches come in play (like ASM).
I have my own tmapper in C that does that for 8bpp modes and it's not anyhow
complicated, though if you're going to add light and other sophisticated
stuff on top of it, it will be.
Good Luck
--
Alexei A. Frounze
alexfru [AT] chat [DOT] ru
http://alexfru.chat.ru
http://members.xoom.com/alexfru/
http://welcome.to/pmode/