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
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