From: Angus Dorbie (dorbie++at++sgi.com)
Date: 07/28/2000 13:49:43
P.S. there's sample code for this in the pguide directory in
/usr/share/Performer
christopher.g.dorosky++at++lmco.com wrote:
>
> Angus,
>
> I tried fluxing every attribute (except the bounding box), and get this
> error message when I run.
> If the flux changer runs from the app, it sort of works, with these error
> messages
> FRAME IN USE
> [0] frame=198 keep=197
> [1] frame=197 keep=196
> [2] frame=195 keep=-5
>
> praddBuffer flux frame 198, we=0, Buffers : read=1 sync=0 dirty=0.
>
> If the flux changer runs from the cull, no error messages, and no rotation
> or color updates happen.
>
> Is there anywhere where I can find what any of this means so I can debug?
>
> Are there any examples anywhere of fluxed geoset attributes?
> I have successfully used pfFluxes before (not as geoset attributes) and it
> wasn't this hard. Are there extra rules to follow when the flux is a geoset
> attribute?
>
> Thanks,
>
> Christopher Dorosky
> Lead Electronic Systems Engineer - Real Time Simulation
> Lockheed Martin Missiles and Fire Control - Dallas
> christopher.g.dorosky++at++lmco.com
> 972-603-2349
>
> > ----------
> > From: Angus Dorbie[SMTP:dorbie++at++sgi.com]
> > Sent: Friday, July 28, 2000 2:02 PM
> > To: christopher.g.dorosky++at++lmco.com
> > Subject: Re: pfFlux, fluxed geosets, fluxed geoset attributes
> >
> > No fluxing the geoset fluxes the whole thing, it's another different way
> > of doing a similar thing and is usefull when changing the numbers of
> > primitives etc.
> >
> > Cheers,ANgus.
> >
> >
> > christopher.g.dorosky++at++lmco.com wrote:
> > >
> > > Thank you, I will try fluxing all the attributes. But what about
> > creating a
> > > fluxed geoset. Is this necessary when fluxing attributes, or does this
> > do
> > > something different? Why would you want a fluxed geoset?
> > >
> > > Thanks.
> > >
> > > Christopher Dorosky
> > > Lead Electronic Systems Engineer - Real Time Simulation
> > > Lockheed Martin Missiles and Fire Control - Dallas
> > > christopher.g.dorosky++at++lmco.com
> > > 972-603-2349
> > >
> > > > ----------
> > > > From: Angus Dorbie[SMTP:dorbie++at++sgi.com]
> > > > Sent: Friday, July 28, 2000 12:37 PM
> > > > To: christopher.g.dorosky++at++lmco.com
> > > > Cc: info-performer++at++sgi.com; zhz++at++cthulhu.engr.sgi.com
> > > > Subject: Re: pfFlux, fluxed geosets, fluxed geoset attributes
> > > >
> > > > Iff you use fluxed attributes in a geoset then ALL attributes must be
> > > > fluxed.
> > > >
> > > > CHeers,Angus.
> > > >
> > > > christopher.g.dorosky++at++lmco.com wrote:
> > > > >
> > > > > pfHelp!!!
> > > > >
> > > > > I have been looking at Angus' program for billboard trees. There was
> > a
> > > > > comment in there about how the geoset attributes could be fluxed. I
> > > > decided
> > > > > to try this, since I will have an application with a very large
> > number
> > > > of
> > > > > trees.
> > > > >
> > > > > I am assuming that the way to do this is with a pfFlux, not a fluxed
> > > > geoset,
> > > > > right? I worked through the fluxed_gset example in pguide, but still
> > > > have no
> > > > > understanding about when it is appropriate to use a fluxed geoset.
> > Do
> > > > you do
> > > > > this when things about the geoset can change other than the
> > attributes?
> > > > >
> > > > > Here is what I tried.
> > > > >
> > > > > I made the application run app_cull_draw. I rewrote the part that
> > calls
> > > > > UpdateBilbo, so that it was called from a post app callback (the
> > idea
> > > > being
> > > > > that I could change it to post cull, etc). This worked fine.
> > > > >
> > > > > Changing it to post cull made the scene not update. So I changed
> > > > > billy->coords from a pfVec3 * to a pfFlux *. In the UpdateBilbo
> > routine,
> > > > I
> > > > > changed the tmpcos (or whatever) pointer to point to
> > > > > pfFluxGetWritableData(billy->coords). I allow the function to do the
> > > > > coordinate changing like it did before, and do a fluxwritecomplete
> > at
> > > > the
> > > > > end.
> > > > >
> > > > > This works terribly. The trees jump all over the place and don't
> > rotate.
> > > > >
> > > > > Interestingly enough, if I change to APPCULLDRAW, it works fine.
> > > > >
> > > > > What is going on here? I am very unclear about the following two
> > things:
> > > > > When is it appropriate to use a fluxed geoset?
> > > > > When is it appropriate to use a pfFlux for a geoset attribute?
> > > > >
> > > > > For the geoset attributes which are pfFluxes, does something
> > > > automatically
> > > > > do a pfFluxGetCurData each frame to make things update?
> > > > >
> > > > > Thanks!
> > > > >
> > > > > Chris
> > > > >
> > > > > Eventually, I want to have the rotation done by the compute process.
> > > > >
> > > > > Christopher Dorosky
> > > > > Lead Electronic Systems Engineer - Real Time Simulation
> > > > > Lockheed Martin Missiles and Fire Control - Dallas
> > > > > christopher.g.dorosky++at++lmco.com
> > > > > 972-603-2349
> > > > >
> > -----------------------------------------------------------------------
> > > > > List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> > > > > Submissions: info-performer++at++sgi.com
> > > > > Admin. requests: info-performer-request++at++sgi.com
> > > >
> > > > --
> > > > For Performer+OpenGL tutorials http://www.dorbie.com/
> > > >
> > > > "In the middle of difficulty lies opportunity."
> > > > --Albert Einstein
> > > >
> > -----------------------------------------------------------------------
> > > > List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> > > > Submissions: info-performer++at++sgi.com
> > > > Admin. requests: info-performer-request++at++sgi.com
> > > >
> > > -----------------------------------------------------------------------
> > > List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> > > Submissions: info-performer++at++sgi.com
> > > Admin. requests: info-performer-request++at++sgi.com
> >
> > --
> > For Performer+OpenGL tutorials http://www.dorbie.com/
> >
> > "In the middle of difficulty lies opportunity."
> > --Albert Einstein
> >
-- For Performer+OpenGL tutorials http://www.dorbie.com/"In the middle of difficulty lies opportunity." --Albert Einstein
This archive was generated by hypermail 2b29 : Fri Jul 28 2000 - 13:49:46 PDT