Re: [osg-users] Away for a week!

2012-07-09 Thread Robert Osfield
Hi All, I'm back from my family holiday, alas it rained everyday!! Today I'll be steadily working through my backlog of emails and then begin the task of tackling submissions. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] More than 8 lights

2012-07-09 Thread Robert Osfield
Hi Bart, You'll simply need to go through you scene graph and remove the osg::LightSource nodes and an places where GL_LIGHT0... etc. are enabled. Robert. On 26 June 2012 16:24, Bart K bart.knui...@gmail.com wrote: Hi, I am building a deferred rendering system in open scene graph and all

Re: [osg-users] Android: Problem with static intialization in osgViewer/Scene.cpp (from r13031)

2012-07-09 Thread Robert Osfield
Hi Rafa and James et. al, On 28 June 2012 18:35, James Athey james.at...@gmail.com wrote: It's working on my GLES 2 app as well. That's great to hear. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Problems using shader attributes

2012-07-09 Thread Robert Osfield
Hi Preet, The OSG provides more than just support for passing data to OpenGL, it does culling and this requires knowledge of the bounding volume of the object. I would recommend sticking with using the standard osg::Geometry::setVertexArray(..) for passing in the vertex positions of your data so

Re: [osg-users] [vpb] build VPB on VS 10

2012-07-09 Thread Robert Osfield
Hi Joseph, On 3 July 2012 06:52, Nav Joseph nk...@tatapowersed.com wrote: @Robert: I'm having the same problem with Virtual Planet Builder. I'm using gdal 1.7 already, and virtual planet builder version 0.9.7. OSG version 3.1.1. Which version of osg should I use? I've just tested VPB and

Re: [osg-users] Segmentation fault -- resizeGLObjectBuffers

2012-07-09 Thread Robert Osfield
Hi Martin, There really isn't enough information about what you are doing to know what might be amiss, it's just far too open ended. The best thing you can do is use a debugger to track down what might be going on in your application. Robert. On 4 July 2012 08:10, Martin Großer

Re: [osg-users] [vpb] osgdem crashes because of large memory usage

2012-07-09 Thread Robert Osfield
Hi Sevket, For large paged database you'll need to use vpbmaster to create a set of tasks that sub-divide down the database generation so that each individual run of osgdem task will be small enough to avoid memory issues. vpbmaster will allow you to use multiple CPU's on one machine and a

Re: [osg-users] RenderBin implementation not found

2012-07-09 Thread Robert Osfield
HI Matthias, If the fix works just post it to osg-submissions as a complete file and I can review it. Thanks, Robert. On 4 July 2012 09:55, Matthias Schütze matthi.schue...@googlemail.com wrote: Hi there, A customer is having trouble running our OSG-based application on his computer. I

Re: [osg-users] Using osgText with GraphicsWindowEmbedded and Qt causes problems

2012-07-09 Thread Robert Osfield
HI Preet, You'll need to rest OpenGL into consistent state when moving between Qt and the OSG. I don't know anything about QGLFrameBufferObject so can't comment on what state it'll be managing. What I can say is that the OSG has it's own native FBO support that will work just fine all by itself

Re: [osg-users] Can we please remove static initializations in OSG?

2012-07-09 Thread Robert Osfield
HI Michael, There a range of reasons why the OSG uses static for different places, it won't be possible to remove these without breaking lots of functionality, OSG API's and end user application usage. So it's far from trival task with a dubious end value ended. Robert. On 5 July 2012 13:20,

Re: [osg-users] Multi LOD in Multi Camera

2012-07-09 Thread Robert Osfield
Hi Tolga, The OSG selects LOD children dynamically within the cull traversal, each independent traversal with have an independent result. This means one shouldn't expect problems with viewing the same scene graph from different camera views. Is there a chance that more is going on? Are they

Re: [osg-users] StateSet UpdateCallback on a camera

2012-07-09 Thread Robert Osfield
Hi Christian, I have just checked the Viewer::updateTraversal() and associated UpdateVisitor::handle_callbacks() code and it looks to me like a StateSet with callbacks attached to a Viewer camera should have it's callbacks called. I haven't tested the code though, too many other tasks to get

Re: [osg-users] Alternate display of text and Image

2012-07-09 Thread Robert Osfield
HI Maia, A osg::Switch node would be appropriate for toggling between subgraphs, while an update callback would be appropriate for the time based changes in state, and an event callback would be appropriate for handling the events. Robert. On 6 July 2012 20:40, Maia Randria

Re: [osg-users] behavior of osg Tesselator with alpha transparency

2012-07-09 Thread Robert Osfield
Hi Christian, I have rather too many support emails to get through to look at compiling and testing end user applications so I'll have to defer to others to look at your app. One thing I can add right away is that the osgUtil::Tessellator will be just using vertex and primitive data when doing

Re: [osg-users] behavior of osg Tesselator with alpha transparency

2012-07-09 Thread Christian Buchner
Thank you for your input. I now understand that the tesselation does not take into account any vertex attributes, so I cannot really rely on the tesselator to produce a visually pleasing result when these vertex attributes differ from vertex to vertex. I worked around it by manually specifying

Re: [osg-users] Mac OS runtime problem

2012-07-09 Thread Tobias Duckworth
Hi, This problem is still present. It seems that under MacOS OpenSceneGraph can only be built with the llvm compilers due to the Objective C portions of code. I tried configuring gcc to compile Objective C but there appear to be some differences between the Apple compiler and gcc with

Re: [osg-users] Alternate display of text and Image

2012-07-09 Thread Maia Randria
Hi Robert, Thank you very much for replying. I will do some tests and post here if any questions. Maia robertosfield wrote: HI Maia, A osg::Switch node would be appropriate for toggling between subgraphs, while an update callback would be appropriate for the time based changes in state,

Re: [osg-users] Using the notification API with multi-threading - heap corruption errors

2012-07-09 Thread Robert Osfield
HI Matthias, OpenThreads doesn't expose thread local storage but does use it internally to provide the Thread::CurrentThread() functionality. Might it be possible to use this in your implementation? Robert. On 5 July 2012 10:32, Matthias Schütze matthi.schue...@googlemail.com wrote: Re: Using

Re: [osg-users] [SOLVED] How to force reloading the texture in the shader

2012-07-09 Thread Antonio De Giorgio
Hi, I've code something like the snippet you have posted...but i'me able to see just first frame...could you help me to solve this problem? Thank you! Cheers, Antonio -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48771#48771

[osg-users] [vpb] osgdem layers question

2012-07-09 Thread Ethan Fahy
From the documentation, the --layer flag allows me to Specify the layer that the next source Texture will contribute to. 1. Does this indexing start at 0 or 1? 2. Can I access these layered textures in a GLSL vertex shader using Code: gl_TexCoord[n] = gl_MultiTexCoordn; and access that

Re: [osg-users] camera manipulator proposal

2012-07-09 Thread Robert Osfield
Hi Riccardo, Sorry for the very long delay in getting to review your suggested changes, I've now done the review and the changes look good, the only amendment I made to rename the parameter name Camera* pCamera to Camera* camera as from the context it's obvious that camera is a Camera* one

Re: [osg-users] camera manipulator proposal

2012-07-09 Thread Robert Osfield
Hi Riccardo, On review of the submission I've decided that passing in a Camera rather than a pointer would make it clear that a valid Camera object should be passed in rather than a pointer which could be NULL or pointing to a valid Camera object. This brings the method more into line with how

Re: [osg-users] [osgPlugins] [SOLVED] osgPlugins DAE (collada) ReaderWriterDAE.cpp, daeReader.h VS2010 compile errors

2012-07-09 Thread Irbit Kirill
I used Collada dom 2.4. But in OSG WiKi: As of December 2011, testing indicates that the plugin still does not work with the COLLADA DOM version 2.3.x, but does work with the 2.2. With COLLADA DOM version 2.2. it works fine. -- Read this topic online here:

Re: [osg-users] [forum] All Forum Users, PLEASE READ IT!

2012-07-09 Thread Jorge D'Alpuim
Hi everyone, specifically forum managers! I am new in forum once I have been doing my baby steps with OSG. I have been trying to solve a problem I am facing within an application I'm developing but since I couldn't find any solution I though it might be a good opportunity to start my activity

Re: [osg-users] Using osgText with GraphicsWindowEmbedded and Qt causes problems

2012-07-09 Thread Preet
Hi Robert, On Mon, Jul 9, 2012 at 9:01 AM, Robert Osfield robert.osfi...@gmail.com wrote: HI Preet, You'll need to rest OpenGL into consistent state when moving between Qt and the OSG. I don't know anything about QGLFrameBufferObject so can't comment on what state it'll be managing. This

Re: [osg-users] How to create osg::Texture2D from osg::Vec3Array...?

2012-07-09 Thread Kedar Kumbhar
Hi Ulrich Hroach, I tried with your sample code and it is solution for my question. @ Hroach - Only thing to be added in your code is, after memcpy(), dataptr needs to be assigned to image-setImage(). Code: image1-setImage( 2,2, 1, GL_RGBA8, GL_RGBA, GL_FLOAT, (unsigned char *)dataptr,

[osg-users] Bug in revision 13092

2012-07-09 Thread Łukasz Lucek
Hi, I think that I have found a bug in revision 13092. I'm using osg as part of qt application, so i create an osgViewer::GraphicsWindowEmbedded like this: Code: _gw = new osgViewer::GraphicsWindowEmbedded(x,y,width,height); then later, i forward qt events to osg. Especially i forward the

[osg-users] Store rgb data into rgba image

2012-07-09 Thread Jorge D'Alpuim
Hi everyone, I am trying to dynamically convert several images from rgb to rgba however it has been very difficult to achieve my goal. I have a few rgb images with black background though what I want is to convert the black background into transparency. So far I haven't found any method that

Re: [osg-users] The problem of loading a model in osg

2012-07-09 Thread Jorge D'Alpuim
It seems you are not linking with the correct dll. Please verify it to evade this issue. Good luck, Jorge d'Alpuim -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48743#48743 ___ osg-users mailing

[osg-users] Memory growth around cull/draw traversal

2012-07-09 Thread Sebastian Noth
Hi, I encountered the problem of heavy memory growth when inserting and removing multiple MatrixTransforms with a common child. I am not very familiar with the cull / draw traversal, but i guess it is related to that. Some properties of the problem: - the application is a dynamic driving

Re: [osg-users] [forum] How to implement ViewAll

2012-07-09 Thread Manuel Fernández
Hi, Did you tried to call home() method of your camera manipulator? I though it fills your needs. Thank you! Cheers, Manuel -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48775#48775 ___

Re: [osg-users] How to acquire the current location information of a drawable object? And how to calculate the distance between an object and the viewpoint?

2012-07-09 Thread Fan ZHANG
Thanks so much but the first problem still seems quite complicated Anyway I'll try the cull callback first. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48765#48765 ___ osg-users mailing list

[osg-users] [forum] malloc_error_break on Mac OS X Lion

2012-07-09 Thread Manuel Fernández
Hi, I have a macbook pro and an iMac with Xcode 4.3.3. If i built OSG in the mbp using cmake i doesn't have any problems and all the examples and my own programs run correctly. But in the iMac, after repeating the same steps, every time a node if deleted in the same program, the program halts

Re: [osg-users] Bug in revision 13092

2012-07-09 Thread Preet
Did you call realize() on your viewer? ie... myViewer-realize(); On Fri, Jul 6, 2012 at 7:40 AM, Łukasz Lucek lukasz.lu...@gmail.com wrote: Hi, I think that I have found a bug in revision 13092. I'm using osg as part of qt application, so i create an osgViewer::GraphicsWindowEmbedded like

Re: [osg-users] constant size overlay

2012-07-09 Thread Michael Schanne
It turns out that using point sprites is not an option for me as I now have a requirement that the objects must rotate with the world. I could use AutoTransform with setAutoScaleToScreen(true) and setAutoRotateMode(NO_ROTATION), but it's still not quite fast enough for my application. I am

Re: [osg-users] Store rgb data into rgba image

2012-07-09 Thread Ulrich Hertlein
On 8/07/12 3:16 , Jorge D'Alpuim wrote: int height = image_rgb-s(); int width = image_rgb-t(); int length = image_rgb-r(); const long size = width * height * length * 4; unsigned char* rgb_data = image_rgb-data(); unsigned char* rgba_data = (unsigned char*)calloc(size,sizeof(unsigned

[osg-users] River

2012-07-09 Thread 翟小明
Hi: Everyone, i have a question about osgRiver.The example osgOcean and osgRiver provide an example for simulate ocean and river,but i only want to simulate river,and change the terrain of my own.How to do i should?or what steps shall i do? ___