Re: [info-performer] shadows using C

New Message Reply Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 07/31/2002 10:23:45


Hi Brad !

- The Performer C-API generator produced pfNewShadow wrong. I fixed it for
  the 3.0 release.

- The prototype of the call pfShadowAddChannel is
    pfShadowAddChannel(pfShadow* _shadow, pfChannel *channel);
  The man page is also correct. Where exactly did you find the example below ?

If you want, you can send me your C example. I can compile and run it against
my C-API fix (just to verify that it really fixes your problem).

Thanks,
-yair

> I've been trying to implement shadows on my driving
> sim. with no luck. I've written the project in C but
> cannot get shadows to work, they only work using C++.
>
> for instance this is the example code from perf.
> insight/docs:
>
> pfShadow *shd = pfNewShadow();
> pfShadowNumCasters(shd, 2);
> pfShadowShadowCaster(shd, 0, node1, matrix1);
> pfShadowShadowCaster(shd, 1, node2, matrix2);
> pfShadowNumSources(shd, 1);
> pfShadowSourcePos(shd, 0, x1, y1, z1, w1);
> pfShadowAddChannel(channel);
> pfShadowApply(shd);
>
> problems: pfnewshadow takes void *arena, and
> pfshadowAddChannel needs to know the shd pointer.
>
> I'm beggining to think the shadows don't work because
> its a problem with the C wrapper. I tried converting
> the shadow example shadowsNew.C in C++ to C but could
> not get it to work. Has anyone had problems with
> shadows? I've experimented with this for a while with
> no success, does anyone know of any example code?
> thanks, brad
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
> -----------------------------------------------------------------------
> SIGGRAPH 2002 Friends of Performer Meeting July 24 6:00pm-8:00pm
> Salon I, Marriott Rivercenter Hotel, San Antonio, TX USA
> -----------------------------------------------------------------------
> 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
> -----------------------------------------------------------------------
>

-- 
\_________  \_____  \__    \__  \_____        
\_________  \_____   \__   \__  \_____         Yair Kurzion
       \__     \__   \____\__      \__         yair++at++sgi.com
       \__          \__  \__                  (650) 933-6502
       \__          \__   \__          
       \__          \__    \__             


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jul 31 2002 - 10:23:50 PDT

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