Hello,
I am writting an application wich use osgOcean Plugin.
I add to an ocean scene a submarine (imported from a 3DS file), and I would
like to activate spot lights of this submarine.
So I attach to the submarine a light :
Code:
Vec4f lightPose(0,-1270,0,1); // le kster mesurant1.26mètres
Hello Adrien,
So why using an OceanScene disable my lighting effects ??
osgOcean uses shaders for most of its effects, and these shaders assume
directional lights. You will have to customize the shaders to do the
right calculations for all types of light source.
This is not a trivial
Hi !
Thank for your reply, but that is exacly what I would'nt want to read !
I am affraid about learning gl Shading Language.
Do you know some cool resources to learn it ? I have got the OpenGL Super Bible
4th edition, is it enough ?
Thanks !
A. BARRAL
--
Read this topic
Hello Adrien,
Thank for your reply, but that is exacly what I would'nt want to read !
I am affraid about learning gl Shading Language.
Hehe, sorry about that! But you'll see you can do lots of great things
pretty easily once you've learned GLSL. It opens up a great new world. :-)
Do you
4 matches
Mail list logo