Re: [info-performer] Question related to the pfconv/perfly utilities

Date view Thread view Subject view Author view

From: Stace Peterson (stacep++at++sgi.com)
Date: 11/04/2005 15:42:06


Leif,

Answers inline below.

Leif Richard Grønmo wrote:
>
> Hi again Stace,
>
> I've got another problem.
>
> Example: I've made and object file containing two cubes with different
> group names. When loading this with perfly i try to show the node tree.
> The two object are grouped as only one. The only way i get to group them
> as two is if i make an mtl file with two different materials. is there
> another way (i don't wanna change the colour of the objects just to
> seperated them when loaded)?

I played around with this a little, and didn't have a ton of luck to get
the names propagated either, so I checked the code. It appears that the
loader ignores the group names entirely. Even by forcing the materials
to be different, though you get 2 separate geodes, you do not get the
node names to be propagated.

The good news is that we ship the source for the loader, and it isn't
one of our more complicated ones. I suspect that it would be a very
doable project to make the neccesary changes to read and keep geometry
names, not collapse materials (and thus, geometry), and make the other
changes you need to be able to use .obj files for your application.

Also, I believe that .flt files already propagate names, and other
loaders may as well. If you can easily convert to a few different, it
might be worth it to convert the cubes to different supported formats
and see what happens when loaded into perfly.

>
> sorry for all the questions btw. i'd really like to not bother you with
> this questions.

No problem, we'll try to help when we can.

Stace

>
> Leif Richard
>
> ***************************************
> **** There are 10 types of people, ****
> **** those who understand binary, ****
> **** and those who don't. ****
> ***************************************
>
> On Thu, 3 Nov 2005, Leif Richard Grønmo wrote:
>
> > Hi Stace!
> >
> > Thank you so much for the help! It was really helpful! Now i finally can
> > create files containing node names. The reason why i want to use node
> > names is because i want to check them up against a ontology database to do
> > a search in a document base. This solves my problem allthough it might be
> > time consuming to add all the node names by hand. Do you know if there is
> > any file format (besides pfa/pfb) where performer is able to load this
> > information (node names) directly without me having to apply the names by
> > hand?
> >
> > I'm so grateful for your help!
> >
> > Leif Richard
> >
> > On Wed, 2 Nov 2005, Stace Peterson wrote:
> >
> > > 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
> > >
> > > -----------------------------------------------------------------------
> > > 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
> > > -----------------------------------------------------------------------
> > >
> >
> > -----------------------------------------------------------------------
> > 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
> > -----------------------------------------------------------------------
> >
>
> -----------------------------------------------------------------------
> 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


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Nov 04 2005 - 15:42:12 PST