Re: [osg-users] Solving forum.openscenegraph.org problems

2013-08-01 Thread Robert Osfield
Hi Art, On 31 July 2013 18:28, Art arti_t...@yahoo.de wrote: Just to give an overview, why moderation of the forum often sucks. The rule, that users have to provide a reasonable real name, makes the moderation and in specific the approval of new users kind of a tedious task. I have always to

Re: [osg-users] Using c++11 smartpointer instead of osg::ref_ptr?

2013-08-01 Thread Robert Osfield
Hi Maik? Klein? how do you like to be addressed? On 29 April 2013 00:53, Maik Klein maikkl...@googlemail.com wrote: I am wondering if it is possible to use the c++11 smartpointer instead of osg::ref_ptr? Is there any advantage in using the osg::ref_ptr? As others have said osg::ref_ptr is an

Re: [osg-users] output highest quality 3D image to be sent to Full HD smart TV or Cinemizer Oled

2013-08-01 Thread Robert Osfield
Hi W? Could you sign with a whole human name, if we all just used the first letter of our name then we'd only have capacity for have 26 people in the community. Thanks. On 31 July 2013 23:10, u198091 . wrl.delv...@gmail.com wrote: I am an absolute newbie so I apologise in advance for potential

Re: [osg-users] [forum] How to get parent node size in world coordinate

2013-08-01 Thread Robert Osfield
Hi Arka? Saha? On 6 April 2013 14:10, Arka Saha arka.s...@larsentoubro.com wrote: I just started using OSG. I need to know how to get size of the parent. You phone up your parents and ask them, or just sneak a tape measure next time you see them :-) Actually I have a flat UTM terrain and I

Re: [osg-users] geographic coordinate convert

2013-08-01 Thread Robert Osfield
Hi Tianyun, The OSG itself doesn't manage mercator projections, so if you want to covnert being different coordinate systems then you are best using a 3rd party library like GDAL. What osg::EllipsoidModel can do is handle the whole earth ellisoid and converson of lats/long to Earth Center Earth

Re: [osg-users] put multiple image file on one elevation model

2013-08-01 Thread Robert Osfield
Hi Tianyun, On 24 April 2013 09:31, Tianyun Su tianyun...@gmail.com wrote: I have an elevation model and multiple image files (jpeg format). The four vertex coordinates of each image file are recorded in a text file. So, I wonder how can I put all these image files on he surface of

Re: [osg-users] Get depth image after draw a specific node

2013-08-01 Thread Robert Osfield
HI Isaac, On 26 April 2013 07:10, Isaac Cho chois...@gmail.com wrote: I want to implement get z-buffer info. for only specific node. for example, there are 5 different nodes in the graph, I want to get depth information after draw node1 before other node 2~4. I tested RTT camera, but it

Re: [osg-users] Multiple geometry models can be combined into a single geometry

2013-08-01 Thread Robert Osfield
Hi Wang, On 27 April 2013 06:45, Wang Yes qz...@foxmail.com wrote: A texture corresponding to a geometryI texture very much in a osg file, so there are a lot of geometry, Now, I want to talk about these geometry combined into a small amount of geometry, that is to say, a geometry to have

Re: [osg-users] get a depth image of a specific node

2013-08-01 Thread Robert Osfield
Hi Issac, I've just replied to your first question about depth buffer, so want answer the same question again... One thing you might want ot do is step back and explain at a higher level what you are trying to achieve as it could well be that getting the depth buffer isn't what you need to do.

Re: [osg-users] geographic coordinate convert

2013-08-01 Thread tianyun . su
Hi, Robert Thank you for your kind reply, I will try GDAL to solve the problem. Tianyun From: Robert Osfield Date: 2013-08-01 14:41 To: osg-users Subject: Re: [osg-users] geographic coordinate convert Hi Tianyun, The OSG itself doesn't manage mercator projections, so if you want to covnert

Re: [osg-users] put multiple image file on one elevation model

2013-08-01 Thread tianyun . su
Hi, Robert Thank you for your kind reply, I will try osg::Image Copy function to see if it works. But how to use multi-texturing to layer the images onto the geometry as you mentioned? Tianyun From: Robert Osfield Date: 2013-08-01 14:43 To: osg-users Subject: Re: [osg-users] put multiple image

Re: [osg-users] put multiple image file on one elevation model

2013-08-01 Thread Robert Osfield
Hi Tianyun, On 1 August 2013 06:57, tianyun.su tianyun...@gmail.com wrote: Thank you for your kind reply, I will try osg::Image Copy function to see if it works. But how to use multi-texturing to layer the images onto the geometry as you mentioned? You just assign texture coordinates for

Re: [osg-users] Installation process

2013-08-01 Thread Robert Osfield
HI Erappa, On 30 July 2013 11:13, Erappa Naik erappan...@simlabs.in wrote: I am very new to the OSG. I tried the same steps which is explained in getting started page. But I did not succeed to install OSG. Can anybody please help me, how to install OSG on windows 8 x64 bit processor and I

Re: [osg-users] How to get the pixel length of a string

2013-08-01 Thread Robert Osfield
Hi Xiangfei, On 24 July 2013 05:55, Xiangfei Cui sophist...@gmail.com wrote: I have a question. I create a osgText::Text and set the CharacterSizeMode to SCREEN_COORDS. How can I get the pixel length of a string ? There isn't a specific function for this. The Text drawable has a getBound()

Re: [osg-users] Qlist of osg::Image

2013-08-01 Thread Robert Osfield
HI Filippo, There really isn't enough information to know what might be wrong. The best that others like myself can do at this stage is provide general advice on threading. Your code doesn't have or mention any mutex, you'll need to use this to avoid problems with the two threads reading/writing

Re: [osg-users] Converting a 4x4 transformation matrix to an AnimationPath::ControlPoint

2013-08-01 Thread Robert Osfield
Hi Tom, There isn't a convenience function to jump from a Matrix to a ControlPoint so you'll need to extract the position, rotation and scale from the osg::Matrix yourself. There are Matrix::getTrans(), Matrix::getRotate() and Matrix::getScale() methods that while they aren't full proof should

Re: [osg-users] [osgPlugins] Problems building plugin fbx - osg-3.0.1

2013-08-01 Thread Robert Osfield
Hi Flavien, I don't have experience with Windows, and haven't touched FBX plugin for a while but since 3.0.1 there have been submissions to the FBX to update it in various ways. The best thing would probably be to update to OSG-3.2.0 and see how you get on. Robert. On 3 July 2013 14:14,

Re: [osg-users] Installation process

2013-08-01 Thread Sebastian Messerschmidt
Hi Erappa, can you explain where your installation fails? Usually you check out the sources, run cmake and build the solution. After doing so, you build the INSTALL project to install the result to the Directory you set up in the CMakeGUI (CMAKE_INSTALL_PREFIX). If you are using 3rd_party

Re: [osg-users] [osgPlugins] Problems building plugin fbx - osg-3.0.1

2013-08-01 Thread Sebastian Messerschmidt
Hi Flavien, As far as I remember you can simply change the URL in your browser to get older versions of the SDK. Also your errors more sound like your not setting the correct fbx libraries in the CMake. There are mt, md and some static ones so you might have to check which one was working.

Re: [osg-users] [forum] Instanced drawing

2013-08-01 Thread Jordi Torres
Hi Mateusz, Take in mind that 1D textures are limited to 8192 texels, if you need more you should use a TextureBufferObject. I've attached a simple example getting postions from a texture 1D. The TransferFunction used is not necessary. Hope it helps. 2013/6/20 Mateusz Janiak mati_jan...@wp.pl

Re: [osg-users] Error occus when set up 3D Quad stereo

2013-08-01 Thread Alistair Baxter
We currently have: Graphic card type: NVIDIA GeForce 9300GE Monitor/TV(Panasonic TC-P50UT50): Screen refresh rate 60Hz, colors: 32bit, resolution: 1920*1080 (3D TV) Glasses: Panasonic 3D FULL HD (TY-ER3D4MU) wireless Have you got NVIDIA 3DTV Play installed? I think you need to buy that off

Re: [osg-users] output highest quality 3D image to be sent to Full HD smart TV or Cinemizer Oled

2013-08-01 Thread u198091 .
Sorry I always sign my mails with W (stands for Wim) as my email adress contains my full name ... About the reply, How does the driver know the capabilities of the display devices if it is a 3d TV ? Yes it knows its resolution but in the case of my tv and the cinemizer many 3D formats are

Re: [osg-users] [osgPlugins] osgQt 2 Widget, 2 Viewer - freeze

2013-08-01 Thread Alistair Baxter
I have a problem with osg and Qt I have 1 main window with 1 viewer that run normally And I have 1 button that open another Widget with another osgViewer but there I have to wait 30 or 40 s before move camera We found that we had difficulties using multiple viewer instances in our Qt

Re: [osg-users] LineSegmentIntersector gives incorrect results (intersections missing)

2013-08-01 Thread Robert Osfield
Hi Jaap, In svn/trunk I've introduced the ability to set the Eplsion value to a user specified value rather than the default of 1e-4, this may not be an ideal solution though, I'd much rather have the code work with defaults correctly. The clipping of the line length to the bounding box is done

Re: [osg-users] OpenGL 4 support

2013-08-01 Thread Alistair Baxter
Am i missing something here or is it a real pain to get GL3+ working with OSG? How does OSG support OpenGL 4.2 (as mentioned on the website) if it isn't in sync with the glcorearb.h file and is still looking for gl3.h? In order to build osg for Windows with OpenGL 3.x features, I needed

Re: [osg-users] output highest quality 3D image to be sent to Full HD smart TV or Cinemizer Oled

2013-08-01 Thread Robert Osfield
On 1 August 2013 09:07, u198091 . wrl.delv...@gmail.com wrote: Sorry I always sign my mails with W (stands for Wim) as my email adress contains my full name ... The one you've subscribed with has wrl.devaux so does lead to confusion. Using an abrevation is fine for 1:1 communication but in

Re: [osg-users] OpenGL 4 support

2013-08-01 Thread Robert Osfield
Hi Roger, Are you wanting to just use some OpenGL 4.x with the compatibility profile or do you want to core profile and avoid all the fuxed function pipeline? The OSG itself defines missing parts of various GL extensions that aren't available in gl.h headers, including handling of MS's OpenGL

Re: [osg-users] Aspect Ratio Issue in iOS

2013-08-01 Thread Robert Osfield
Hi Lenny, I am not familiar with iOS so can't provide specific answers. I do vaguely recall some submissions from contributors working under iOS that related to aspect ratio so there is change that OSG-3.2 might address some of the issues, this is long shot suggestion though but might be worth a

Re: [osg-users] OpenSceneGraph transformation precision

2013-08-01 Thread Robert Osfield
Hi John/Codec. The issue of how to handle precision on large scenes is soemthing that OSG users have been tackling for many years and has been discussed many times so I recommend having a look through the archives. The short story is that OpenGL is princply float based so matrices and geometries

Re: [osg-users] StateGraph prune and performance

2013-08-01 Thread Robert Osfield
Hi Dusty, On 23 May 2013 19:40, Dusty Embrey dusty.emb...@gmail.com wrote: I have a large terrain database with about 100 entities in it using osg 2.8.3. I currently have a CPU bottleneck which is spending about 70% of the frame doing allocations of new StateGraph nodes during my cull()

Re: [osg-users] 2d HUD animation

2013-08-01 Thread Robert Osfield
Hi Alexandre, For closure of this thread on the forum I'll provide a quick reply, as the question should have already be answered in the thread on the mailing list. Simple answer is osg::ImageSequence exist to allow one to create which is effectively a movie from still images. The

Re: [osg-users] 2D Overlay on HUD

2013-08-01 Thread Robert Osfield
Hi Hen? Drik? Could you sign with how you like to be addressed so we know how to address you thanks. On 19 July 2013 08:27, Hen Drik chaefc...@gmx.de wrote: I'm very new on osg and have the task to create a HUD which should overlay a 3D object from the actual scene. ... I attached a picture

Re: [osg-users] 2D Overlay on HUD

2013-08-01 Thread Alexandre Vaillancourt
We achieved something like that by adding a view/camera to our compositeviewer, and by having the 'target' node part of the graph of that camera's scene. Then at each frame we calculate how we need to move the camera (view matrix) based on the location of the object. -- Alexandre Vaillancourt

Re: [osg-users] How to return a NULL value of osg::Vec3f type

2013-08-01 Thread Alexandre Vaillancourt
This is more of a c++/architecture question. Here's something you could try: bool getLineIntersctionIfExists(osg::Vec3f p1, osg::Vec3f p2, osg::Vec3f p3, osg::Vec3f p4, osg::Vec3f outIntersctionPoint) const { outIntersctionPoint = osg::Vec3f( 0.0f, 0.0f, 0.0f ); float x1 =

Re: [osg-users] Using c++11 smartpointer instead of osg::ref_ptr?

2013-08-01 Thread Shue, John A
Robert, While speaking of the new C++11 standard, do you have any plans or have you thought about how to start introducing new parts of the language? Doing so would obviously break the build for those with non-compliant compilers, and the ugliness of #ifdef'ing old and new syntax is very

Re: [osg-users] Using c++11 smartpointer instead of osg::ref_ptr?

2013-08-01 Thread Robert Osfield
Hi John, On 1 August 2013 14:14, Shue, John A john.s...@mantech.com wrote: While speaking of the new C++11 standard, do you have any plans or have you thought about how to start introducing new parts of the language? Doing so would obviously break the build for those with non-compliant

Re: [osg-users] Using c++11 smartpointer instead of osg::ref_ptr?

2013-08-01 Thread Paul Martz
You can pass references to shared_ptr objects. You only need to copy them for long-term storage, which is typically not a performance critical operation in a scene graph. On Thu, Aug 1, 2013 at 12:21 AM, Robert Osfield robert.osfi...@gmail.comwrote: Hi Maik? Klein? how do you like to be

[osg-users] Bug in trunk with Intersector epsilon

2013-08-01 Thread Aurelien Albert
Hi, I think there is a bug in the trunk : the epsilon used for osgUtil::Intersector class is not initialized. Thank you! Cheers, Aurelien -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=55692#55692

Re: [osg-users] OpenGL 4 support

2013-08-01 Thread Paul Martz
If you don't build OSG with the GL3_AVAILABLE CMake flag, then OSG supports GL3 and GL4 functionality via a GL 2.1 context and the OpenGL extension interface. Selecting the GL3_AVAILABLE flag allows you to open GL3/4 contexts. This functionality was added in the OSG 2.9.x series. To my knowledge,

Re: [osg-users] Using c++11 smartpointer instead of osg::ref_ptr?

2013-08-01 Thread Robert Osfield
On 1 August 2013 15:09, Paul Martz skewmat...@gmail.com wrote: You can pass references to shared_ptr objects. You only need to copy them for long-term storage, which is typically not a performance critical operation in a scene graph. I hadn't thought of pass them by reference, yep this would

Re: [osg-users] Bug in trunk with Intersector epsilon

2013-08-01 Thread Robert Osfield
Hi Aurelien, On 1 August 2013 16:09, Aurelien Albert aurelien.alb...@alyotech.fr wrote: I think there is a bug in the trunk : the epsilon used for osgUtil::Intersector class is not initialized. Opps, I did originally have a initializer for _epsilon when it was initially implemented in

Re: [osg-users] OpenGL 4 support

2013-08-01 Thread Roger Floydman
Hi Robert, I would like to use some of the OpenGL 4.x features with the compatibility profile. To do that, do i need to use the setGLExtensionFuncPtr method to get access to the GL funtions i wish to use? (E.g. glGenVertexArrays ) Thanks, Roger robertosfield wrote: Hi Roger, Are you

[osg-users] osgviewer segmentation fault under virtualbox

2013-08-01 Thread Chen Feng
Hi All, I recently tried to run osgviewer under virtualbox 4.2.10 (3D acceleration enabled) with host OS as 64bit Win7 and guest OS as 64bit ubuntu 12.04. I installed osg by sudo apt-get install openscenegraph. I found something strange: if I ran osgviewer cow.osg I'll get segmentation fault