Re: [osg-users] Scale image

2010-04-25 Thread J.P. Delport
Hi, see Texture->setResizeNonPowerOfTwoHint set to false. jp On 26/04/10 08:34, Anthony Face wrote: Hello, I use a texture to show an 1000x1000 px image. OSG rescale the image. I know we can ask to the GPU to do it and that will upgrade my framerate, but how to do this? Thanks to you !

Re: [osg-users] Buffer problem

2010-04-25 Thread J.P. Delport
Hi, OpenGL (for identity projection) has 0,0 at bottom left. Your cam prob has 0,0 at top left (first pos in the buffer). Easiest is to just swap to top/bottom texture coordinates when you apply the texture. jp On 26/04/10 08:32, Anthony Face wrote: Hi, I have a texture problem. I use memc

[osg-users] Scale image

2010-04-25 Thread Anthony Face
Hello, I use a texture to show an 1000x1000 px image. OSG rescale the image. I know we can ask to the GPU to do it and that will upgrade my framerate, but how to do this? Thanks to you ! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27272#27272

[osg-users] Buffer problem

2010-04-25 Thread Anthony Face
Hi, I have a texture problem. I use memcpy() to copy a buffer from a camera to the texture. This work but the image is reverse. How can i change it? Thx you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27271#27271 __

Re: [osg-users] texture2Darray issue with different image format

2010-04-25 Thread Wojciech Lewandowski
It was based on the trunk. What were the problems ? I'll recheck if the code still compiles later today. WL From: Riccardo Corsi Sent: Monday, April 26, 2010 1:38 AM To: OpenSceneGraph Users Subject: Re: [osg-users] texture2Darray issue with different image format Hi Wojtek, I didn't mana

[osg-users] [build] plz help!!! compiling OSG under cygwin ... plz help!!!!

2010-04-25 Thread sarah keith
Hi, ... well i am trying to compile flight gear flight simulator. . i have compiled most of the libraries , but this one is rele causing me problems.. i am using cygwin. and i have to compile osg 2.8.3.. my cmake version is 2.6.0-1 and it is particularly built for cygwin (i guess) .. bill h

[osg-users] Applying Rotation To An Object?

2010-04-25 Thread Elliot Pilkington
Having created a sphere and applying a texture and lighting i now need to apply a rotation to my sphere, i have done this by using an animate callback. Code: PositionAttitudeTransform *rotate_plntOne = new PositionAttitudeTransform; rotate_plntOne->addChild(geode_planetOne); rotate_plntOne->set

Re: [osg-users] [osgOcean] osgOcean linux bug disappeared with VBO

2010-04-25 Thread Roman Grigoriev
I simply compile vbo branch from /branches/osgOcean-VBO and oceanexample works fine. -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Kim Bale Sent: Saturday, April 24, 2010 2:16 AM To: osg-users@lists.ope

Re: [osg-users] texture2Darray issue with different image format

2010-04-25 Thread Riccardo Corsi
Hi Wojtek, I didn't manage to compile your patch with neither osg 2.8.2 nor the trunk. What osg revision is needed? Ricky On Fri, Apr 23, 2010 at 12:08, Riccardo Corsi wrote: > Hi Wojtek and Robert, > > thanks for your replies. > I'll try the patch in the evening and let you know if it fixes th

Re: [osg-users] [osgPPU] HDR example: wrong average luminance?

2010-04-25 Thread Art Tevs
Hi Luca, ok, I will then try to investigate what is going wrong there. One have first to check if there is at least some data in the mipmap structure. For this purpose glslDevil is a good debugger, which I have used several times to test opengl applications. If there is a data there, then one n

Re: [osg-users] [osgPPU] HDR example: wrong average luminance?

2010-04-25 Thread Luca Vezzadini
art wrote: > > Lucca, could you please try to change the texture2D () operations in the > shaders which access last mipmap level (i.e. level 100) to an texture2DLod > function. This might help. Hi Art, No luck... just tried it and it does not help. Actually the lod function does not produce