[info-performer] Re: [Alexander Gaillard's question on a texture's GL handle]

Date view Thread view Subject view Author view

From: Alexander Lechner (alexander.lechner++at++vertigo-systems.de)
Date: 12/07/2004 08:01:17


On Tuesday 07 December 2004 14:29, Guest Account wrote:
> FYes,
>
> I m calling it from the pfGeoState pre-draw function.
> I need it for Cg shaders.
>
> Best Regards
> Alexandre Gaillard
>
Hi!

I think you mean the preFunc of the GeoState. This preFunc is called after
Performer has applied the GeoState.
(At least) to me it is not always clear whether Performer did really apply
your texture. If I remember correctly you need to have a textured geometry,
otherwise it simply does not apply it.
To be sure that the texture is really applied just call
if (!texture->isFormatted()) texture->apply(); // this will do a
      // texture->format()
then the GL handle should be valid.

Best,
Alex

> -------- Message d'origine--------
> De: Goncalo N M de Carvalho [mailto:glslang++at++yahoo.com]
> Date: mar. 07/12/2004 14:05
> À: GAILLARD alexandre; info-performer++at++sgi.com
> Cc:
> Objet: Re: [info-performer] RE : [info-performer]
>
>
>
>
> Are you calling it from a draw callback?
>
> Cheers,
>
> Goncalo
>
> --- GAILLARD alexandre <alexandre.gaillard++at++eivd.ch>
>
> wrote:
> > Thanks a lot,
> >
> > That exactly what I need to do.
> > But now I have a strange error with NVOGLNT.DLL ...
> > Here is the code I write from the error :
> > Ldata.TexIndex =
>
> gstate->getGLHandle((pfTexture*)gstate->getAttr(PFSTATE_TEXTURE));
>
> > Does any one know is that come from the driver or
> > from Performer.
> >
> >
> >
> > Best Regards
> >
> > -------- Message d'origine--------
> > De: Simon.Mills++at++esa.int
> > [mailto:Simon.Mills++at++esa.int]
> > Date: lun. 06/12/2004 16:47
> > À: GAILLARD alexandre
> > Cc: info-performer++at++sgi.com;
> > owner-info-performer++at++performer.engr.sgi.com
> > Objet: Re: [info-performer]
> >
> >
> >
> >
> > You should be able to do something like:
> >
> > glTexHandle = pfGetGLHandle(
> > geostate->getAttr(PFSTATE_TEXTURE) );
> >
> > Haven't tried it myself though.
> >
> > Regards, Simon
>
> _______________________________________________________________________
>
> > Simon Mills
> > Modelling & Simulation Section (TEC-EMM)
> > Tel: +31 (0)71 565 3725
> > European Space Agency (ESA/ESTEC)
> > Fax: +31 (0)71 565 5420
> > Postbus 299, 2200AG Noordwijk e-mail:
> > Simon.Mills++at++esa.int
> > The Netherlands
> > http://www.estec.esa.nl/wmwww/EMM
>
> _______________________________________________________________________
>
> |---------+------------------------------------------->
> |
> > | | GAILLARD alexandre
> > | |
> > | | <alexandre.gaillard++at++eivd.ch>
> > | |
> > | | Sent by:
> >
> > owner-info-performer++at++performer.e|
> >
> > | | ngr.sgi.com
> > | |
> > | |
> > | |
> > | |
> > | |
> > | | 01/12/2004 17:21
> |
> |---------+------------------------------------------->
> |
> >-------------------------------------------------------------------------
> >-------------------------------------------|
> >
> > | To: info-performer++at++sgi.com
> > |
> > |
> > | cc:
> > |
> > |
> > | Subject: [info-performer]
> >
> >-------------------------------------------------------------------------
> >-------------------------------------------|
> >
> >
> >
> >
> > Hello,
> >
> > I need for my to recover the OpenGL texture handle
> > for a geostate.
> >
> > Is that possible ??
> > If yes, how can I recover it ??
> >
> > Thanks for advance.
>
> -----------------------------------------------------------------------
>
> > 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
>
> -----------------------------------------------------------------------
>
>
>
>
> __________________________________________________
> 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
> -----------------------------------------------------------------------

-- 
Alexander.Lechner     ++at++        vertigo-systems.de
Engelbertstraße 30    |    phone: +49-221-2405472
D-50674 Köln          |      fax: +49-221-34892616


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Dec 07 2004 - 07:58:03 PST