Re: using pfColortable except for one type of node

New Message Reply Date view Thread view Subject view Author view

Sylvain Mayer (mayer++at++cae.ca)
Thu, 08 Oct 1998 10:07:20 -0400


Sylvain Mayer wrote:

> I want to render my scene with a pfColortable. In the draw callback of
> the channel, I'm doing the following:
>
> pfEnable(PFEN_COLORTABLE);
> ctab->apply();
> pfOverride(PFSTATE_COLORTABLE | PFSTATE_ENCOLORTABLE, PF_ON);
>
> pfDraw();
>
> pfDisable(PFEN_COLORTABLE);
> pfOverride(PFSTATE_COLORTABLE | PFSTATE_ENCOLORTABLE, PF_OFF);
>
> That worked just fine but within the traversal, I need to render some
> billboards without using the pfColortable. To do this, I'm using a
> pre/post draw callback to the billboard just like the following but it
> does not work. I'm currently rendering the billboard with the
> colortable.
>
> Does any of you have another way of doing what I want? I'm wondering why
> its not working.

I got this one fixed last night! These is no need to reset the
pfColortable anymore. I'm drawing all the scene graph with my color table
and its fine.

I found out my problem was a texture problem :-}

thanks, Sylvain

--
Sylvain Mayer, 3D Graphics Developer
Graphics Simulation Technology
Display Eng. & Special Projects
CAE Electronics Ltd. (http://www.cae.ca)
mailto:mayer++at++cae.ca
Tel: (514) 341-6780    Ext: 3065
Fax: (514) 734-5618

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Oct 08 1998 - 07:11:12 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.