Click to See Complete Forum and Search --> : Simple 3D Graphics in C/C++


carwyn
02-26-2001, 01:07 PM
Hi,

I need to draw some simple wireframe graphics (ie. an axis, cube etc.. nothing too *****ious) in 3d but I'm not sure how to go about it.

I using C and Motif (since the target platform is a Sun). I can draw 2d graphics but need to draw 3d.

The only approach I know of is to 'throw away' the z-values leaving x,y values which can be plotted but this is far from ideal.

Does anyone know of any general algorithms that I can use which will enable me to draw wireframe graphics, allowing rotation etc..

I don't want to go anywhere near GL (unless there is no reasonable alternative), I'm just looking for a couple of standalone routines or algorithms upon which I can base some code.

Any help would really be appreciated. I've done several searches on the net but not found anything conclusive or useful.

Carwyn

Strike
02-26-2001, 09:40 PM
Man, I had saved a copy of a webpage on this exact topic a while ago, but I can't seem to FIND it anymore - even via Google. I'll keep looking, though.

Strike
02-26-2001, 09:58 PM
Persistence pays off:
http://astronomy.swin.edu.au/pbourke/projection/

or, more specifically, http://astronomy.swin.edu.au/pbourke/projection/transform/

carwyn
03-01-2001, 10:00 AM
Cheers! :)