Re: [osg-users] How to achieve osg::Texture2D rotation 180?

2021-01-25 Thread Robert Osfield
On Mon, 25 Jan 2021 at 07:39, mirr...@gmail.com wrote: > Thank you very much, but this method only works for four point texture > coordinates > You provide so little information about the context about what you want to do folks are left guessing what might be appropriate. For instance, are you

Re: [osg-users] How to achieve osg::Texture2D rotation 180?

2021-01-24 Thread mirr...@gmail.com
Thank you very much, but this method only works for four point texture coordinates 在2021年1月19日星期二 UTC+8 下午10:32:48 写道: > This should do a 180 rotation: > image->flipVertical(); > image->flipHorizontal(); > Laurens. > > > On Tue, Jan 19, 2021 at 1:21 PM mirr...@gmail.com > wrote: > >> win10

Re: [osg-users] How to achieve osg::Texture2D rotation 180?

2021-01-19 Thread Voerman, L.
This should do a 180 rotation: image->flipVertical(); image->flipHorizontal(); Laurens. On Tue, Jan 19, 2021 at 1:21 PM mirr...@gmail.com wrote: > win10 gtx1080 osg3.6.4 > > osg::ref_ptr image = > osgDB::readImageFile( "picture.bmp" ); > osg::ref_ptr texture = new osg::Texture2D; >

[osg-users] How to achieve osg::Texture2D rotation 180?

2021-01-19 Thread mirr...@gmail.com
win10 gtx1080 osg3.6.4 osg::ref_ptr image = osgDB::readImageFile( "picture.bmp" ); osg::ref_ptr texture = new osg::Texture2D; texture->setImage( image.get() ); -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from