Re: [osg-users] How can I rotate a image

2010-09-07 Thread Trajce (Nick) Nikolov
(or removed because its already there) to TexMat in TexMatCallback. > Look at R matrix in TexMatCallback::operator(). Multiply this R matrix by > neccessary rotation. If you don't know what rotation exactly, try 90 or -90 > degrees around X, Y, Z axes. After up to 6 tries you will find t

Re: [osg-users] How can I rotate a image

2010-09-07 Thread Trajce (Nick) Nikolov
rotated. And I > want to correct this rotation. > > Is it understandable? I am not sure. > > Cheers > > Martin > > Original-Nachricht > > Datum: Tue, 7 Sep 2010 14:57:24 +0400 > > Von: "Trajce (Nick) Nikolov" > > An: OpenScene

Re: [osg-users] How can I rotate a image

2010-09-07 Thread Wojciech Lewandowski
To: "OpenSceneGraph Users" Subject: Re: [osg-users] How can I rotate a image Ok, also I have create a sky box like the sky box in the vertexprogramm example of osg. But in my scene the up vector is in the z direction and not in the y direction. Now I have rotate my sky box 90

Re: [osg-users] How can I rotate a image

2010-09-07 Thread Martin Großer
olov" > An: OpenSceneGraph Users > Betreff: Re: [osg-users] How can I rotate a image > what do you mean by "rotating an image"? Could you tell what you are > actually trying to do? More info you provide more chances to get some > advice > > -Nick > >

Re: [osg-users] How can I rotate a image

2010-09-07 Thread Trajce (Nick) Nikolov
what do you mean by "rotating an image"? Could you tell what you are actually trying to do? More info you provide more chances to get some advice -Nick 2010/9/7 "Martin Großer" > Hello, > > I would like rotate a image. Because I want to rotate the separate images > from my sky box. I think it

[osg-users] How can I rotate a image

2010-09-07 Thread Martin Großer
Hello, I would like rotate a image. Because I want to rotate the separate images from my sky box. I think it is difficult to change the texture coordinates of my sphere. I my idea is to rotate the images at the beginning. Example ::osg::Image* image = osgDB::readImageFile(c_posX.Filename); //