From: Marcin Romaszewicz (marcin++at++sgi.com)
Date: 02/26/2002 16:27:42
It means to create a pfGeoSet which contains primitives of type
PFGS_POINTS with a normal associated with each point. It would look
something like this for N points
gset->setPrimType(PFGS_POINTS)
gset->setNumPrims(N);
gset->setAttr(PFGS_COORD3, PFGS_PER_VERTEX, <pointer to point coords>, 0);
gset->setAttr(PFGS_NORMAL3, PFGS_PER_VERTEX, <pointer to point normals>, 0);
Both pointers are pfMalloc'd arrays of pfVec3's.
-- Marcin
On Tue, 26 Feb 2002, Rob Body wrote:
> Hi pfFriends,
>
> I'm using:
> Redhat Linux 7.2
> Performer 2.5
>
> My real time application uses pfLPointState to display (successfully) lights
> on my scene. The problem I have is that I need the lights to only appear
> between certain angles. I have been looking at the documentation and it
> says :
>
> Light point direction is defined by the normals (PFGS_NORMAL3) supplied by
> PFGS_POINTS pfGeoSets.
>
> This doesn't mean a lot to me so where do I learn what this means and how to
> define it. Any pointers to further documentation about how to define the
> angles (and halfangles) would be very much appreciated.
>
> Thanks
>
> Rob
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Rob Body
> Simulator Manager
>
> HR Mardyn
> HR Wallingford
> Howbery Park
> Wallingford
> Oxon
> OX10 8BA
>
> Tel +44 (0) 1491 822327
> Fax +44 (0) 1491 832233
>
> E-mail r.body++at++hrwallingford.co.uk <mailto:r.body++at++hrwallingford.co.uk>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> HR Wallingford uses Faxes and Emails for confidential and
> legally privileged business communications. They do not of
> themselves create legal commitments. Disclosure to parties
> other than addressees requires our specific consent. We are
> not liable for unauthorised disclosures nor reliance upon
> them. If you have received this message in error please
> advise us immediately and destroy all copies of it.
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
This archive was generated by hypermail 2b29 : Tue Feb 26 2002 - 16:27:52 PST