Re: [osg-users] [osgCompute] END_BRACKET

2013-02-12 Thread Wang Rui
Hi Sajjadul, The ‘BEGIN_BRACKET' and 'END_BRACKET' macros are changed from static ones to class members in rev. 13058 to fix threading read/write problems . They are not modified yet in OSG 3.0.1 (older than rev.13058) so you will see the compiling problems above. Please try to use some later deve

Re: [osg-users] [osgCompute] END_BRACKET

2013-02-12 Thread Sajjadul Islam
Hi, I downloaded the latest osgCompute from the repository and i have the openscenegraph 3.0.1 installed in the system. And i am getting the similar compilation error while building the osgCompute: Code: [ 35%] Building CXX object src/osgCudaSerializer/CMakeFiles/osgdb_serializers_osgCuda.d

[osg-users] setting a polygon height

2013-02-12 Thread Mohammed Rashad
How to set the height of a polygon in OSG 3.0? I have created some polygon which are 2D. I want to assing random heights for the polygon. How this can be done? osg::Geometry* polyGeom = new osg::Geometry(); and i then feed the vertices like: osg::Vec3 myCoords[] = { os

Re: [osg-users] Integration of a NodeKit for Sky Rendering

2013-02-12 Thread Mathias Fröhlich
Hi, On Tuesday, February 12, 2013 11:55:48 Robert Osfield wrote: > Integrating with an ECEF model would be ideal, lots of OSG users have > applications where whole earth models are used and viewpoints go from > within the atmosphere to outside it. If there is a question how this can be achieved,

[osg-users] get sub image

2013-02-12 Thread Conan Doyle
Hi, I create a texture from an image I load... Code: osg::ref_ptr originalImage = osgDB::readImageFile( textureFilename ); m_Texture = new osg::TextureRectangle; m_Texture->setImage( originalImage.get() ); I would like to also create texture from a sub images of originalImage. Is there a

[osg-users] get sub image

2013-02-12 Thread Conan Doyle
Hi, I create a texture from an image I load... Code: osg::ref_ptr originalImage = osgDB::readImageFile( textureFilename ); m_Texture = new osg::TextureRectangle; m_Texture->setImage( originalImage.get() ); I would like to also create texture from a sub images of originalImage. Is there a

Re: [osg-users] Integration of a NodeKit for Sky Rendering

2013-02-12 Thread Jordi Torres
Hi Daniel and Robert, 2013/2/12 Robert Osfield > Hi Daniel, > > On 21 January 2013 11:44, Daniel Limberger > wrote: > > Yes, I would like that. Can someone provide my openscenegraph account > with the required rights or is there a special procedure of adding new > content there? > > For code s

Re: [osg-users] how pick the nearest point in a cloud point?

2013-02-12 Thread Chris Hanson
You can also rasterize your points as 3D cones on a 2D surface normal to the view vector. The cones will spread out and merge together, covering the space between them, so that in empty space, you'll always hit something -- the nearest point. On Tue, Feb 12, 2013 at 3:02 AM, Sergey Kurdakov wrote

Re: [osg-users] Integration of a NodeKit for Sky Rendering

2013-02-12 Thread Chris Hanson
I would sort of advocate keeping it an external project, like osgEarth. On Tue, Feb 12, 2013 at 4:55 AM, Robert Osfield wrote: > Hi Daniel, > > On 21 January 2013 11:44, Daniel Limberger > wrote: > > Yes, I would like that. Can someone provide my openscenegraph account > with the required righ

Re: [osg-users] what is the replacement class for Producer::CameraConfig ?

2013-02-12 Thread Robert Osfield
Hi Selvakumar, On 8 February 2013 17:40, Selvakumar Chellamuthu wrote: > Im using OSG 3.0.0. Can somebody tell me what is the replacement class for > Producer::CameraConfig or alternate way ? I haven't yet written a full replacement for the .cfg file format, but we do have a .cfg plugin if you

Re: [osg-users] Integration of a NodeKit for Sky Rendering

2013-02-12 Thread Robert Osfield
Hi Daniel, On 21 January 2013 11:44, Daniel Limberger wrote: > Yes, I would like that. Can someone provide my openscenegraph account with > the required rights or is there a special procedure of adding new content > there? For code submissions we have a couple of writers to particular portion

Re: [osg-users] [forum] viewer goes to default blue color after model load

2013-02-12 Thread Robert Osfield
Hi Paul, A sporadic problem sounds like a driver bug to me, so try different hardware and drivers to see if you can get a better handle on the problem. There is small chance that there is something on the OSG side that is invoking problems in the driver, but with such an indeterminate problem it'

Re: [osg-users] collecting stats

2013-02-12 Thread Robert Osfield
Hi Paul, It's a while since I worked on OSG-2.8.3 so can't recall if it's got all of the modern OSG Stats support in it. The quick answer to your question is yes you can access the data, the best way to learn how is to look at how the StatsHandler does it, so look at src/osgViewer/StatsHandler.cp

Re: [osg-users] help me with my first osg program ...

2013-02-12 Thread Robert Osfield
Hi Omprakash, Clearly it's a missing include, which might be down to an error in your CmakeLists.txt file in which case having a look at CMake docs might help you on your way. Or it could be simply that Cmake isn't finding the OSG as you haven't installed it in a place it can find or that you hav

Re: [osg-users] Uniforms per MasterCamera in a ThreadPerContext threading model

2013-02-12 Thread Robert Osfield
Hi Vadiraj, Simply attach the Uniform to an osg::StateSet to the View's Camera so that view's subgraph inherits Camera's stateset. Robert. On 5 February 2013 09:17, vadiraj kaamsha wrote: > Hi, > > I have a problem similar to the one being discussed in this thread. > I have 2 views, V1 and V2,

Re: [osg-users] Render multiple osgText nodes with the same drawcall

2013-02-12 Thread Robert Osfield
Hi Dirk, On 6 February 2013 15:08, Dirk Langner wrote: > The space "allocated" in the texture depends on resolution and on fontsize! > Currently i'm trying to improve the GlyphTexture by removing "unused" glyphs > from texture and reuse the newly free area to prevent using multiple textures! Gl

Re: [osg-users] No method for Embedding Composite View in a Window

2013-02-12 Thread Robert Osfield
Hi Selvakumar, The Viewer::setUpViewerAsEmbeddedInWindow() method is just a convenience method. Have a look at it's implementation in src/osgViewer/Viewer.cpp and also have a look at the osgcompositeviewer, oscamera examples and osgviewerFLTK examples, the trick will see how convnetion GraphicsWi

Re: [osg-users] Rendered osg:Texture is missing single row or column of the corresponding osg::Image

2013-02-12 Thread Robert Osfield
Hi Philip, On 28 January 2013 07:37, Philip Woerner wrote: > I tried to set the WrapMode, but there was no improvement. Is there anything > else I can do? There isn't much others can do remotely, you have your data, application, OS, hardware and driver combination so in a unique position to deb

[osg-users] how pick the nearest point in a cloud point?

2013-02-12 Thread Sergey Kurdakov
Hi Shawl, >my question is that i want to select a point of the scene as the rotation center of the trackball manipulator . i know how to pick objects , I will not answer your question, but will say an approach, which I can think of in principle 2D to 3D an approach is described say here ( just

Re: [osg-users] [build] Running the examples on mac OS X snow Leopard 10.7.5

2013-02-12 Thread Ulrich Hertlein
Hi guys, The error you're seeing points to a configuration issue with the Carbon vs. Cocoa windowing system. Check the value of the OSG_WINDOWING_SYSTEM cmake variable - maybe neither is selected? FWIW I always install OSG as 64-bit on OS X and use Cocoa as the windowing interface. Where did

Re: [osg-users] Is there a way to remove certain nodes and images from cache?

2013-02-12 Thread michael kapelko
Looks like osgDB::Registry::removeFromObjectCache does it. 2013/2/12 michael kapelko > Hi. > osgDB::readNodeFile and osgDB::readImageFile have Options which can > specify to CACHE_NODES and CACHE_IMAGES. > I want to be able to unload/clear/erase certain nodes and images from the > cache (changin

Re: [osg-users] Intersections with Scenes shown in pre-rendered textures

2013-02-12 Thread Sergey Polischuk
Hi i believe you can get normal in point of intersection with mirror with getWorldIntersectNormal() method of intersection, calculate reflected ray and start new intersection query with new ray Cheers. 11.02.2013, 22:16, "Julian Schindler" : > Hi all, > > In my scene I am sitting in a car driv

[osg-users] how pick the nearest point in a cloud point?

2013-02-12 Thread wh_xiexing
hi friends: m y question is that i want to select a point of the scene as the rotation center of the trackball manipulator . i know how to pick objects , but the scene is showing a point cloud , how to select the litttle point in the scene among the point cloud? is there a method to pick

Re: [osg-users] [forum] Self Illumination export from 3ds max 2010

2013-02-12 Thread Sergey Polischuk
Hi osg max exporter does export all kind of maps but it does not preserve semantics on most of them so they does not work correctly. IIRC diffuse, reflections and opacity maps are correctly exported. You should either write shader or change osg::TexEnvCombine on stateset in question so that you

Re: [osg-users] loading of a large number of files

2013-02-12 Thread lucie lemonnier
Hi, The issue is I use a wrapper c++ to c# to create a window with osgviewer in a WPF application and the application throws an unhandled exception, I haven't other informations on the exception. Thank you! Cheers, lucie -- Read this topic online here: http://forum.openscenegr