[osg-users] osg win32 deubg

2012-01-28 Thread tang
3 正在创建库 E:\osg\OpenSceneGraph-3.0.1\build\lib\osgUtild.lib 和对象 E:\osg\OpenSceneGraph-3.0.1\build\lib\osgUtild.exp 3正在嵌入清单... 3Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0 3Copyright (C) Microsoft Corporation. All rights reserved. 3LINK : fatal error LNK1000: Internal error

Re: [osg-users] osgViewer::GraphicsWindowCocoa::WindowData dynamic_cast returns 0

2012-01-28 Thread Stephan Huber
Hi Sean, I had similar problems in the past as you and Chuck. My fix was to make sure the project-settings for osg and my own project where the same and set to FALSE: Symbols hidden by default (GCC_SYMBOLS_PRIVATE_EXTERN): FALSE and eventually Inline hidden methods

Re: [osg-users] Need help fixing my atmospheric transmission shader, it's so close to working!

2012-01-28 Thread Sergey Polischuk
Hi this piece completely eliminate any green and blue values of original color, if you trees dont have red color component they will look black. color.r = color.r * exp( -1.0 * ExtinctionCoefficient * eyeDistance ); color.g = color.r; color.b = color.r; Sampling

Re: [osg-users] osg win32 deubg

2012-01-28 Thread huahu
deubg?笑掉大牙了! ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Memory leak when resizing

2012-01-28 Thread Sebastian Messerschmidt
Hello, I've just discovered a very strange behavior. In my setup ( Windows7 64bit, osg3.0.1rc1, Nvidia Quadro 2000M, 285.62) i've found that my memory consumption raised with every resize of the viewer window. After doing some research I didn't find anything in my program, so I tried the same

[osg-users] Transparency on osg::Cone

2012-01-28 Thread Thomas Lerman
Using osg third party libraries, I have added a cone to my application in the specified color. However, I have not been able to get the cone to be anything other than opaque. Is this possible or am I doing something wrong? Code: static osg::Cone* cone = NULL; float height = 1000.0; // for now

[osg-users] Transparence/Geometry issues with PAT

2012-01-28 Thread Hartmut Leister
Hey all of you, I have a problem with the coloring of my objects (osg::Geometry). When I resize any of them (using PositionAttitudeTransform) and the scaling factor is 1 the opacity of the respective geometry nodes is scaled accordingly. So *my question* is: How can I protect the

Re: [osg-users] Transparency on osg::Cone

2012-01-28 Thread Adam Bruce
Hi, You'll need to add two things to the geode or drawable's state set: - An osg::BlendFunc with the proper arguments for the blend you want - Calling setRenderingHint() with osg::StateSet::TRANSPARENT_BIN so it's in the proper render bin -- Read this topic online here:

Re: [osg-users] Transparency on osg::Cone

2012-01-28 Thread Thomas Lerman
Thank you so much. I got it transparent, as you suggested, with the following code that I added to the end. Code: osg::StateSet* set = geode-getOrCreateStateSet(); set-setRenderingHint(osg::StateSet::TRANSPARENT_BIN); set-setAttributeAndModes(new