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

2012-06-04 Thread Mikhail I. Izmestev
Hi, Here is code to reproduce crash: #include #include #include #include static OpenThreads::Condition s_cond; static OpenThreads::Mutex s_mtx; class ReadThread : public OpenThreads::Thread { public: ReadThread() {} void run() { { OpenThreads::ScopedLock lock(s_mtx);

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

2012-06-04 Thread shekhar vishwa
Hi, I want to show the models on semi-transparent backgroud color. I have implemented following code camera1->setViewport( 0, 0, 200, 200 ); camera1->setClearColor( osg::Vec4(0.0f, 1.0f, 1.0f, 0.5f) ); camera1->setRenderOrder( osg::Camera::POST_RENDER ); camera1->setAllowEventFocus( true );

Re: [osg-users] Possibility of an OSG bot

2012-06-04 Thread Sterling Somers
Thanks Robert, I'll have a look! robertosfield wrote: > Hi Stirling, > If you need to reject concluded objects then you will need to use the OpenGL > occlusion query feature, see the osgocclusionquery example. > Robert On May 28, 2012 5:17 PM, "Sterling Somers" < ()> wrote: > > Robert, > > >

[osg-users] OpenSceneGraph on the Playbook

2012-06-04 Thread Preet
Hiya, I managed to compile and deploy a small OSG test application on the Playbook, but have run into some trouble getting it to work correctly. I'm not creating my own context or windowing system; instead I'm using osg's GraphicsWindowEmbedded with Qt. As a test, I set up a scene with a rotating

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

2012-06-04 Thread Robert Osfield
Hi Vishwa, On 4 June 2012 20:49, shekhar vishwa wrote: > Thanks for help. Now I can make the camera background as transparent. What > parameters need to set the camera background as semi-transparent. What do you mean by semi-transparent background? Everyone has given you as much guidance as can

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

2012-06-04 Thread shekhar vishwa
Hi, Thanks for help. Now I can make the camera background as transparent. What parameters need to set the camera background as semi-transparent. Please help me. Thanks Vishwa ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.op

[osg-users] osgOcean: Update cubemap often not working?

2012-06-04 Thread Brad Colbert
Hi folks, I'm not sure what I'm missing, but I'm trying to update the cubemap used in osgOcean (and the example application) with a series of cameras. The approach I've taken is derived from the osgprerendercubemap example. I'm rendering our sky model to the cubemap but, strangely it does not

[osg-users] Troubles with the Texture2D serializer when _image is an ImageSequence

2012-06-04 Thread rocco martino
Hello everyone, I've discovered a problem with the Texture2D serializer that occurs when the associated image is an instance of an osg::ImageSequence. I think this happens because the ImageSerializer::read method calls the InputStream::readImage without ensuring that the object is actually an osg

Re: [osg-users] Tessellation

2012-06-04 Thread Robert Osfield
On 4 June 2012 16:01, Bob Slobodan wrote: > And what I would like to do now is to get the list of "triangles" from my > geometry. 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 preci

Re: [osg-users] Tessellation

2012-06-04 Thread Bob Slobodan
Hi, Sorry, my bad. Basically, I want to "triangulate" polygons. I have polygon with more than 3 vertices and I want to retrieve the "sub-polygons" (simple triangles) using the osg tesselation tool. Here is some code. In my "surface" class, after creating my geometry, I tessellate it if it has

Re: [osg-users] Tessellation

2012-06-04 Thread Robert Osfield
On 4 June 2012 13:31, Bob Slobodan wrote: > Really no one has a clue about how to do it ? More likely that no one has a real clue what you are asking and after. Getting a vertex array from an osg::Geometry is easy... just look at the Geometry header and you'll find a getVertexArray() method, but

Re: [osg-users] Multi-touch on osg (Android)

2012-06-04 Thread Rghima Ahlem
Hi, I know that osg don't support the gesture recognition. I have to differentiate between the rotation and zoom to specify button (1 or 3) for methods mouseButtonReleaseEvent and mouseButtonPressEvent. Thank you! Cheers, Rghima -- Read this topic online here: http://forum.ope

Re: [osg-users] Tessellation

2012-06-04 Thread Bob Slobodan
Really no one has a clue about how to do it ? I tried to look at the getPrimList and the getContours functions of the tessallator but it seems the array are the same as before the tesselation. I also tried to look at the PrimitiveSetList of my geometry but I can only find one after the tessella

Re: [osg-users] Multi-touch on osg (Android)

2012-06-04 Thread Stephan Maximilian Huber
Hi you'll need to code the logic by yourself. osg has no built-in gesture recognition. you can compute both zoom level and rotation from your multi-touch input, no need to distinguish between them. Just store the start touch-points and compare them with the current touch-points. compute the zoom-

[osg-users] Multi-touch on osg (Android)

2012-06-04 Thread Rghima Ahlem
Hi, I work on th osgAndroidExampleGLES1, i want to work with multi -touch with the buton "change Navigation". one finger->drag two fingers->rotation, zoom. the problem is to difference between zoom in , zoom out and rotation Please help me to detect the type of moving. Thank you! Cheers, Rghim

Re: [osg-users] RTT using slave cameras (osgfpdeth example)

2012-06-04 Thread Tim Moore
I'm not sure if this answers your question, but... the only portable way to get a floating point depth buffer is with an FBO; you can't attach one to the frame buffer associated with the main display. So the example renders the geometry to an FBO attached to a slave, then displays the results as a

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

2012-06-04 Thread Mikhail I. Izmestev
Hi Robert, It is hard to reproduce this problem (as any thread safety problem) in same state as previous. I have another crash with same problem at: ntdll!RtlEnterCriticalSection+0x6 ot12_OpenThreads!OpenThreads::Mutex::lock+0xe osgdb_deprecated_osg!initGLNames+0x66 osgdb_deprecated_osg!StateS

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

2012-06-04 Thread Robert Osfield
Hi Shekhar, On 2 June 2012 12:30, shekhar vishwa wrote: > I am using the OSG, but I unable to set the viewport or view backgraund > color as transparent. Do you actually mean that you want it completely transparent? As in disable the clear of the colour buffer completely? If so then use the Cam

Re: [osg-users] Getting Webcam feed - From OpenCV to OSG

2012-06-04 Thread Robert Osfield
Hi Praveena, You say the program crashes but provide absolutely no guidance on where and when it crashes. This gives us nothing to go on. Please use a debugger to get a stack trace of where it is crashing and then pass on this info. Robert. On 4 June 2012 06:52, Praveena Sarathchandra wrote:

Re: [osg-users] Shared Vertex Arrays with multiple Geodes?

2012-06-04 Thread Robert Osfield
Hi Jason, On 4 June 2012 00:40, Jason Anderssen wrote: > I would like to know what is the best way to go about having a shared vertex > array that is shared between multiple Geode's with indexes into the vertex > array? Simply assign the same vertex array to each osg::Geometry and use differen

Re: [osg-users] Getting Webcam feed - From OpenCV to OSG

2012-06-04 Thread Sergey Polischuk
 Hi You can doosgImage->setImage(cvImg->width,cvImg->height, 3,               GL_RGB, GL_RGB, GL_UNSIGNED_BYTE,                (BYTE*)(cvImg->imageData),               osg::Image::AllocationMode::NO_DELETE,1); every time new image comes from opencv, and you should be ok Cheers. 04.06.2012, 09:52, "

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

2012-06-04 Thread Robert Osfield
Hi Mikhail, I have moved the static into the global scope of the osgWrappers/deprecated-dotosg/Drawable.cpp, file attached, could try it out? Robert. On 2 June 2012 11:12, Mikhail I. Izmestev wrote: > Hi, > > I noticed crashing in dotosg wrappers when try to use osgDB::readNodeFile > from multi

[osg-users] Tessellation

2012-06-04 Thread Bob Slobodan
Hi, The idea is simple, I have a class named "Surface" that handles polygons (each instance handles one polygon). Basically, when a surface has more than 3 vertices, I tessellate it to be sure that it will be properly rendered. My problem is that I now need to separate the different polygons cr

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

2012-06-04 Thread Gio
Hi Shekhar, to set a transparent background you have to enable alpha when you set your traits When you set the graphic context traits osg::ref_ptr traits = new osg::GraphicsContext::Traits; you can just add the line to your configuration: traits->alpha = 1; after you create a graphicc