Re: [osg-users] Transparency on a drawable

2008-07-15 Thread Vincent Bourdier
Hi Ulrich thanks for help. I use/try this code for the moment : osg::StateSet* state = g-getOrCreateStateSet(); state-setMode(GL_BLEND,osg::StateAttribute::ON|osg::StateAttribute::OVERRIDE); osg::Material* mat = (osg::Material*)state-getAttribute(osg::StateAttribute::MATERIAL);

Re: [osg-users] KD-Tree Performance Challenge....

2008-07-15 Thread Adrian Egli OpenSceneGraph (3D)
Hi Robert, Thanks for your eMail. First of all i like to do a review of the current kdTree code, w.r.t. the build method. As we know form the publications about kdTree based Real Time Ray Tracer the build method and some heuristics are more important than the traversal. May the sah heuristic will

Re: [osg-users] Transparency on a drawable

2008-07-15 Thread dimi christop
Hi Vincent, I see you still havent found a solution. So here I send you a complete example of transpareny. Its a modification of the Viewer example from the Qucik start guide. It loads up a cow and overrides the alpha to 0.1. Hope you can start from there. Dimi // Viewer Example, A minimal OSG

Re: [osg-users] Transparency on a drawable

2008-07-15 Thread Vincent Bourdier
Hi Yes, no solutions seems to work on my problem. Because all the propositions concern nodes, I permit to remember that I am looking at a way to set alpha level on a osg::Geometry ... On node I already have a method using material : set alpha channel, and it works good... But on my geometry

Re: [osg-users] Transparency on a drawable

2008-07-15 Thread Paul Speed
Vincent Bourdier wrote: Hi Yes, no solutions seems to work on my problem. Because all the propositions concern nodes, I permit to remember that I am looking at a way to set alpha level on a osg::Geometry ... On node I already have a method using material : set alpha channel, and it works

Re: [osg-users] Transparency on a drawable

2008-07-15 Thread Vincent Bourdier
Hi Paul. Nothing changes with color's alpha changed... 2008/7/15 Paul Speed [EMAIL PROTECTED]: Vincent Bourdier wrote: Hi Yes, no solutions seems to work on my problem. Because all the propositions concern nodes, I permit to remember that I am looking at a way to set alpha level on a

Re: [osg-users] Problem setting a skydome

2008-07-15 Thread David Spilling
Alberto, skydome-setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR). a class osg::Camera inherits from Sorry - missed a step. Put a Camera in above your skydome. A solution that comes to my mind is to use a pair of cameras, one rendering the skydome with the setting you

Re: [osg-users] empty scene after resize

2008-07-15 Thread Michele Bosi
I just wanted to let you know how I solved my problem: it seems that one has to avoid sending the resize events to OSG when the new size has zero area, that is, the width or height are == 0. Basically I just put the condition if ( width * height ) in the Qt's resize event handler before

[osg-users] FindNodeVisitor Operation?

2008-07-15 Thread Ümit Uzun
Hi All, I have an model composing of different part of component in .3ds format. I am trying to traverse in these part of component and translate them. As like as http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/FindingNodessample' I want to control part of component with

Re: [osg-users] FindNodeVisitor Operation?

2008-07-15 Thread David Spilling
Hi Ümit, osg::DOFTransform is a subclass of the more general osg::MatrixTransform. If I'm reading the intention of the model right, you have 2 MatrixTransform nodes - named *3DSPIVOTPOINT: Rotate* and *3DSPIVOTPOINT: Translate pivotpoint to (world) origin* above some geometry *1_planetar*.

Re: [osg-users] New feature : osgconv --plugins and --formats ReaderWriter::supported*() API

2008-07-15 Thread Robert Osfield
On Tue, Jul 15, 2008 at 3:15 AM, Paul Martz [EMAIL PROTECTED] wrote: This looks like it was a pain in the butt. Thanks for adding this interface. Is there any way we can get the supported entry point info that osgio -csv was capable of displaying? (You know, a plugin says it supports format

Re: [osg-users] Transparency on a drawable

2008-07-15 Thread Ulrich Hertlein
Hi Vincent, odd... could you save the scene and post it? /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] ArchiveStatus defined in osgDB/Archive

2008-07-15 Thread Robert Osfield
Hi Biv, Since Archive inherits from ReaderWriter, the Archive::ArchiveStatus is the same thing as ReaderWriter::ArchiveStatus. I guess it's possibly slightly less confusing to have the functions use ReaderWriter::ArchiveStatus, but there's not much in it. Robert. On Mon, Jul 14, 2008 at 10:39

Re: [osg-users] Update Optimization

2008-07-15 Thread Robert Osfield
Hi John, On Tue, Jul 15, 2008 at 2:48 AM, John Burgess [EMAIL PROTECTED] wrote: I've tried the KdTree but my update traversal rate is still the same as before. Below is my code snippet to enable KdTree, am I doing the right thing?

Re: [osg-users] Transparency on a drawable

2008-07-15 Thread Vincent Bourdier
Sure This is my Billboard node which won't set its geometry to transparent. thanks for help. Regards, Vincent 2008/7/15 Ulrich Hertlein [EMAIL PROTECTED]: Hi Vincent, odd... could you save the scene and post it? /ulrich ___ osg-users mailing

Re: [osg-users] KD-Tree Performance Challenge....

2008-07-15 Thread Robert Osfield
Hi Adrian, On Tue, Jul 15, 2008 at 8:15 AM, Adrian Egli OpenSceneGraph (3D) [EMAIL PROTECTED] wrote: Thanks for your eMail. First of all i like to do a review of the current kdTree code, w.r.t. the build method. As we know form the publications about kdTree based Real Time Ray Tracer the build

Re: [osg-users] empty scene after resize

2008-07-15 Thread Robert Osfield
Hi Michele, We should probably add such as catch higher up in the OSG. I'm spinning half a dozen plates at this end so would appreciate if you could chase this up. Robert. On Tue, Jul 15, 2008 at 9:36 AM, Michele Bosi [EMAIL PROTECTED] wrote: I just wanted to let you know how I solved my

Re: [osg-users] Transparency on a drawable

2008-07-15 Thread dimi christop
This is because when you set alpha to the vertices and attach also an material and a blending function you have to setColorMode (AMBIENT_DIFFUSE) on the material. Dimi - Original Message From: Vincent Bourdier [EMAIL PROTECTED] To: OpenSceneGraph Users

Re: [osg-users] Transparency on a drawable

2008-07-15 Thread Vincent Bourdier
Hi Dimi, this is my code : osg::StateSet* state = g-getOrCreateStateSet(); state-setMode(GL_BLEND,osg::StateAttribute::ON|osg::StateAttribute::OVERRIDE); osg::Material* mat = new osg::Material; mat-setAlpha(osg::Material::FRONT_AND_BACK, alpha);

Re: [osg-users] Transparency on a drawable

2008-07-15 Thread dimi christop
Ok, I fixed your osg file so that it displays varrying tranparency (top transparent, bottom opaque). I assume this is what you wanted. Do an diff on the files and see what you did wrong You set the colors per primitive and not per vertex. - Original Message From: Vincent

Re: [osg-users] Update Optimization

2008-07-15 Thread John Burgess
Hi Robert, Thanks for the advice, after using KdTree and LineSegmentIntersector, my update traversal rate reduce from 700ms to 60ms. Regards, John - Original Message From: Robert Osfield [EMAIL PROTECTED] To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Sent: Tuesday, July

Re: [osg-users] Update Optimization

2008-07-15 Thread Robert Osfield
Ho Johm, On Tue, Jul 15, 2008 at 11:33 AM, John Burgess [EMAIL PROTECTED] wrote: Thanks for the advice, after using KdTree and LineSegmentIntersector, my update traversal rate reduce from 700ms to 60ms. Much better, but still not good enough... How to get the time lower will depend upon what

Re: [osg-users] Transparency on a drawable

2008-07-15 Thread Vincent Bourdier
Thanks a lot ! I did some changes to have the same osg file, and it work very good now !!! It seems to be a mix of different settings. thanks for your help. Regards, Vincent. 2008/7/15 dimi christop [EMAIL PROTECTED]: Ok, I fixed your osg file so that it displays varrying tranparency

[osg-users] OSG developers Australia? Melbourne?

2008-07-15 Thread Paul McIntosh
All, Seeking OSG developers Australia to participate in developer study... I am undertaking a PhD in UML based 3D Software Visualisation at RMIT, Melbourne, Australia. As part of that I wish to investigate 3D software visualisation for use by OpenSceneGraph developers. My methodology is user

Re: [osg-users] FindNodeVisitor Operation?

2008-07-15 Thread Ümit Uzun
Hi David, Firstly thanks for reply. I actually want to handle part of model components and make some operation on them. I have tried findNodeVisitor sample for my model. My model has 7 children node and all of them are geode node. But I have 8 MatrixTransform node which are handle only 4 of them,

[osg-users] Render to Texture

2008-07-15 Thread paul1492
I'm attempting to render to a texture and then dump the rendered texture to a file (every frame), but I'm having trouble. I've attempted to use the osgprerender example (using the --image option), and replaced the MyCameraPostDrawCallback::operator() to have a     osgDB::writeImageFile(*_image,

Re: [osg-users] Render to Texture

2008-07-15 Thread J.P. Delport
Hi, make sure the image writer can handle your image format. Bands usually mean an alignment error in the data the writer expects. E.g. expects binary input data to be RGB, but the data is RGBA. .jpg does not support alpha I think. Try .png jp [EMAIL PROTECTED] wrote: I'm attempting to

Re: [osg-users] osgWidget Remaining Issues

2008-07-15 Thread Kim C Bale
- The anti-aliased look of the fonts is really nice in most cases, but when trying to render small fonts it would be nice if you could disable it. Basically, I'd like to get the sharp look of the DefaultFont using the FreeType plugin. Just to reinforce the above point, we used the freetype

Re: [osg-users] FindNodeVisitor Operation?

2008-07-15 Thread David Spilling
Ümit, Firstly, do you need to add MatrixTransforms above all your geodes, or just the ones that have them now? You have a couple of strategies. The first one is to modify your model so it has uniquely named _MatrixTransforms_ above every geode. At the moment they are all called the same thing,

Re: [osg-users] ArchiveStatus defined in osgDB/Archive

2008-07-15 Thread Gerrick Bivins
Hey Robert, I ran into issues while working on osgSwig Cmake files for Java. While trying to compile the java classes, javac complained about not knowing what Archive::ArchiveStatus was. I changed it locally to be ReaderWriter status and got by those javac compile errors. biv On 7/15/08 4:29 AM,

Re: [osg-users] ArchiveStatus defined in osgDB/Archive

2008-07-15 Thread Robert Osfield
On Tue, Jul 15, 2008 at 2:03 PM, Gerrick Bivins [EMAIL PROTECTED] wrote: Hey Robert, I ran into issues while working on osgSwig Cmake files for Java. While trying to compile the java classes, javac complained about not knowing what Archive::ArchiveStatus was. I changed it locally to be

Re: [osg-users] ArchiveStatus defined in osgDB/Archive

2008-07-15 Thread Gerrick Bivins
Thanks! Now if only the rest were that easy!!! ;) biv On 7/15/08 8:43 AM, Robert Osfield [EMAIL PROTECTED] wrote: On Tue, Jul 15, 2008 at 2:03 PM, Gerrick Bivins [EMAIL PROTECTED] wrote: Hey Robert, I ran into issues while working on osgSwig Cmake files for Java. While trying to compile

Re: [osg-users] FindNodeVisitor Operation?

2008-07-15 Thread Ümit Uzun
Hi David, Thanks for your useful help. I will try to create new TransformMatrixes for unhandled geodes. First method can create so many problem. Programmatic way is more understandable. Maybe, after I create MatrixTransformes and collect all components then I can save .osg format the model with

[osg-users] Using OsgViewerMFC to load a sphere

2008-07-15 Thread TANG Fangqin
Hi All, I am a beginner of OSG. I used OsgViewerMFC to load a sphere into the scene, but it displays as an ellipsoid. The radius doesn't seem to be equal in two orthotropic axes. I find that it may be related to the width and height of the view window when initializing. The

[osg-users] Looking for tips on importing osgWidget

2008-07-15 Thread Robert Osfield
Hi All, svn experts I need you!! I'm now ready to pull in Jeremy Moles work on osgWidget, and have tried: cd OpenSceneGraph/include svn copy http://osgwidget.googlecode.com/svn/trunk/include/osgWidget/ . Now this copies the files into my local copy, but reports the message: svn: Source URL

Re: [osg-users] Looking for tips on importing osgWidget

2008-07-15 Thread Jeremy Moles
On Tue, 2008-07-15 at 15:42 +0100, Robert Osfield wrote: Hi All, svn experts I need you!! I'm now ready to pull in Jeremy Moles work on osgWidget, and have tried: cd OpenSceneGraph/include svn copy http://osgwidget.googlecode.com/svn/trunk/include/osgWidget/ . Now this copies the

Re: [osg-users] Using image maps with materials

2008-07-15 Thread Rick Pingry
I have seen some examples, somewhere I think, where you could have one texture on the lit side of an object and then have another texture on the dark side. I am thinking of the earth where you could see lights in cities on the dark side. Did I really see that somewhere or is that my imagination?

[osg-users] Linux Journal / OSG

2008-07-15 Thread Jeremy Moles
In our company's advertisement the August edition of Linux Journal you'll see a picture of my laptop running OpenSceneGraph applications. :) It's nothing too special, but if any of you guys get LJ let me know if you can spot them... ___ osg-users

Re: [osg-users] Looking for tips on importing osgWidget

2008-07-15 Thread Alberto Luaces
Hi, El Martes 15 Julio 2008ES 16:42:12 Robert Osfield escribió: Is there some option in svn that I'm missing? Generally joining two repositories require to do some administration work with the svnadmin tools. First you would get the dump file of the osgWidget repository with svnadmin dump.

Re: [osg-users] Looking for tips on importing osgWidget

2008-07-15 Thread Robert Osfield
On Tue, Jul 15, 2008 at 3:44 PM, Jeremy Moles [EMAIL PROTECTED] wrote: You would lose the history, but this may not be too big of a deal, really. I've been good about keeping the CHANGELOG up to date, but my commit messages are hardly worth preserving. As a matter of fact, I had always assumed

Re: [osg-users] Looking for tips on importing osgWidget

2008-07-15 Thread Robert Osfield
Hi Alberto, Thanks for the explanation. It sounds like there a few steps extra in doing the full import of histories, given that Jeremy is up for a straight import minus histories I'll go this route for an easy life. Robert. On Tue, Jul 15, 2008 at 4:06 PM, Alberto Luaces [EMAIL PROTECTED]

Re: [osg-users] Using OsgViewerMFC to load a sphere

2008-07-15 Thread spowers
Hi and welcome to OSG. You need to make sure your viewport and projection matrix have equivalent aspect ratios. The best way to do this in MFC is to use the viewport dimensions that your using (traits-width, traits-height) and then change your projection matrix to match that aspect ratio.

Re: [osg-users] osgWidget Remaining Issues

2008-07-15 Thread Farshid Lashkari
On Tue, Jul 15, 2008 at 5:41 AM, Kim C Bale [EMAIL PROTECTED] wrote: Just to reinforce the above point, we used the freetype library to generate OpenGL screen fonts here and found that for font sizes 12 Disabling anti-aliasing really improved the clarity of the font. So much so we made it

[osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Robert Osfield
Hi All, I have just completed the import of Jeremy Moles osgWidget library into OpenSceneGraph SVN trunk. I merged with relatively few changes - mainly just CMakeLists.txt file changes and move of imager/scripts/shaders out into OpenSceneGraph-Data SVN trunk. We need to come up with some new

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Jeremy Moles
Running ccmake I get: --- CMake Error: Error in cmake code at /home/cubicool/sources/svn-OpenSceneGraph/examples/CMakeLists.txt:152: Parse error. Expected a command name, got right paren with text ). The end of a CMakeLists file was reached with an IF statement that was not closed properly.

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Robert Osfield
Sorry about this, typo on editing a CMakeLists.txt, I've now made the fix and checked it in, I presume it'll be the same as yours. On Tue, Jul 15, 2008 at 6:33 PM, Jeremy Moles [EMAIL PROTECTED] wrote: Running ccmake I get: --- CMake Error: Error in cmake code at

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Jean-Sébastien Guay
Hello Robert, Regarding osgWidget's examples, should their CMakeLists.txt files use the SETUP_EXAMPLE() macro as do all the other OSG examples? I would assume so since this will make things more consistent. If so I can help convert them to use this macro. Also, do we want osgwidgetversion

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Jeremy Moles
Looks like there's a small spelling error in the style plugin placeholder; it's calling itself: osgdb_osgwisget :) On Tue, 2008-07-15 at 18:39 +0100, Robert Osfield wrote: Sorry about this, typo on editing a CMakeLists.txt, I've now made the fix and checked it in, I presume it'll be

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Jeremy Moles
On Tue, 2008-07-15 at 19:41 +0100, Robert Osfield wrote: Hi Jeremy, On Tue, Jul 15, 2008 at 6:50 PM, Jeremy Moles [EMAIL PROTECTED] wrote: Looks like there's a small spelling error in the style plugin placeholder; it's calling itself: I haven't merged the style plugin, I'll leave a

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Jeremy Moles
On Tue, 2008-07-15 at 14:27 -0400, Jean-Sébastien Guay wrote: Hello Robert, Jeremy, Thanks in advance for you assistance on testing. Once it looks like things are building across all our main platforms I'll go ahead and tag another dev release. Builds on Windows Vista, VS8 here, with

Re: [osg-users] KD-Tree Performance Challenge....

2008-07-15 Thread Robert Osfield
Hi Adrian, On Tue, Jul 15, 2008 at 7:44 PM, Adrian Egli OpenSceneGraph (3D) [EMAIL PROTECTED] wrote: I played with the osg::KDtree.cpp and did a review. then after thinking a while how we can reduce the number of flops, i found one first optimisation we should do. the ray or just a line with

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Jean-Sébastien Guay
Hi Jeremy, Ah, interesting. I always figured I was doing folks a favor by hard-coding a small size, but code can certainly be added to have it behave as you suggest. Well, I (and most people with 19 inch monitors) have 1280x1024 native resolution, so your window should fill the whole screen,

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Jeremy Moles
On Tue, 2008-07-15 at 15:04 -0400, Jean-Sébastien Guay wrote: Hi Jeremy, Ah, interesting. I always figured I was doing folks a favor by hard-coding a small size, but code can certainly be added to have it behave as you suggest. Well, I (and most people with 19 inch monitors) have

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Robert Osfield
Hi JS and Jeremy, On Tue, Jul 15, 2008 at 8:14 PM, Jeremy Moles [EMAIL PROTECTED] wrote: From my experience, if you have a 1024x768 orthographic camera-in-camera setup for your HUD, and then you make the window fullscreen, the orthographic camera still has a resolution of 1024x768, even

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Robert Osfield
Hi Jeremy, On Tue, Jul 15, 2008 at 7:46 PM, Jeremy Moles [EMAIL PROTECTED] wrote: There are some remaining focus list bugs I'm working on... We have a BugResolution page on the wiki, I'd suggest putting outstanding bugs on here, we can then work out which ones will be possible to resolve before

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Jeremy Moles
On Tue, 2008-07-15 at 20:19 +0100, Robert Osfield wrote: Hi JS and Jeremy, On Tue, Jul 15, 2008 at 8:14 PM, Jeremy Moles [EMAIL PROTECTED] wrote: From my experience, if you have a 1024x768 orthographic camera-in-camera setup for your HUD, and then you make the window fullscreen, the

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Jean-Sébastien Guay
Hi Jeremy, It's all up to the ResizeHandler though; if you wanted to ALWAYS work in some coordinate space like 1024x768, it should be possible just by using (or perhaps not even using) a different ResizeHandler. The one I created in ViewerEventHandler, however, tries to make sure the

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Vican, Justin E.
Hi Jeremy, J-S, Robert, I just updated to the latest and greatest (r8597), and the new osgWidget code is throwing the following errors when I try to compile: 64Bit Linux, RHEL4, gcc3.4.6 src/osgWidget/Window.cpp: In member function `bool

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Robert Osfield
Hi Justin, My guess is that we can probably relax the use of private: in this context. I've moved the private sections into the protected section, and re-ordered the class interface so that the public section is first, along the lines of the rest of the OSG. An svn update will provide this

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Jeremy Moles
Robert, I've got a patch incoming fixing all of the data problems and what-have-you. I'll also attach a zipfile of the new stuff for OpenSceneGraph-Data, which is all safe to use and redistribute. On Tue, 2008-07-15 at 17:58 +0100, Robert Osfield wrote: Hi All, I have just completed the

Re: [osg-users] osgWidget now checked into OSG SVN trunk

2008-07-15 Thread Jeremy Moles
On Tue, 2008-07-15 at 16:29 -0400, Vican, Justin E. wrote: Hi Robert, That did the trick. Everything in r8598 builds fine (Linux RHEL4, 64Bit, gcc3.4.6). All of the osgWidget example applications build and run without crashing, but I am getting warnings/errors about missing files/images.

Re: [osg-users] KD-Tree Performance Challenge....

2008-07-15 Thread Adrian Egli OpenSceneGraph (3D)
2008/7/15 Robert Osfield [EMAIL PROTECTED]: Hi Adrian, On Tue, Jul 15, 2008 at 7:44 PM, Adrian Egli OpenSceneGraph (3D) [EMAIL PROTECTED] wrote: I played with the osg::KDtree.cpp and did a review. then after thinking a while how we can reduce the number of flops, i found one first

Re: [osg-users] How to take a picture of my scene?

2008-07-15 Thread Carlos Sanches
eee!! I did it ! I m doing videos with the code of osghelp page and ffmepg on linux . tomorrow I put the code here using an osg::Camera thank you guys ! no more tears :D ___ osg-users mailing list osg-users@lists.openscenegraph.org