[osg-users] [forum] iOS: texture memory not released

2014-12-16 Thread Alessandro Terenzi
Hi, I've noticed that when I load a model with a texture and then dismiss the ViewController that displays that model, even though I correctly release it's memory (I'm tracing reference counts and I see that they always are 0 when the ViewController is dismissed), all the memory related to

Re: [osg-users] reading the color buffer in stereo mode

2014-12-16 Thread WillScott
是呀。我在遥感信息工程学院,你在哪个学院?我的QQ:625853834 有时间了,多多交流~ 张觅 Date: Tue, 9 Dec 2014 08:23:32 +0800 From: wyg030...@163.com To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] reading the color buffer in stereo mode thanks for Robert's kind answers. Currently, my osg version is 3.3.1, and I

[osg-users] clone a texture

2014-12-16 Thread sheppner
Hi, I have a texture which is updated/changed multiple times with the help of shaders (by rendering to texture). Now I like to store the different stages of the texture - before and after applying the different shaders. I search something like: osg::Texture2D texture = ... ...

[osg-users] iOS: texture memory not released

2014-12-16 Thread Alessandro Terenzi
Hi, I've noticed that when I load a model with a texture and then dismiss the ViewController that displays that model, even though I correctly release it's memory (I'm tracing reference counts and I see that they always are 0 when the ViewController is dismissed), all the memory related to

Re: [osg-users] clone a texture

2014-12-16 Thread Robert Osfield
Hi ? Could you sign with your name so we know how to address you :-) Cloning a texture that is being used the way you are using it won't work. What you should be doing is hard to know as you only specify what you are doing, not what you are trying to achieve. It be that you should be using

Re: [osg-users] [forum] iOS: texture memory not released

2014-12-16 Thread Robert Osfield
HI Alessandro, I don't know enough about your application to know what is going on, but in general I can say that you cannot delete OpenGL objects from any other thread other than thread that has the context that owns the OpenGL objects. To cope with the OpenGL limitation the OSG has to place

[osg-users] Replace pure OpenGL method by OSG

2014-12-16 Thread Marcin Kolny
Hi, I've got following code: Code: glMatrixMode (GL_PROJECTION); glLoadIdentity (); GLfloat verts[] = { -1.0f, -1.0f, 1.0f, -1.0f,1.0f, 1.0f, -1.0f, 1.0f }; GLfloat texcoords[] = { 0.0f, 0.0f, 1.0f, 0.0f,

Re: [osg-users] [forum] Pls help me! Why osgDB::readNodeFile return a NULL value!

2014-12-16 Thread Nguyen Quang Nam
Hi, Rober, Chris! Robert: Thank you! I am a new osg-er but i read a project first and do with it. It may be bad. Thank for your advise :) Chris: Thank you! It help me alot [Exclamation] -- Read this topic online here:

[osg-users] Need some suggestion about ball movement in a tunnel drawings

2014-12-16 Thread Jim Feng
Hi, I want to draw a curved tunnel and restrict a ball movement inside the tunnel like the image below: [/img] So, in order to do this, I have to create a tunnel model and load it by using openscenegraph plugins? or I could use some program lines to draw this kind of geometry directly? And

[osg-users] Using Shader in OSG

2014-12-16 Thread He Jingyuan
Hi there, Here is a Newbie Question: I'm trying to put a lot of continuous photos of a street together so that they look like a panorama (or full view). I choose photos oriented to roadside buildings which looks like front view. I created N(approximate 21) square(geometry) nodes, and every

Re: [osg-users] Replace pure OpenGL method by OSG

2014-12-16 Thread Trajce Nikolov NICK
Hi, have a look at the osggeometry example Nick On Fri, Dec 12, 2014 at 3:42 PM, Marcin Kolny marcin.ko...@gmail.com wrote: Hi, I've got following code: Code: glMatrixMode (GL_PROJECTION); glLoadIdentity (); GLfloat verts[] = { -1.0f,

[osg-users] hard to understand behavior of control point in animation path help me??

2014-12-16 Thread Goutham Mudide
Hi, ... I loaded two models into scene first one is placed at origin and another object is placed at (-x,0,-z) .I used osg::animation to animate fist object to touch other object, to do so I created 3 control points and I have odd coded position and rotation. Animation path is:- /