Re: [osg-users] Wrong understanding of tangent space and world coordinates?

2015-05-09 Thread Ulrich Hertlein
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Andreas, On 6/05/2015 13:28, Andreas Schreiber wrote: If I pass the following vector from osg code to the shader: Code: plane-getOrCreateStateSet()-addUniform(new osg::Uniform(object_position, osg::Vec4(1, -0.25, 1,1))); This vector is

[osg-users] Wrong understanding of tangent space and world coordinates?

2015-05-06 Thread Andreas Schreiber
Hi I've got the following problem/question. If I pass the following vector from osg code to the shader: Code: plane-getOrCreateStateSet()-addUniform(new osg::Uniform(object_position, osg::Vec4(1, -0.25, 1,1))); This vector is in world space coordinates, correct? Now if I want this vector

[osg-users] Wrong understanding of tangent space and world coordinates?

2015-05-06 Thread Andreas Schreiber
Hi I've got the following problem/question. If I pass the following vector from osg code to the shader: Code: plane-getOrCreateStateSet()-addUniform(new osg::Uniform(object_position, osg::Vec4(1, -0.25, 1,1))); This vector is in world space coordinates, correct? Now if I want this vector