RE: IR codes and IR materials

New Message Reply Date view Thread view Subject view Author view

From: Ippolito, Marco (MARCO.IPPOLITO++at++ca.com)
Date: 01/24/2001 13:15:25


Hello Tammy,

Unfortunately, there is no way to access any of the IR data associated with a face at this time. You can, however, use a flt pfdConverterMode flag to install a callback that will place the SMC and FID attributes in the pfUserData field of the geometry's pfGeoState, adding the line below after init, but before pfdLoadFile is called should do the trick!

pfdConverterMode_flt( PFFLT_SORT_FEATURE, FLT_FTR_FACES );

To retrieve the data use something like:

            pfGeoState *gstate = pfGetGSetGState(gset);
            fltFeature *ftr = (fltFeature*)pfGetUserDataSlot( gstate, pfdGetConverterMode_flt( PFFLT_USERDATA_SLOT ) );
            if ( ftr )
                printf("[%d] FID: %d SMC: %d\n", pfGetFrameCount(), fltGetFtrFID(ftr), fltGetFtrSMC(ftr));

You will also need the attached header.

Best Regards,

--
Mark Ippolito
Software Engineer, OpenFlight Loader

MultiGen-Paradigm A Computer Associates Company

E-mail: marco.ippolito++at++ca.com Phone: 972-960-2301 x252 Fax: 972-960-2301 Address: 14900 Landmark Blvd., Suite 400, Dallas, TX 75240, USA

<<pfflt.h>>

-----Original Message----- From: Martin, Tammy [mailto:tammy.martin++at++baesystems.com] Sent: Wednesday, January 24, 2001 2:17 PM To: info-performer++at++sgi.com Subject: IR codes and IR materials

Hi,

In MultiGen Creator there is a way to assign an Infared code ( 0-4095) and a infared material property that is different from the properties of the visual database . My question is how do I access this data inside Performer? Is there anything already inside the Performer API that deals with these values or does something need to be written to access this data from an OpenFlight database? Any help that can be provided would be greatly appreciated.

Thanks, Tammy Martin Tammy.Martin++at++baesystems.com ----------------------------------------------------------------------- List Archives, FAQ, FTP: 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



New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jan 24 2001 - 13:16:20 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.