From: Stace Peterson (stacep++at++sgi.com)
Date: 01/27/2005 18:55:44
Devrim,
The gprogram.C sample doesn't do much interesting, and it is not obvious
whether or not the pfGProgramParms class works from it. However, the
class does work and has been used in the Performer City demo shown on
Onyx4, Prism and Windows. Thus, we do believe the class works.
However, there were several bug fixes between 3.1.1 and Performer 3.2,
especially with regard to updating parameter values, which may have
changed the way that the object works (changed to the way originally
intended), if it seems to be a regression from Performer 3.1.1.
If it's okay, I'll send you (directly to avoid spamming the entire list
with files) a simple loader used for the demo which shows how the
pfGProgramParms class works, and a sample database. If all goes well,
you'll see a plastic shaded torus. I tested this on Win32 (w/ an ATI
card), Prism, and Onyx4 systems successfully, but it is possible that
other platforms may not work. If this is the case, let me know the
specifics of your system, and I'll do my best to fix any bugs or give
some additional help.
Thanks,
Stace
Devrim Erdem wrote:
>
> Hello,
>
> I have been programming with pfVertexProgram and pfFragmentProgram in
> my app and at some point, I noticed that vertex attributes are not
> being passed to the vertex program. To check if this is a pf problem,
> I modified the example gprogram.C.
>
> It is not document what the expected result shall be when the gprogram
> is run but looking at the code I understand that the something has to
> change to prove that the pfGProgramParms work.
>
> However the only thing that is visible is several triangles some of
> which are blue, white and green. I have modified the code so that the
> channel position is static and in this case it is obvious that nothing
> changes.
>
> My conclusion is that with pf3.2 the gprogram.C example doesn't work,
> probably since pfGProgramPrams is not working.
>
> I would appreciate if a pfGuru could have a look or give me some hints
> to investigate the issue further.
>
> This is a blocking problem for my project and I wanted to check via
> the mailing list before opening an official support call, to save all
> of us the time :)
>
> Devrim Erdem
>
> -----------------------------------------------------------------------
> 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 : Thu Jan 27 2005 - 18:55:52 PST