the code I post assumes Z-up.

-Nick


On Wed, Feb 10, 2010 at 1:24 PM, Trajce Nikolov <nikolov.tra...@gmail.com>wrote:

> send me your code .. I will have a look
> -Nick
>
>
>
> On Wed, Feb 10, 2010 at 1:22 PM, Sebastien Nerig <overse...@hotmail.com>wrote:
>
>> Hi Nick,
>> ok I did have a look at the osgPrerenderCubeMap code and at you thread
>> about mixing a static 2D texture and a dynamic cube map into a shader. btw
>> your version with
>>
>> Code:
>> {
>> osg::Uniform* u = new
>> osg::Uniform(osg::Uniform::SAMPLER_CUBE,"cubeMapUnit");
>> u->set(unit);
>> node->getOrCreateStateSet()->addUniform( u );
>> }
>>
>>
>>  works well for me
>>
>> I tried this sample with my own camera (Y up) and that works well too.
>> I want to use this sample in a more general case (dynamic reflection on
>> water for example) . I tried to use the bottom plane as the reflector but
>> the reflection is now awfull... Did you work on it ? Can you confirm ?
>>
>> Thank you
>> Sebastien
>>
>> ------------------
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=23915#23915
>>
>>
>>
>>
>> Attachments:
>> http://forum.openscenegraph.org//files/sans_titre_192.jpg
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to