Grambo (graham++at++beast)
Wed, 8 Feb 1995 09:17:13 -0800
if ((dcs_ref[i].model_geo = (pfGroup *)LoadFlt(s3)) == NULL)
{
fprintf(stderr,"problems loading multigen file %s\n",s3);
pfExit();
exit(-1);
}
printf("loaded file <%s>\n",s3);
/*
We point a DCS to the models geometry.
*/
dcs_file[dcsnum].dcs = pfNewDCS();
pfAddChild(dcs_file[dcsnum].dcs, dcs_ref[i].model_geo);
dcs_file[dcsnum].sw = pfNewSwitch();
/*
* for now turn dcs switches on as default.
*/
status = pfSwitchVal( dcs_file[dcsnum].sw, PFSWITCH_ON );
pfAddChild(dcs_file[dcsnum].sw, dcs_file[dcsnum].dcs);
pfAddChild(scene, dcs_file[dcsnum].sw);
Hope this helps,
Grambo
On Feb 8, 9:40am, Riccardo Camiciottoli wrote:
> Subject: .flt files loader
> Hi,
>
> I'm using the .flt file loader provided with Performer.
> It seems to work very fine, but it's impossible to put the loaded shape
> in a different place from the origin. I tryed to do this attaching
> the pfNode* coming from the loader to a pfDCS and then translating it
> with a pfDCSTrans, but the result is the same: the shape is very hardly
> anchored to the origin.
> Does anyone have a hint?
> Thank's in advance.
>
> Ciao
>
> Riccardo
>
> ---------------------------------------------------------------------------
> | Riccardo Camiciottoli | Via Santa Marta, 3
> | Universita' di Firenze | 50139 Firenze
> | Facolta' di Ingegneria | Italia
> | Dipartimento di Sistemi e Informatica |
> | | Phones: +39 55 4796365 (voice)
> | email: camiciot++at++aguirre.ing.unifi.it | +39 55 4796425 (voice)
> | | +39 55 4796363 (fax)
> | www: http://aguirre.ing.unifi.it |
> ---------------------------------------------------------------------------
>
>
>-- End of excerpt from Riccardo Camiciottoli
--"It is often easier to fight for one's principles than to live up to them." , Happy, happy, Joy, joy...
---------------------------------------------------------------------- Graham (Grambo) Beasley Silicon Graphics, Inc. MTS (Simulator Guy) (415) 390-5420 graham++at++sgi.com ----------------------------------------------------------------------
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:57 PDT