Re: [osg-users] Maintaining a reference to an osg node outside of osg

2012-03-16 Thread Ulrich Hertlein
Hi Preet, On 17/03/12 8:09 , Preet wrote: > If I do this, then I need to maintain the underlying ref_ptr object > no? This isn't particularly convenient. What was wrong with assigning > the osg::Node's pointer to mysteryPtr instead? Basically with ... > > osg::ref_ptr someNode; > mysteryPtr = som

[osg-users] Question with offscreen rendering.

2012-03-16 Thread Paul Griffiths
Hi, These are the steps I would like to produce. 1. Have multiple nodes(well call these nodes 'roots') 2. Each 'root' and it's tree renders to it's own off-screen buffer. 3. Have a few 2d triangles(black) rendered in 2d space over the top. 4. Where ever there is black convert the area to transpar

Re: [osg-users] Texture repeats and overlaps when I don't want it to

2012-03-16 Thread Zachary Hilbun
Hi, This turned out to be a problem with the image itself rather than my code. On most PNG viewers, it looks like a normal image. When I viewed it using Internet Explorer, it overlaps itself the same way it does on my texturing. I got this image from my client so I don't know how it was creat

Re: [osg-users] Maintaining a reference to an osg node outside of osg

2012-03-16 Thread Preet
Hi, On Fri, Mar 16, 2012 at 4:43 PM, John Kaniarz wrote: > What you're trying to do is the PIMPL design pattern.  I'll leave the details > to Google :) > > You may also want to brush up on the Factory design pattern for generating > your opaque handles. > > In a direct answer to your question,

Re: [osg-users] Maintaining a reference to an osg node outside of osg

2012-03-16 Thread John Kaniarz
What you're trying to do is the PIMPL design pattern. I'll leave the details to Google :) You may also want to brush up on the Factory design pattern for generating your opaque handles. In a direct answer to your question, no you can't use a void* to store a ref_ptr<> (without some trickery).

Re: [osg-users] Frame Rate "Decay" w/ SilverLining Integration

2012-03-16 Thread Christiansen, Brad
Hi Woktej, Thanks for you offer to help out, but I have managed to track it down enough to have a good enough solution for now. For anyone else who stumbles across this issue, my work around is to disable VBOs in silverlining. If I did this by using the SILVERLINING_NO_VBO environment variabl

Re: [osg-users] Maintaining a reference to an osg node outside of osg

2012-03-16 Thread Chris Hanson
> > I'd be very grateful if someone could verify the above logic. If I'm > in the wrong here, I'd appreciate any advice pointing me in the right > direction. > > You should be able to do that (and you could probably use RTTI features to figure out what the OSG type/class mystery pointer was point

[osg-users] Problems rendering to and capturing/readin GL_RGBA16

2012-03-16 Thread Chris Hanson
A specialized tool I'm working on needs to have a 16-bit Alpha channel for post-render analysis. I render to a screen-sized texture (1920x1080 NPOT) and then read it back to the CPU side and assess the values. I originally developed it with 8-bit per gun RGBA (32-bit total) where it works fine

Re: [osg-users] Texture repeats and overlaps when I don't want it to

2012-03-16 Thread Zachary Hilbun
Hi, What I have found on this is that if I use a different PNG, the problem goes away. The only differences I know of between the 2 images is that the iamge that repeatedly partially overlaps itself is larger and has a transparent background. Any ideas on why the different PNG image makes it

[osg-users] Maintaining a reference to an osg node outside of osg

2012-03-16 Thread Preet
Hiya, Typically I use osg::ref_ptr<> to let osg handle reference counting. Right now I'm trying to create a 'rendering engine' for another library with osg. The idea for the other library is to maintain an API that allows different rendering engines -- osg, ogre, vtk, etc. The other library has vi

Re: [osg-users] osgDB::Options & osgviewer

2012-03-16 Thread Paul Leopard
Chris Hanson wrote: >   And you can set them on the command-line with -O: > > > -O Provide an option string to reader/writers used to load > databases > That's exactly what I'm looking for, a way to specify options from the command line. Thanks so much ... I searched and searched and just

Re: [osg-users] osgDB::Options & osgviewer

2012-03-16 Thread Chris Hanson
And you can set them on the command-line with -O: -O Provide an option string to reader/writers used to load databases -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • Open

Re: [osg-users] osgDB::Options & osgviewer

2012-03-16 Thread Farshid Lashkari
Hi Paul, Have you tried the following: osgDB::Registry::instance()->setOptions(options); This should set the global default options. Cheers, Farshid On Fri, Mar 16, 2012 at 11:41 AM, Paul Leopard wrote: > Is there any way to set the options for plugins (osgDB::Options) when > using osgviewer?

[osg-users] osgDB::Options & osgviewer

2012-03-16 Thread Paul Leopard
Is there any way to set the options for plugins (osgDB::Options) when using osgviewer? Thanks, Paul -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46363#46363 ___ osg-users mailing list osg-users@li

Re: [osg-users] Frame Rate "Decay" w/ SilverLining Integration

2012-03-16 Thread Wojciech Lewandowski
Hi, Brad, We have SilverLining source code license. I may find few hours in next week to look at the problem, if the issue can be reproduced on one of my machines (ie Nvidia GF580/GF9400 or GF540M). I would like to have as much info as possible to replicate the issue, though. I would like to know:

Re: [osg-users] Frame Rate "Decay" w/ SilverLining Integration

2012-03-16 Thread Christiansen, Brad
Hi, Thanks for the response. I have a little more details of the problem but am still completely stumped. This is my test: Start my application and leave it running for a while. Frame rate, memory use etc all stable. Enable silverlinng. As reported by gDebugger, after the initial expected incr

Re: [osg-users] [ANN] iOS Developer with OSG experience needed!

2012-03-16 Thread Guy DeRosa
Hi there, Great point - thanks very much. Just for your reference, the client is based in London but remote workers are very welcome! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46360#46360 ___

Re: [osg-users] [ANN] iOS Developer with OSG experience needed!

2012-03-16 Thread Chris Hanson
> > Our client, based in Central London is urgently looking for a skilled iOS > Developer to assist in a project currently set to last for a month. > A relatively new, yet established and exciting Digital Agency, there are > big opportunities for extended work. > > You don't really say whether yo

Re: [osg-users] Incorrect volume image

2012-03-16 Thread Robert Osfield
Hi Clement, On 16 March 2012 14:38, wrote: >   Last time I got the problem is related to hardware, so texture3D is not > supported by the graphic card.  Now I tested on other machines. It's still crappy Intel graphics graphics. You absolutely should expect crappy results with volume on any In

[osg-users] [build] [Tutorial] Building osgAndroidExampleGLES1/2 on Ubuntu 11.10

2012-03-16 Thread Bernd Kampl
I decided to write a very easy step-for-step tutorial on how to build OSG for Android. I'm going to share it here. Corrections are of course welcome. This Tutorial is to show how to compile OpenSceneGraph for Android and how to build the Example Application osgViewer on Ubuntu 11.10. It is meant

[osg-users] [ANN] iOS Developer with OSG experience needed!

2012-03-16 Thread Guy DeRosa
Hello dear OSG-community, Hi all, I don't mean to tread on toes, perhaps this will be of interest to one of you, or someone you know. I'm finding it very hard to find a candidate with OSG knowledge! Job spec below: iOS Developer Our client, based in Central London is urgently looking for a sk

Re: [osg-users] GL_STENCIL_TEST in draw implementation callback

2012-03-16 Thread Doug Domke
UGH! I just found that I was mistaken about the video growing properly without the stencil. It actually doesn't. Once its viewport exceeds a certain size, it no longer renders as expected. I think I've come as far as I can here. Thanks anyway. Doug -- Read this topic online

Re: [osg-users] Incorrect volume image

2012-03-16 Thread Clement.Chu
Hi Robert, Last time I got the problem is related to hardware, so texture3D is not supported by the graphic card. Now I tested on other machines. I ran the testing code and there is no any error message on console, but the display image is not correct. The image problem is same as the ima

[osg-users] [osgPlugins] TerraPage plugin for Geocentric terrains, terrapage 2.3?

2012-03-16 Thread Nico Bocio
Hi, Does anyone know if the actual terrapage plugin support geocentric terrains of terrapage 2.3 version? Thank you! Cheers, Nico -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46350#46350 ___ osg

Re: [osg-users] GL_STENCIL_TEST in draw implementation callback

2012-03-16 Thread Doug Domke
Clearing the modelview and projection matrices helped a great deal. Thanks hybr! It now works as intended ... up to a point that is difficult to explain. I get the digital zoom effect until about 13x. At that point, the video suddenly starts translating instead of zooming. And instead of sho

[osg-users] Nodes in osg::Group affect each other state.

2012-03-16 Thread Eldar Insafutdinov
Hi all, I am new to OSG, so maybe my question is silly, but I'm trying to apply some little knowledge on how scene graphs should work here. I've managed to reduce the problem I have to a reasonably sized testcase which I attached to the post. I have two nodes there: a quad with a texture applie

Re: [osg-users] Segmentation fault in osgDB::readNodeFile()

2012-03-16 Thread Robert Osfield
Hi Mark, On 16 March 2012 12:37, Mark Green wrote: > That's good to hear, I've seen some parts that weren't immediatly obvious but > I'm sure it'll be manageable then. Most of it was reconstructable with > seemingly the same functionality and it ended up compiling without errors, > the only pa

Re: [osg-users] Segmentation fault in osgDB::readNodeFile()

2012-03-16 Thread Mark Green
robertosfield wrote: > > Porting from osgProducer::Viewer to osgViewer::Viewer shouldn't be too > difficult, it all depends upon how much code your application used > Producer directly. That's good to hear, I've seen some parts that weren't immediatly obvious but I'm sure it'll be manageable t

Re: [osg-users] Segmentation fault in osgDB::readNodeFile()

2012-03-16 Thread Robert Osfield
Hi Mark, On 16 March 2012 10:56, Mark Green wrote: > Hi Robert, > > According to my employers OSG had never been installed on that particular > machine before installing 2.8.3. However, the program was originally written > for 1.2.0 on another computer and it and its Makefile have been directly

Re: [osg-users] Segmentation fault in osgDB::readNodeFile()

2012-03-16 Thread Mark Green
Hi Robert, According to my employers OSG had never been installed on that particular machine before installing 2.8.3. However, the program was originally written for 1.2.0 on another computer and it and its Makefile have been directly copied to the new machine (where I would have to update the

Re: [osg-users] Segmentation fault in osgDB::readNodeFile()

2012-03-16 Thread Robert Osfield
Hi Mark, On 16 March 2012 10:13, Mark Green wrote: > Ah this looks like it might be it, using that ldd command shows that " > libosgDB.so.65 => /usr/local/lib/libosgDB.so.65 (0xb7c21000)" is being build, > while the execution shows that "/usr/local/lib/osgPlugins-2.8.3/osgdb_osg.so" > is being

Re: [osg-users] Segmentation fault in osgDB::readNodeFile()

2012-03-16 Thread Mark Green
Ah this looks like it might be it, using that ldd command shows that " libosgDB.so.65 => /usr/local/lib/libosgDB.so.65 (0xb7c21000)" is being build, while the execution shows that "/usr/local/lib/osgPlugins-2.8.3/osgdb_osg.so" is being found. The Makefile which was created/generated by someone

Re: [osg-users] Texture repeats and overlaps when I don't want it to

2012-03-16 Thread Sergey Polischuk
Hi output looks ok to me, have no idea what's wrong 16.03.2012, 04:48, "Zachary Hilbun" : > Hi, > > This is a dump of how I do the mapping.  I am mapping a square texture to a > circle. > > texcoords->push_back (osg::Vec2 (x, y)); > > Map vertex 1, 0 to texture 1, 0.5 > Map vertex 0.998027, 0.06

Re: [osg-users] Segmentation fault in osgDB::readNodeFile()

2012-03-16 Thread Sergey Polischuk
Hi, Mark This is probably building\linking issue. Either you build with includes from one osg version and linking to other, or something along these lines Check if you are building with includes from same osg version as you linking to, and running with same libs, you linking with(you can get lib

Re: [osg-users] Segmentation fault in osgDB::readNodeFile()

2012-03-16 Thread Mark Green
Hi Robert, I'm working on linux, and with my limited experience on it I'm unaware how to obtain said stacktrace (Visual Studio has been too awesome on windows). Meanwhile however I've stripped the entire program down to the bare minimum to see if there were any influences from other code, and t

Re: [osg-users] Segmentation fault in osgDB::readNodeFile()

2012-03-16 Thread Robert Osfield
Hi Mark, On 16 March 2012 08:53, Mark Green wrote: > The model works with osgviewer, and replacing the link to my model with a > link to a model supplied with osg (cow.osg) gives the same segmentation fault. If you are using windows you'll need to make sure you aren't mixed release and debug li

Re: [osg-users] Incorrect volume image

2012-03-16 Thread Robert Osfield
Hi Clement, On 16 March 2012 03:13, wrote: >     When I loaded an image with using osgvolume, it cannot show probably.  I > found the error listed as > http://www.openscenegraph.org/projects/osg/wiki/Community/Tasks/OpenGLConformance > about "GL_SGIS_generate_mipmap doesn't work".  I would li

Re: [osg-users] Segmentation fault in osgDB::readNodeFile()

2012-03-16 Thread Mark Green
Hi Sergey, The model works with osgviewer, and replacing the link to my model with a link to a model supplied with osg (cow.osg) gives the same segmentation fault. Cheers, Mark -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46334#46334 _

Re: [osg-users] [build] problem compiling osg 3.0.0 for Android

2012-03-16 Thread Bernd Kampl
Hi, Thank you for your Answer, it clears up some things. I got it to work. The problem was in linking to the standard library. Like you wrote: "NDK r7 has a strange bug with the order of linking std libraries just add -lgnustl_static at the end and it will be solved. " For anyone having the sa