[comp.graphics] 3D SunCore

nomi@phri.UUCP (Nomi Voroba) (02/03/88)

I would very much appreciate any help with the following:

I am trying to get stick-figure molecules to spin in three dimensions, on
a Sun-3 workstation using SunCore. Problem is, I don't really know what
I'm doing! The parameters that I have set are:

initialize_core(DYNAMICB , SYNCHRONOUS, THREED);
set_window(0.0, 1.0, 0.0, 1.0);
set_ndc_space_3(1.0, 1.0, 1.0);
set_viewport_3(0.0, 1.0, 0.0, 1.0, 0.0, 1.0);
set_projection(PERSPECTIVE, 0.0, 0.0, ?);  

Data points get scaled so that they fall between (-0.5, -0.5, -0.5) and
(0.5, 0.5, 0.5). Rotations are all around the point (0.0, 0.0, 0.0) and 
are then translated by (0.5, 0.5, 0.5) to center the figure on the screen.

This seem to work OK, but the perspective doesn't look like anything.
Can anybody explain how to go about setting parameters for:

Center of projection
View reference point
View plane normal
View plane distance
or aything else I may need?

(Am I totally going about this the wrong way? Thanks for any suggestions.)

-- 
Nomi Voroba...Guberman
{allegra, philabs}!phri!nomi
Public Health Research Institute
455 First Avenue, New York, NY 10016