Re: [osg-users] dotosg wrappers not thread safe

2012-06-05 Thread Mikhail I. Izmestev
Hi, Here is code to reproduce crash: code #include osgDB/ReadFile #include OpenThreads/Mutex #include OpenThreads/Thread #include OpenThreads/Condition static OpenThreads::Condition s_cond; static OpenThreads::Mutex s_mtx; class ReadThread : public OpenThreads::Thread { public: ReadThread()

Re: [osg-users] OpenSceneGraph on the Playbook

2012-06-05 Thread Sergey Polischuk
Hi You should read gles2 spec if you'll make apps running with it. There are no builtins gl_FrontColor and gl_Color in gles 2. Use your own varyings. Cheers. 05.06.2012, 00:49, Preet prismatic.proj...@gmail.com: Hiya, I managed to compile and deploy a small OSG test application on the

Re: [osg-users] dotosg wrappers not thread safe

2012-06-05 Thread Mikhail I. Izmestev
Hi Robert, I tried to reproduce this problem on linux but without luck. gcc use more complex method of initialization of static variables at function scope. So problem is only with MSVC 2008 (not sure about newer versions). Mikhail. 05.06.2012 10:39, Mikhail I. Izmestev написал: Hi, Here

Re: [osg-users] Tessellation

2012-06-05 Thread Bob Slobodan
Hi, You original asked for vertices... now you want triangles... is that because you now know how to get the vertices, or is it that you now know what you want more precisely?? I knew how to get the vertex array, but the problem is that I don't know how to get the vertices for each

Re: [osg-users] Set Viewport background color as transparent

2012-06-05 Thread Robert Osfield
Hi Vishwa, You still don't explain what you mean by a semi-transparent background colour, given what replies you've already had and you've tried it suggest to me that you really are talking about something different as what you are asking really doesn't make sense in an normal graphics

Re: [osg-users] Tessellation

2012-06-05 Thread Robert Osfield
Hi Bob, The OSG's DrawElements* encapsulate OpenGL's glDrawElements call, so it might be best if you just looked up OpenGL documentation online in books to see how the indices in the DrawElementsUByte/UShort map to triangles. Another alternative to looking at the low level primitives is to use

Re: [osg-users] dotosg wrappers not thread safe

2012-06-05 Thread Mikhail I. Izmestev
Hi, MSVC not support thread safe initialization of static variables at function scope. GCC by default generate thread safe code, but it can generate code like MSVC by passing -fno-threadsafe-statics option. So you can reproduce crash if add -fno-threadsafe-statics option to CXX_FLAGS.

[osg-users] [build] Android Compile Errors with 3rd Party library

2012-06-05 Thread Koduri Lakshmi
Hi, First Thank you very much for OSG Android. I am new to Android-ndk. I have a library (QCAR ) for AR. I am trying to use OSG as a render engine for QCAR. So I want to include OSG in QCAR program. I include some of OSG includes in my C++ program. When I compile I am getting error. My

Re: [osg-users] [build] Android Compile Errors with 3rd Party library

2012-06-05 Thread Rghima Ahlem
Hi, In the variable OSG_ANDROID_DIR, you must put the directory path that contains the osg install Thank you! Cheers, Rghima -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48049#48049 ___

Re: [osg-users] Set Viewport background color as transparent

2012-06-05 Thread Gio
I thin you can try to set the clear mask alpha channel to a value of 0.5 cheers, John On Jun 4, 2012, at 9:49 PM, shekhar vishwa vishwa.shek...@gmail.com wrote: Hi, Thanks for help. Now I can make the camera background as transparent. What parameters need to set the camera background

[osg-users] [osgPPU] Problems installing osgPPU using cmake 2.8.4

2012-06-05 Thread Christian Rumpf
I tried to install the latest osgPPU version I found today, using cmake 2.8.4 and Visual Studio 10, but when i started to configure the folder I got the following cmake-error: Check for working C compiler using: Visual Studio 10 Check for working C compiler using: Visual Studio 10 -- works

Re: [osg-users] Tessellation

2012-06-05 Thread Jason Daly
On 06/05/2012 05:50 AM, Bob Slobodan wrote: Basically yes. My problem is that I don't really get how the tesselation works and how to create new polygons using the geometry modified by the tessellation. I thought that the tesselation would simply add new PrimitiveSet such as DrawArrays and

[osg-users] problem with seams while drawing quads and quad strips

2012-06-05 Thread Michael Schanne
Hi, I am trying to draw a shape that is basically a hollow box with a tick mark on one side extending into the center (screenshot attached). I attempted to do it by drawing QUAD_STRIPS for the outer and inner faces, and QUADS for the top and bottom faces. My problem is, seams are clearly

Re: [osg-users] Tessellation

2012-06-05 Thread Bob Slobodan
Hi, Another alternative to looking at the low level primitives is to use a functor like the TriangleIndexFunctor or TriangleFunctor. Have a search through the OSG code base to see places where this used. Exactly what I was searching for. Thanks a lot !!! Cheers, Bob --

Re: [osg-users] OpenSceneGraph on the Playbook

2012-06-05 Thread Chris Hanson
You either need to write your own GLES2 shader (that's GL2 you have above) or use a shader gen tool that will generate one for you on the fly. Where did the shader, above, come from? -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training •

Re: [osg-users] problem with seams while drawing quads and quad strips

2012-06-05 Thread Sergey Polischuk
Hi, Michael Your normals is not correct. With that geometry you should have normals like (0,0,+\-1) for top-bottom, and (0,+\-1,0) with (+\-1,0,0) for sides, i dont get where you got those numbers for normals. Cheers, Sergey. 05.06.2012, 18:09, Michael Schanne michael.scha...@gmail.com: Hi,

[osg-users] Rotation Translation problem

2012-06-05 Thread Joshua Cook
Greetings I have a custom camera object that I use to store position and direction in a vec3 and quat and a matrixd which should contain both. Due to the nature of the software I have to interact with using the osg camera is not an option. So, once I have the position and rotation I am

[osg-users] What is the right way to save a FBO texture to disk?

2012-06-05 Thread John Kaniarz
My program has 4 render to texture cameras that get composited into the frame buffer via custom shader. I want to make a screen capture of one of the texture as a response to an event. Attaching an Image to the camera works, but it copies the data to system memory after every frame. Not just

Re: [osg-users] Rotation Translation problem

2012-06-05 Thread John Kaniarz
Try invert the matrix before attaching it to the camera. A common mistake is to think about rotating the camera's view instead of rotating the world into the view of the camera. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48060#48060

Re: [osg-users] OpenSceneGraph on the Playbook

2012-06-05 Thread Preet
On Tue, Jun 5, 2012 at 12:17 PM, Chris Hanson xe...@alphapixel.com wrote:   You either need to write your own GLES2 shader (that's GL2 you have above) or use a shader gen tool that will generate one for you on the fly.   Where did the shader, above, come from? It was automatically genereated

[osg-users] zoom to object with camera

2012-06-05 Thread Jason Anderssen
Hi all, Hope this is a simple question, in OSG is there a simple way to move the camera so it is viewing the extents of a particular geode in the current scene (e.g. the user selects an object and the camera zooms to it) ? Even better would be is it possible to calculate the new camera position

Re: [osg-users] Set Viewport background color as transparent

2012-06-05 Thread Gio
I think Vishwa wants to do something similar to what I am currently doing in iOS. I set transparent background in order to see some layer that is below, which in my case is the image coming from the videocamera. Anyway it would be helpful if Vishwa you can explain us better the purpose of your

Re: [osg-users] Set Viewport background color as transparent

2012-06-05 Thread shekhar vishwa
Hi, I am trying to implement the multiple views in same window. Each view render the diffrent models.User can set the view position at run time by mouse dragging. If dragged view is overlapped with any view then dragged view backgroud should be semi-trasparent. Please suggest me to resolve this.

Re: [osg-users] zoom to object with camera

2012-06-05 Thread Torben Dannhauer
Hi, yes this function is called node tracking. You can track a node and configure which degrees of freedom your camera should provide. There is a default Nodetracker-Manipulator in OSG. You just have to set the Node you want to track. Cheers, Torben -- Read this topic