Re: [osg-users] OSG Preset Uniforms GLSL

2007-10-26 Thread Mike Weiblen
Hi, I just tested osg_ViewMatrix on OSG 2.2 win32 binaries using glsl_dataflag.osg and drawtext4.frag from osgToy, and yes it does continue to work. While osg_ViewMatrix is preset by OSG, you do still have to declare it in your shader (eg uniform mat4 osg_ViewMatrix), unlike the gl_* presets.

Re: [osg-users] Removing Shader from Program

2007-10-26 Thread Mike Weiblen
Hi, As I recall, shader detachment is not fully implemented in OSG. GL has its own reference-counting and garbage-collection of attachments between glShaders and glPrograms, and putting a robust OSG wrapper around that revealed several tedious corner cases that seemed a bit too

Re: [osg-users] multiple windows

2007-10-26 Thread Alberto Luaces
If I recall correctly, you can have as many CompositeViewers as you like/need. Alberto El Friday 26 October 2007 00:19:25 Emmanuel Roche escribió: Still on the issue of multi-windows, I guess it's totally unsafe to use multiple CompositeViewer at the same time, isn't it ? For exemple doing

[osg-users] Perspective projection

2007-10-26 Thread santosh
Hi Guys I am setting my camera in perspective projection by specifying vertical angle, aspect ratio and near, far plane. but it is resizing the cow geometry such that the cow should come inside that view frustum. but I want the actual view that is coming inside view frustum and that should

Re: [osg-users] Tons of warnings from include files

2007-10-26 Thread Robert Osfield
VisualStudio has a pragma for diabling warnings: #pragma warning( disable : 4512 ) A code tweak might solve it too. On 10/26/07, Cysneros, Nelson SPAWAR [EMAIL PROTECTED] wrote: I'm getting these warning also. Can I do anything to get rid of them? Thanks

Re: [osg-users] multiple windows

2007-10-26 Thread Emmanuel Roche
Yes Alberto, you're right, and I noticed this also, that's why my GraphicsWindowWX class inherits from both wxGLCanvas and osgViewer::GraphicsWindow as you can see in the files I joined... [this solution comes from the osgviewerWX example]. And in addition to this you will notice that I'm not

Re: [osg-users] Camera switch off in compositeviewer...

2007-10-26 Thread Robert Osfield
On 10/25/07, Emmanuel Roche [EMAIL PROTECTED] wrote: well hello again Before I start making thousands of tests again, maybe this is a simple question: I read I just have to do view-getCamera()-setNodeMask (0x0) if I want to disable the view but what's really happening when each

Re: [osg-users] multiple windows

2007-10-26 Thread Emmanuel Roche
Indeed, we are in a situation where the CompositeViewers don't share the GraphicsWindows and everything happen in the same thread... yet, it's currently not working for me: as soon as I had a second tab only the last compositeviewer gets updated and drawn, the others are frozen... :-(... I keep

Re: [osg-users] Perspective projection

2007-10-26 Thread Robert Osfield
On 10/26/07, santosh [EMAIL PROTECTED] wrote: Hi Guys I am setting my camera in perspective projection by specifying vertical angle, aspect ratio and near, far plane. but it is resizing the cow geometry such that the cow should come inside that view frustum. but I want the actual view that

Re: [osg-users] multiple windows

2007-10-26 Thread Robert Osfield
On 10/26/07, Alberto Luaces [EMAIL PROTECTED] wrote: If I recall correctly, you can have as many CompositeViewers as you like/need. If the different viewers don't share any GaphicsWindows then it should be fine to have multiple Viewer/CompositeViewers. However, If all the viewers run in

Re: [osg-users] OSG Preset Uniforms GLSL

2007-10-26 Thread Kim C Bale
Thanks for your prompt reply on this, I hadn't realized that I have to declare the uniform. Works a treat now. Regards, Kim. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Weiblen Sent: 26 October 2007 08:07 To: OpenSceneGraph Users Subject: Re:

[osg-users] Geometry shader

2007-10-26 Thread Ralph Kern
Hi, does anybody already got some of the new geometry shader extension EXT_geometry_shader4 working with OSG? see tutorial at http://appsrv.cse.cuhk.edu.hk/~ymxie/Geometry_Shader/ Seems it should be possible to implement it straight forward in the OSG core. Regards Ralph

Re: [osg-users] multiple windows

2007-10-26 Thread Emmanuel Roche
Okay, with this version joined, we have two tabs (not added dynamically, sure, but it's a beginning...) with animation rendered correctly... The only issue left is the mouse handling problem: I added a trackballmanipulator on the view1 on each tab, assigned an handling function to the

Re: [osg-users] Backface culling for a group containing a plane of linestrips

2007-10-26 Thread Chris Denham
Hi Robert, A first class top tip! osg::ClusterCullingCallback does exactly what I was trying to do. Thanks very much. Chris. Date: Thu, 25 Oct 2007 19:20:15 +0100 From: Robert Osfield [EMAIL PROTECTED] Subject: Re: [osg-users] Backface culling for a group containing a plane of

Re: [osg-users] multiple windows

2007-10-26 Thread Thibault Genessay
Hi Emmanuel I have made a sample that demonstrate the integration of the OSG in wxWidgets. It is a simple frame with a wxAUINotebook containing OSG views. You can download source and binaries at http://ips-dil.unil.ch/osg Could you have a look at these and see if this suits your needs ? I am

Re: [osg-users] Two function in VirtualPlaneBuilder

2007-10-26 Thread Robert Osfield
n 10/26/07, GuiYe [EMAIL PROTECTED] wrote: There are two function in VirtualPlaneBuilder: void DataSet::SourceData::readImage(DestinationData destination) void DataSet::SourceData::readHeightField(DestinationData destination) In the two functions , what method do them use ?

Re: [osg-users] Backface culling for a group containing a plane of linestrips.

2007-10-26 Thread Michele Bosi
Hi Chris, I did something similar once, I am not totally sure but I think that the vector should be multiplied before the matrix and that you need to multiply only the direction component without the position. Once you have the direction transformed in camera space to see if it faces the camera

[osg-users] VirtualPlanetBuilder0.91

2007-10-26 Thread GuiYe
Hello, I want ask the question about a function in VirtualPlanetBuilder0.91.The function is : void setGeoTransformFromRange(double xMin, double xMax, double yMin, double yMax) { _geoTransform.makeIdentity(); _geoTransform(0,0) =

Re: [osg-users] multiple windows

2007-10-26 Thread Emmanuel Roche
Great !! Indeed using the return value of makeCurrent() is exactly what I was looking for :-D... I'm testing your application right now ! cheers, Emmanuel. 2007/10/26, Thibault Genessay [EMAIL PROTECTED]: Hi Emmanuel I have made a sample that demonstrate the integration of the OSG in

Re: [osg-users] multiple windows

2007-10-26 Thread Emmanuel Roche
Whaooo ! Thanks ! thanks ! thanks !... That's exactly what I was looking for... it's really great ! :-) just a small point : you're binary distribution is not working : at least osg24-osgUtil.dll is missing for me :-) I have osg25-*** on my computer Could someone tell me what this means

Re: [osg-users] multiple windows

2007-10-26 Thread Robert Osfield
On 10/26/07, Emmanuel Roche [EMAIL PROTECTED] wrote: just a small point : you're binary distribution is not working : at least osg24-osgUtil.dll is missing for me :-) I have osg25-*** on my computer Could someone tell me what this means by the way ? why this prefix on the dll files ?

Re: [osg-users] multiple windows

2007-10-26 Thread Emmanuel Roche
Okay :-) this seems fair enough :-) 2007/10/26, Robert Osfield [EMAIL PROTECTED]: On 10/26/07, Emmanuel Roche [EMAIL PROTECTED] wrote: just a small point : you're binary distribution is not working : at least osg24-osgUtil.dll is missing for me :-) I have osg25-*** on my computer

[osg-users] CompositeNodeCallback : useful addition?

2007-10-26 Thread Jean-Sébastien Guay
Hello Robert, I was wondering about something. I find the nesting of node callbacks a bit less intuitive and transparent than it could be, and I was wondering if there would be interest in a small class I made called CompositeNodeCallback. It's simply a vector of NodeCallbacks where the

Re: [osg-users] CompositeNodeCallback : useful addition?

2007-10-26 Thread Jean-Sébastien Guay
Hello Robert, You can nested callbacks within each other right now. It's a bit awkward but does work for doing multiple callbacks. Yes, as I said I find the current nested callback mechanism less intuitive. It would be better if it were transparent to users of the class, which is what I

Re: [osg-users] osg-users Digest, Vol 4, Issue 74

2007-10-26 Thread Chris Denham
Hi Michele, Thanks for this. You're probably right, I was floundering about a bit in that snippet of code I sent. Robert's suggestion contained a much neater solution - using the sign of the dot product of the vectors between eye point and face normal. i.e. cull when this is negative.

Re: [osg-users] modelling question - 3DS Max = OSG

2007-10-26 Thread André Rocha
We have a waving flag in a pole on our virtual university campus.. I modeled it in max, using the cloth system, and exported with a sequence helper, it´s working fine in our simulation. We are working on animating crowds now, using osgCal. If you need any specific help, I´ll be glad to be useful.

Re: [osg-users] CompositeNodeCallback : useful addition?

2007-10-26 Thread Jean-Sébastien Guay
Hello Robert, All present NodeCallbacks are effectively traversal callbacks - all require you to call traverse. Yes, but most NodeCallbacks will be standalone (i.e. no dependency between callbacks), so calling them in series shouldn't be a problem, or am I missing something? Anyways,

Re: [osg-users] mac osx osgUtil::Tessellator build fails with osg svn

2007-10-26 Thread Gerrick Bivins
Sorry about the late response here. My gmail filters decided to trash this convo. I thought it was strange that no one responded so I dug on the lists archive this morning and saw that you responded. Anyway... Ok. I'll give this a try. Yeah this is strange because my initial checkout and build

Re: [osg-users] multiple windows

2007-10-26 Thread Mario Valle
Nice example, thanks! I had to make some addition to have it compiling under VS 7.1 (and my wx and osg libraries). But beside this, I noticed a strange thing: load spaceship.osg (or fountain.osg) and you notice the motor plumes does not animate. If you make the model rotate, they start animate

[osg-users] TexGenNode and projecting from inside geometry to the outside

2007-10-26 Thread Argentieri, John-P63223
Robert, If I want to project textures onto a PagedLOD globe, can I do so from inside the globe using a texgennode? It would be easiest to do if I could set the texgennode's matrices to look out at the surface of the earth from the origin. Would the fact that this is a paged database screw

[osg-users] problems with static builds on windos

2007-10-26 Thread Stephan Maximilian Huber
Hi I am trying a static build os osg 2.2 with Visual Studio. I set the cmake options, generated the solution files and started the build inside VS. The linker could not link the applications (osgviewer etc) because it could not find the lib OpenThreadsd.lib (I can only found a

[osg-users] basic compiling with cmake

2007-10-26 Thread Nathan Bates
Can someone post a simple CMakeFile.txt for just compiling one .cpp outside the OSG 2 src tree? Or are we supposed to add our own apps at OpenSceneGraph*/applications and hack the supplied CMakefiles? __ Do You Yahoo!? Tired of spam? Yahoo! Mail

Re: [osg-users] TexGenNode and projecting from inside geometry tothe outside

2007-10-26 Thread Argentieri, John-P63223
Robert, My images are in a lat/long coordinate system. How can I project them onto a globe in spherical coordinates? John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Friday, October 26, 2007 1:57 PM To: OpenSceneGraph Users

[osg-users] How does OSG cull off-screen objects?

2007-10-26 Thread beelzebob999-osg
Where in the cull traversal is an object tested to determine if it is on screen and needs to be drawn? Is this automatic, or is this something we need to turn on? Thanks. ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] CompositeNodeCallback : useful addition?

2007-10-26 Thread Jean-Sébastien Guay
Hello Robert, I'm open to having better support for multiple callbacks, I'm not at point in dev work where its easy for me to dive in to what can be a complicated topic, nor review submissiosns. Once things free up a bit I get the backlong of submissions merged I'll add a few more comments

Re: [osg-users] TexGenNode and projecting from inside geometry to the outside

2007-10-26 Thread Robert Osfield
Use the TexGenNode with eye linear coordinates. On 10/26/07, Argentieri, John-P63223 [EMAIL PROTECTED] wrote: Robert, If I want to project textures onto a PagedLOD globe, can I do so from inside the globe using a texgennode? It would be easiest to do if I could set the texgennode's

Re: [osg-users] basic compiling with cmake

2007-10-26 Thread Robert Osfield
For an example of CMake bulid have a look at Present3Do or VirtualPlanetBuidler as they both use CMake and build ontop of the OSG. http://present3d.osgforge.org/ http://virtualplanetbuilder.osgforge.org/ On 10/26/07, Nathan Bates [EMAIL PROTECTED] wrote: Can someone post a simple

Re: [osg-users] basic compiling with cmake

2007-10-26 Thread Nathan Bates
Past the first hurdle -- compiling! I modified the CMake files in your zip file and successfully compiled my OSG .cpp on Linux Ubuntu. Thanks much! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: [osg-users] basic compiling with cmake

2007-10-26 Thread Jean-Sébastien Guay
Hello Nathan, Past the first hurdle -- compiling! I modified the CMake files in your zip file and successfully compiled my OSG .cpp on Linux Ubuntu. Glad I could help. Don't be afraid to customize that setup too. Once you get to know the syntax, it isn't that bad.

Re: [osg-users] TexGenNode and projecting from inside geometry tothe outside

2007-10-26 Thread Robert Osfield
On 10/26/07, Argentieri, John-P63223 [EMAIL PROTECTED] wrote: Robert, My images are in a lat/long coordinate system. How can I project them onto a globe in spherical coordinates? There is no OpenGL texgen support for this type of mapping. You could possible use a vertex program to do it, but

Re: [osg-users] How does OSG cull off-screen objects?

2007-10-26 Thread Paul Martz
This is done automatically by osgUtil::CullVisitor. If you're using osgProducer, SceneView, or osgViewer, it happens automatically. -Paul Where in the cull traversal is an object tested to determine if it is on screen and needs to be drawn? Is this automatic, or is this something we

[osg-users] OSG Performance Issues

2007-10-26 Thread Shawn Cook
Hi, I'm back to whine about my performance issues in OpenSceneGraph. Look at this main loop: while( !viewer.done() !timeToDie) { //*** SLOW CODE *** osg::Vec3Array *vecs = dynamic_castosg::Vec3Array* (geom-getVertexArray()); if( vecs ) { for(int i=0; itest_load_resolution; i++ ){ for(int

[osg-users] glActiveTexture / glClientActiveTexture state changes

2007-10-26 Thread DC Fennell
Hello, I am curious as to why OSG never resets glActiveTexture or glClientActiveTexture back to GL_TEXTURE0 after usage. In my opinion, this should always be done. Specifically since glClientActiveTexture is set quite often in display lists. As a test, I modified osg and osgUtil to reset

Re: [osg-users] Linking Error

2007-10-26 Thread Daniel Larimer
Question for anyone who can help: I am trying to compile OSG on Leopard and I get this error message, has anyone else seen this? Scanning dependencies of target osgDB [ 99%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/FileUtils.o /System/Library/Frameworks/IOKit.framework/Headers/

Re: [osg-users] OSG Performance Issues

2007-10-26 Thread Paul Martz
Not really enough information. When SLOW CODE is enabled, did you run a profiler to determine whether the bulk of your time is being spent in SLOW CODE or elsewhere in OSG? If elsewhere in OSG, did you determine where? What kind of stats output did you get when you enable the osgviewer

[osg-users] sorting polygons

2007-10-26 Thread Gerrick Bivins
Hi All, Sorry if the question is too vague.We're a bit perplexed about depth sorting of polygons in OSG. We've been trying to get some vis working that uses Geometry (display lists or vbo's) where the primitives in Geometry need to be blended back to front and we're seeing strange results. The

Re: [osg-users] sorting polygons

2007-10-26 Thread Perry Miller
Hi Gerrick, This class works well for us: http://cadkit.svn.sourceforge.net/viewvc/cadkit/trunk/OsgTools/Callbacks/SortBackToFront.h?view=markup http://cadkit.svn.sourceforge.net/viewvc/cadkit/trunk/OsgTools/Callbacks/SortBackToFront.cpp?view=markup BSD license. Hope it helps. Per On