Re: [info-performer] GLSL Generic Vertex Attributes

Date view Thread view Subject view Author view

From: Alexandre Naaman (naaman++at++sgi.com)
Date: 12/15/2005 11:36:58


Hi Sakis,

  The basic idea is that in order to do this kind of thing you need
to create a pfGeoArray which has an attribute of type
PFGA_GENERIC_ARRAY.

  The man page for pfVertexAttr along with pfGeoArray should be
enough to point you in the right direction but you can also take a
glance at %PFROOT%/src/sample/pguide/libpf/C++/multiTexShader.cxx and
gprogram.cxx (/usr/share/Performer/src/sample/pguide/libpf/C++/
multiTexShader.C and gprogram.C on IRIX & Linux) to help with this.
These examples aren't exactly what you're looking for but ...
hopefully it will be enough to get you started. Feel free to post
again if you need more help; I know our samples for doing this aren't
quite "good enough".

  Hope this helps,

Alex.

On Dec 15, 2005, at 3:06 AM, Sakis Gaitatzes wrote:

>
> Hello all,
>
> I would like to pass down to a GLSL vertex/fragment shader generic
> vertex attributes for processing.
>
> In OpenGL the function glVertexAttrib() is used for this purpose but I
> cannot find the corresponding one for Performer.
>
> Also It would be nice if someone had a Performer example showing off
> this functionality.
>
> Many pfThanks,
>
>
> --
> Athanasios Gaitatzes (Saki)
> e-mail: gaitat at yahoo dot com
> url: http://www.virtuality.gr/
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.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
> ----------------------------------------------------------------------
> -


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Dec 15 2005 - 11:38:33 PST