From: brad schwagler (bschwagg++at++yahoo.com)
Date: 07/26/2002 10:37:05
Hello
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
This archive was generated by hypermail 2b29 : Fri Jul 26 2002 - 10:37:31 PDT