Re: [Plib-users] Little question please help
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2001-04-22 22:22:42
|
John Tsao wrote: > > After defineing a ssgVtxTable, and adding vertices and normals to the object, how do i > render the object? > > Can I simply do the following ? > scene -> addKid (pVtx); Yes. > How does plib's coordinate system work? (I am randomly trying to position my camera to find > my object on my screen) Z is up. X is East, Y is North. If the object is close to the origin then you should see it if your camera is at (0, 0, -bignumber) > PS. 1."scene" is a ssgRoot object , pVtx is the ssgVtxTable object. > 2. The way I added vertices to the pVtx is by using vertices->add( <sgVec3>). > "vertices" is an argument passed to ssgVtxTable's constructor. Seems reasonable. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net http://freeglut.sourceforge.net |