[info-performer] Performer ISL- Shader and Linux?

New Message Reply Date view Thread view Subject view Author view

From: Meiner Einer (kahos++at++bikerider.com)
Date: 03/18/2003 03:38:23


Hi,
I've some problems using ISL-Shaders with Performer under Linux.
I just don't get it :-(
I've decided to start small and simply try to add a shader to the /pguide/libr/C++/zrgb.C example like this:
    islShader* surf = new islShader;
    surf->setShader( "surface ss() { FB = color(1,0,0,1); }" );

    islAppearance* app = new islAppearance();
    app->pushShader( islAppearance::SURFACE_LIST, surf );

    islCompileAction ca;
    ca.compile( app );

    gset->setAppearance(app);
but the gset->setAppearance call results in a seg-fault, did I miss anything?
I've tried the performer example from the irix-distrib, but it seems to ignore any color except from textures. using a shader like
FB = color (1,0,0,1); does nothing even if it works fine with non-performer programs. FB+= color (1,0,0,1); looks exactly like FB+= color (0,1,0,1); or FB+=(0,0,1,1); or FB+=(1,1,1,1); but why is that?
FB*=whatever; does nothing?
I'm a bit confused.....
any comment welcome

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Mar 18 2003 - 03:38:35 PST

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