Re: [osg-users] ShadowMap + Other shaders (bump, specular, etc) example???

2014-04-14 Thread michael kapelko
I would derive from StandardShadowMap to gain access to _stateset variable. Then, osg::StateSet::getAttribute can return osg::Program it contains. 2014-04-14 22:44 GMT+07:00 Trajce Nikolov NICK < trajce.nikolov.n...@gmail.com>: > I looked at the code of StandardShadowMap.cpp and I think this obj

Re: [osg-users] GLFW + OSG

2014-04-14 Thread Rafa Gaitan
Hi Nicolas, OSG has really good support for windowing, but It should be pretty straightforward looking at the osgviewer(GLUT|FLTK|...) examples from the source code: For instance: http://trac.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osgviewerGLUT/osgviewerGLUT.cpp R

[osg-users] Iterator bug

2014-04-14 Thread alexis pierre
Hi, I think I found a bug in osg 3.2.0 I needed to use osgUtil::SmoothingVisitor. For some reason my compiler couldn't find some of the functions so I just added SmoothingVisitor.cpp to my project (I may have taken that file from 3.2.1 rc2), and I got a big bug: in the function normalize I got

Re: [osg-users] osg 3.2.0 rendering problem vs osg 3.1.2

2014-04-14 Thread alexis pierre
Hi, I found a workaroud: Code: osg::Geometry* geom = meshNode_->asGroup()->getChild(0)->asGeode()->getDrawable(0)->asGeometry(); osgUtil::SmoothingVisitor sv; sv.smooth(*geom); Thank you! Cheers, alexis -- Read this topic online here: http://forum.opensceneg

Re: [osg-users] GLFW + OSG

2014-04-14 Thread Nicolas Jäger
bump > Hi, > is it possible to bind a GLFW3 window and OSG ? I didn't see anything > like "osgviewerGLFW"... > > ...I'm not using SFML2 but there is an example > [ http://en.sfml-dev.org/forums/index.php?topic=6651.0 ] > where they are using "osgUtil::SceneView" to bind SFML2 and OSG, but > "Scen

Re: [osg-users] Scale Flattening and LODs

2014-04-14 Thread Cary, Karl A.
To at least partially answer my own question, everything seems fine if I manually apply the scale to the radius. So essentially, if you have a scale transform, it will affect the radius, center point, ranges, and vertex positions during the cull and draw. However if you flatten the scale, it see

[osg-users] request for small source change in StandardShadowMap

2014-04-14 Thread Trajce Nikolov NICK
Hi Robert, I am not sure if you are familiar with this code ( I bet You are ;-) ). I have a case where I want to mix shaders with the one that are provided to this class and I need access through the interface to the osg::Program which holds these shaders and it is instantiated locally in the scop

[osg-users] Scale Flattening and LODs

2014-04-14 Thread Cary, Karl A.
I have run across an issue related to scaled flattening over an LOD. I have a Matrix transform with a static scale in it over an LOD node. For the LOD, I have exact ranges that I want it to change at, regardless of scale, i.e. always switch LOD at 1000ft, 2000ft etc. If I leave the matrix transf

Re: [osg-users] Definding against aggressive domain aquisitions

2014-04-14 Thread Robert Osfield
On 14 April 2014 17:24, Chris Hanson wrote: > This is a known shakedown scam. Typically Ross Investments won't exist, and > it's a ploy by hk-ip.org to try to get you to buy domains from them. > > If you ignore it, what will typically happen is the mysteriously, Ross > Investments will turn out no

Re: [osg-users] Definding against aggressive domain aquisitions

2014-04-14 Thread Chris Hanson
This is a known shakedown scam. Typically Ross Investments won't exist, and it's a ploy by hk-ip.org to try to get you to buy domains from them. If you ignore it, what will typically happen is the mysteriously, Ross Investments will turn out not to buy those domains for some reason! ;) Ignore it.

Re: [osg-users] Definding against aggressive domain aquisitions

2014-04-14 Thread Robert Osfield
Hi All, On 9 April 2014 10:05, Alberto Luaces wrote: >> Indeed, whatever is not pure .com or .org is always preceived as > "secondary", so IMHO it's not a real danger. > > Take into consideration that anybody can register any OSG-related > domain, as osg-tricks.com or osg-official.org, but just t

Re: [osg-users] uncorrect document of osgManipulator::TranslatePlaneDragger

2014-04-14 Thread Robert Osfield
Thanks for spotting this Tianlan, I've changed the comment and check it into svn/trunk and the OSG-3.2 branch. On 14 April 2014 10:29, Tianlan Shao wrote: > Hi all, > I just found that the document of osgManipulator::TranslatePlaneDragger > seems uncorrect. The introduction "Tab plane dragger con

Re: [osg-users] VertexAttribArrayList serialization

2014-04-14 Thread Sebastian Messerschmidt
Also it seems that older version of osg (osg111) cannot read these files even without vertex attributes. Has there been a breaking change in the serialization format? cheers Sebastian Hi, I've just found some curious bug in the osg(t/b) serializers. Currently I'm using a more or less up2date t

Re: [osg-users] ShadowMap + Other shaders (bump, specular, etc) example???

2014-04-14 Thread Trajce Nikolov NICK
I looked at the code of StandardShadowMap.cpp and I think this object at line: 544 osg::Program has to be exposed to the interface as well. Robert, will You accept such a change, it is minor but will change the interface with one getProgram() method and will not brake anything. This case is good ex

[osg-users] VertexAttribArrayList serialization

2014-04-14 Thread Sebastian Messerschmidt
Hi, I've just found some curious bug in the osg(t/b) serializers. Currently I'm using a more or less up2date trunk. When I add vertex-attributes for tangent space to a node and write out the file, it is no longer readable by osg. I'll try to provide a minimal example demonstrating the issue. H

Re: [osg-users] ShadowMap + Other shaders (bump, specular, etc) example???

2014-04-14 Thread Trajce Nikolov NICK
Knowing the problem a bit I think the question is how to access the osg::Program of the shader technique for binding vertex attributes like the binormal and tangents arrays. Nick On Mon, Apr 14, 2014 at 11:07 AM, Jaime wrote: > Thanks kornerr. > > I was checking your code, but the problem is t

Re: [osg-users] osgviewerQt example - 3D disappears if Viewer height is zero

2014-04-14 Thread Gianni Ambrosio
So, the problem related to the "NaN" dump of "CullVisitor::apply(Geode&)" is solved in OSG 3.2.0. On the other side there is still a problem related to the 3d graphics disappearing. This can be easily reproduced with osgviewerQt example. Basically, resizing the viewer to have 0 height then expand

[osg-users] uncorrect document of osgManipulator::TranslatePlaneDragger

2014-04-14 Thread Tianlan Shao
Hi all, I just found that the document of osgManipulator::TranslatePlaneDragger seems uncorrect. The introduction "Tab plane dragger consists of a plane with tabs on it's corners and edges for scaling." is identical with TabBoxDragger. I hope here is the right place to report this (minor) bug. Be

Re: [osg-users] How to modify projection matrix from (own) CameraManipulator directly

2014-04-14 Thread Martin Siggel
Thanks for the helpful hints. I think it's a great idea, that the new OSG release offers a "default" way how to deal with these projection transform changes. 2014-04-11 18:00 GMT+02:00 Rafa Gaitan : > Oh! that's new! I need to upgrade now to osg-3.2 :) > > Rafa. > > > 2014-04-11 16:39 GMT+02:00

Re: [osg-users] ShadowMap + Other shaders (bump, specular, etc) example???

2014-04-14 Thread Jaime
Thanks kornerr. I was checking your code, but the problem is that I don't want deferred shading, because I need transparency too. I think I should use LightSpacePerspectiveShadowMap because there I can use setShadowVertex/FragementeShader. Nick helped me with his code (thanks again Nick!), bu