# osgshadow --ssm -2 --noUpdate
glLinkProgram "" FAILED
Program "" infolog:
Fragment shader(s) failed to link, no vertex shader(s)
defined.
Fragment Shader not supported by HW
#
First message: A fragment shader without a vertex shader is certainly
legal, it should just use fixed-function vertex processing. That seems
like a driver bug.
Second message: your card does not support fragment shaders? I'm not
familiar with that kind of card, but I would have thought it did.
BTW, I think you can force it to use the fixed function (remove those
shader link errors above) by calling shadowMap->clearShaderList() before
shadowMap->init(). Or attach an empty osg::Program to the shadowedScene
after shadowMap->init().
It shows the same aircraft and terrain, with a shadow below
the aircraft, on the ground, but turning in the opposite
direction as the aircraft (some matrix multiplication
confusion ?)
That's the fixed-function shadow mapping, and I think I remember that
ATI reverses the t-direction of textures... Perhaps the osg::TexGen that
is used with ShadowMap could reverse this if running on ATI?
# osgshadow --sm -2 --noUpdate
[...]
and nothing is shown
Weird, --sm (ShadowMap) should have the same fixed-function fallback as
--ssm (SoftShadowMap). That will need to be investigated.
# osgshadow --sv -2 --noUpdate
# osgshadow --pssm -2 --noUpdate
I'm not currently using those two, and we know they are broken... I hope
to be able to use PSSM sometime in the future, but not right now.
How portable do you think ShadowTexture would be ?
Would it run on most 3D hardware ?
Does it require some fancy graphics card (ATI x300 mobility
Radeon is no killer, but may-be it does have some
extravagant component)
I think ShadowTexture is pretty much the most basic there is. I haven't
really looked, as I prefer to use ShadowMap or one of its derivatives,
but I think it's fixed-function only, so it should run on anything that
supports RTT through either FBOs or pbuffers (so almost anything :-) ).
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org