Re: [osg-users] Using multiples texture for a geometry

2016-05-04 Thread Florian GOLESTIN
Hi Robert, I tried without the SmoothingVisitor but it does not change anything. However during my tests today I put a "Axes" object (the axes.osgt model from the OpenSceneGraph examples) and some part of the texture on the block below the object just appeared but really dark. So it it make

Re: [osg-users] some problem about hud and window size

2016-05-04 Thread Trajce Nikolov NICK
wrong :-) .. In the update callback get a handle of the main camera :-) Cheers, Nick On Wed, May 4, 2016 at 6:17 PM, Trajce Nikolov NICK < trajce.nikolov.n...@gmail.com> wrote: > hi, > > you can do an UpdateCallback for your ortho camera that will set the > proper dimensions based on the

Re: [osg-users] some problem about hud and window size

2016-05-04 Thread Trajce Nikolov NICK
hi, you can do an UpdateCallback for your ortho camera that will set the proper dimensions based on the Viewport something like this: struct UpdateOrthoCameraCallback : public osg::NodeCallback { virtual void operator()(osg::Node* node, osg::NodeVisitor* nv); { osg::Camera* camera =

[osg-users] some problem about hud and window size

2016-05-04 Thread John Lee
Hi, First, I drew some tags dynamically using HUD camera on the render window size which is 1100X679, but when I change the length-width ratio of the render window size, the tags positions changed and it was wrong. Can anyone tell me how can i solve this problem. Thank you! Cheers, Lee

[osg-users] some problem about hud and window size

2016-05-04 Thread John Lee
Hi, First i drew some tags by HUD on the window size which is 1100X679, and it was correct. But when i change the window's length-width ratio the tag's position changed and it became wrong. Can anyone tell me how i can solve this problem? Thank you! Cheers, John -- Read this

Re: [osg-users] Using multiples texture for a geometry

2016-05-04 Thread Robert Osfield
HI Florian, I can't any obvious mistakes, but the use of the SmoothingVisitor looks redudent to me as you are providing your own normals. Try comment it out. Robert. On 3 May 2016 at 21:13, Florian GOLESTIN wrote: > Hi Robert, > > Sorry my mistake, I wanted to put