From: Stace Peterson (stacep++at++sgi.com)
Date: 11/02/2005 11:00:44
Leif,
The confusion is caused by the fact that cow.pfb in data/marblecow is
not a straight conversion of cow.obj. I needed to add node names so the
gpu loader could apply different material properties to the various
parts of the cow. Thus, I manually added the node names by converting
the cow.obj to a pfa file, edited the file by hand, and then converted
to a pfb file. The cow.obj file did not have the node names to begin
with, which is the reason the cow.pfb file was created in the first
place.
Hope that helps,
Stace
Leif Richard Grønmo wrote:
>
> Dear Reader,
>
> I'm having a problem with displaying names of objects using perfly with
> .obj files. If i use perfly with the example cow.pfb (located at
> Data/marblecow directory) the object names such as hooves, body, face,
> hide etc... are shown. I've tried converting the cow.obj (located in
> Data directory) file to cow.pfb format using the pfconv utility. Upon
> opening this file with perfly I still get no object names. I've also tried
> opening cow.obj directly with perfly, but still no object names (hooves,
> face, etc.) are shown. I've tried calling both perfly and pfconv with
> the PFBLDR_ATTACH_NODE_NAMES attribute set and still no success. I've
> tried to google the problems, reading the getting started pfd,
> programmer's guide pdf, and still no success. These are the commands
> I've tried at command prompt (I'm using windows by the way):
>
> // Trying to open the .obj file directly
> perfly cow.obj
> perfly -O35 cow.obj
> perfly -O 35 cow.obj
>
> // Trying to convert the .obj file to .pfb first, then opened in perfly
> pfconv cow.obj cow.pfb
> perfly cow.pfb
> perfly -O35 cow.pfb
> perfly -O 35 cow.pfb
>
> pfconv -B35 cow.obj cow.pfb
> perfly cow.pfb
> perfly -O35 cow.pfb
> perfly -O 35 cow.pfb
>
> pfconv -B 35 cow.obj cow.pfb
> perfly cow.pfb
> perfly -O35 cow.pfb
> perfly -O 35 cow.pfb
>
> Is there some information missing in cow.obj or am I using the
> perfly/pfconv utilities in a wrong manner or is it something else that I
> haven't thought of?
>
> Any help with my problem would be of great use.
>
> Yours Sincerely,
>
> Leif Richard Grønmo
>
> NTNU - Norwegian University of Science and Technology
> Norway
>
> -----------------------------------------------------------------------
> 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
> -----------------------------------------------------------------------
-- ------------------------------------------------------------------ Stace Peterson stacep++at++sgi.com Silicon Graphics, Inc. (650) 933-2323
This archive was generated by hypermail 2b29 : Wed Nov 02 2005 - 11:00:47 PST