Paul Pocock | 23 Apr 23:48 2014
Picon

Transform Feedback

Hi,  Has Transform feedback been integrated into OSG? Are there any 
examples around that anyone knows about?
Thanks and Regards
Paul
Maximilian Wurm | 23 Apr 16:10 2014
Picon
Picon

Re: New primitive restart mode "leaking" into other nodes

Hi Andor,

(I know that this thread is more than 3 months old.)
I'd also like to work with the primitive restart functionality. Possibly I will run into the same error. But
to check this, I have to enable the restart mode first and set a restart index.
Like I claimed in my own thread, called "How to set up PrimitiveRestart-Mode?" (sorry can't yet post an
url), a documentation of this feature is hard to find. 
But for you, the activation of the feature, seems to be nothing to speek of. 
Can you (or anyone else) maybe post your (his) implementation?

Thank you!

Cheers,
Maximilian

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59121#59121

Robert Osfield | 23 Apr 10:49 2014
Picon

New scheme for configuring the OSG for building against different versions of the OpenGL/OpenGL ES

Hi All,

To address some of issues associated with building the OSG with
different OpenGL versions/profiles I've introduced into svn/trunk a
new CMake based scheme where you just need to set a single Cmake
variable at configure time specifying the target and then have our
CMake scripts configure all the various OSG/GL features appropriate
for each profile.

I am no CMake guru, just a user so there are likely ways to improve
what changes I've made (mainly to OpenSceneGraph/CMakeLists.txt), so
I'm open to suggestions for improvements.

As I only have access to Linux as a dev machine so have had to make a
best guess as what will work on other platforms (OSX/iOS in particular
have alternate headers for standard OpenGL headers), this means I'll
need testing across all the various platforms/OpenGL targets to know
how close I have got to getting something fully working.

So please and let me know how you get on.

Robert.

-- From the svn commit message:

Introduced new scheme for setting up which version of OpenGL/OpenGL ES
the OSG is compiled for.

To select standard OpenGL 1/2 build with full backwards and forwards
compatibility use:
(Continue reading)

Jaime | 23 Apr 10:19 2014
Picon

Best way balance tree??

Hi,

I am developing a car simulator, and our scene is very big (100 km. aprox).

What do you think is the best way to balance the osg tree?? LOD??

Thanks!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59113#59113

Norbert Eke | 23 Apr 04:21 2014
Picon

How to use Font^ as a variable in a C++ program ?

Hi,

I would have a quick question :
What do I have to include into a visual C++/CLR project to be able to use Font^ ?
I have tried to create a ref class, something like this :

Code:

    [SerializableAttribute]
    [ComVisibleAttribute(true)]
    [TypeConverterAttribute(typeof(FontConverter))]
    public ref class Font sealed : public MarshalByRefObject, 
    	ICloneable, ISerializable, IDisposable

I tried to use a namespace for the `Font^`, something like this :

    
Code:

    using namespace System;
    using namespace System::IO;
    using namespace System::Drawing;
    using namespace System::Drawing::Printing;
    using namespace System::Windows::Forms;

OR I tried to use a dll. file in order to be able to use a Font^ as a variable (specifically  
Code:
#using <System.Drawing.dll>  

But none seemed to work out ...
(Continue reading)

Liu PeiFu | 18 Apr 09:15 2014

Re: [build] Problems with compiling osg3.2 with qt5.2.1 and Cmake2.8.12

Hi,
I was about to compiling osg3.2 with qt5.2.1(windows 32bit, vs 2010, opengl). When try to configure it with
Cmake(GUI)2.8.12.2, there shows some warning:
/////////////////////////////////////////////////////////////////////////////////////
CMake Warning at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindQt4.cmake:659 (message):
  C:/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/bin/qmake.exe reported QT_INSTALL_LIBS
  as "C:/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/lib" but QtCore could not be found
  there.  Qt is NOT installed correctly for the target build environment.
Call Stack (most recent call first):
  CMakeLists.txt:585 (FIND_PACKAGE)
/////////////////////////////////////////////////////////////////////////////////////
After searched on the Internet, I tried as the following:
(1) add a Cache Entry DESIRED_QT_VERSION and set its value to 5(STRING);
(2)set the CMAKE_PREFIX_PATH to C:\Qt\Qt5.2.1\5.2.1\msvc2010_opengl;
then I configured again and there're some errors:
/////////////////////////////////////////////////////////////////////////////////////
CMake Error at
C:/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message):
  Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE "".
Call Stack (most recent call first):
  C:/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:52 (_qt5gui_find_extra_libs)
  C:/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:152 (include)
  C:/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:94 (find_package)
  CMakeLists.txt:560 (FIND_PACKAGE)
////////////////////////////////////////////////////////////////////////////////////
... 
is there anyone could help me? The attched file is my CmakeCahe.txt.
Thank you!

Cheers,
(Continue reading)

Sylvain Comtois | 22 Apr 14:51 2014
Picon

Re: A bug in multi-threaded osgTerrain (with proposed fix) plus assorted questions

Hi,

   I have a similar problem when i create an OSGTerrain node in a multithread configuration. The crash occur in
the init function of the GeometryTechnique class. Note i use OSG 3.2.

   To solve this problem, i made a small modification to OSG itself. 

   I replace the line 
      if (!_currentBufferData || !assumeMultiThreaded)
   by
      if (!_currentBufferData && !assumeMultiThreaded)
   in the GeometryTechnique::init function.

   I also replace the line 
      init(getDirtyMask(), false);
   by 
      init(getDirtyMask(), true);
   in the TerrainTile::traverse function.

   With this modification, the currentBuffer is create in the Update traversal (one thread) instead of the
cull/draw traversal (multi-thread).

   Maybe it's better to wait for OSG team approval before you made this modification. 

Cheers,
Sylvain

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59098#59098
(Continue reading)

Sam Mania | 22 Apr 05:41 2014
Picon

[osgPlugins] loading .obj file from c++

Hi,

Sorry for this probably naive question, but I just started working with OSG. I've set up a VC++ project and
I'm trying to load an obj file. I get an Unhandeled exception std::bad_alloc at memory location error. I
tried to open the obj file using osgviewer and it works fine.

The exception happens in the ReadFile file, at this statement:

Code:
return readNodeFile(filename,Registry::instance()->getOptions());

This is my basic code in c++:

Code:

#include <osg\Node>
#include <osgDB\ReadFile>
using namespace osg;
int main(){ 
	
	ref_ptr<Node> node = osgDB::readNodeFile("C:/Users/Sam/Debby.obj");
	return 0;
}

I'm thinking this might have to do with the plugins not activated or linked somehow? I'm attaching the obj
file if anyone wants to test it. 

I also tried to run any other .osg files that come with the distribution, but with the same error.

Thanks a lot for any pointers, and apologies in advance if this is too basic, but I tried to look for solutions
(Continue reading)

Patrik Andersson | 22 Apr 09:22 2014
Picon

Issues with rendering two views of the same scene

Hi,
 
I'm setting up a stereo-camera system with OSG 3.0.1, by splitting the screen horizontally with CompositeViewer and each view is rendered by two RTT onto HUD cameras/textures.
 
When I run the program as normal, only the right view was rendered properly, the left view does not render the corresponding geometry in its view.
 
A stats-handler is attached to the views. When I press 'S' three times, the information about GPU, Cameras and Views are displayed, then the left view is rendered properly.
 
The system worked when a third camera was involved and using a single viewer. But I want to decrease number of cameras which render the geometry to improve the performance.
 
Does anyone has experience with this kind of issue? I'm limited to OSG 3.0.1.
 
Kind regards
Patrik
<div><div dir="ltr">
<div>Hi,</div>
<div>&nbsp;</div>
<div>I'm setting up a stereo-camera system with OSG 3.0.1,&nbsp;by splitting the screen horizontally with CompositeViewer and each view is rendered by two RTT onto&nbsp;HUD cameras/textures. </div>
<div>&nbsp;</div>
<div>When I run the program as normal, only the right view&nbsp;was rendered properly, the left view does not render the corresponding geometry in its view.</div>
<div>&nbsp;</div>
<div>A stats-handler is attached to the views. When I press 'S' three times, the&nbsp;information about GPU, Cameras and Views are displayed, then the left view is rendered properly.</div>
<div>&nbsp;</div>
<div>The system worked when a third camera&nbsp;was involved and using a single viewer. But I want to decrease number of cameras which render the geometry to improve the performance.</div>
<div>&nbsp;</div>
<div>Does anyone has experience with this kind of issue? I'm limited to OSG 3.0.1.</div>
<div>&nbsp;</div>
<div>Kind regards</div>
<div>Patrik</div>
</div></div>
Anton | 20 Apr 16:47 2014
Picon

Is it possible to render in one RTT two cameras?

Is it possible to render in one RTT two cameras?
The first camera is the 'main scene', and the second camera - '2d menu'.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59074#59074

Bernd Hahnebach | 19 Apr 13:15 2014
Picon

[build] osg and Qt5 and debian wheezy

OK delete all links :-(

Hi All,
I'm new to the forum. I provide a linuxbuild of IfcPlusPlus. It is a viewer to display digital modells of
building in file format ifc.

The linuxbuild is on github .../berndhahnebach/IFCPlusPlus. Branch linuxbuild-qt4 runs smooth on
debian wheezy using the osg of wheezy. See on github .../berndhahnebach/IFCPlusPlus/blob/linuxbuild-qt4/README.Linux

The original code I use for my build (master branch) is linked against Qt5. I would like to link against qt5 as
well to minimise changes. In branch linuxbuild-qt5 on github
.../berndhahnebach/IFCPlusPlus/blob/linuxbuild-qt5/README.Linux . I tried to build IfcPlusPlus
agiainst Qt5, it builds but gives Segmentgation Fault at Startup. I found the binary uses libQtGui.so.4
which is of Qt4. 

My assumtion is this is because libopenscenegraph99 in debian wheezy depends on Qt4libs. That is why I can
not link against Qt5. 

Does this mean if I would like to build IfcPlusPlus against Qt5 I need to build osg against Qt5 myself to use it
with IfcPlusPlus?

Thank you! Cheers, Bernd

If you would like to try IfcPlusPlus:
search for IfcOpenHouse.ifc or for digital210king if you would like to treat IfcPlusPlus

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59070#59070


Gmane