Re: [osg-users] osgWidget 0.1.8 (pre-merge)

2008-05-14 Thread Thibault Genessay
Hi Jeremy Window* parent = wl-back()-getParent(); // wl is declared as 'const WidgetList* wl' Was this the only line you needed to change? Were there others? :) If it had only been as easy as modifying 1 line, I would have sent you a patch rather than complaining :) I could not get the

Re: [osg-users] osgthirdpersonview example: anyone else with an ATIhaving problems?

2008-05-14 Thread Paul Melis
I didn't manage to find out what is going on. The only different between osgthirdpersonview (not working) and osgcompositeviewer (working) is that the former uses separate windows to render its output. Paul Paul Melis wrote: Paul Martz wrote: Good suggestions, Robert -- Those are the most

[osg-users] how to convert DDB bitmap to osg::Image?

2008-05-14 Thread forest37
hello everyone, I want to draw something in memory dc ,then convert the drawing to osg::Image. I tried it like this: CDC dc; dc.CreateCompatibleDC(NULL); CBitmap bitmap; bitmap.CreateCompatibleBitmap (dc, 100, 100); CBitmap*

[osg-users] ShadowTexture::setTextureSize?

2008-05-14 Thread Ben Discoe
Thanks to J-S and the others who have filled in the osgshadow documentation, it is really starting to come together. Question of the day: I find a setTextureSize method on ShadowMap and SoftShadowMap, but not on the 3 other techniques (even in SVN head). In particular ShadowTexture has code

Re: [osg-users] Problem with osgviewerGTK example

2008-05-14 Thread Martin Großer
Hi Jeremy, Which osg version had you used? Now I have 2.4 and it doesn't work. Cheers, Martin -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Jeremy Moles Gesendet: Dienstag, 13. Mai 2008 15:37 An: OpenSceneGraph Users Betreff: Re: [osg-users]

Re: [osg-users] How to document osgShadow?

2008-05-14 Thread Ben Discoe
- From: Wojciech Lewandowski Sent: Tuesday, May 13, 2008 12:35 PM Hi Ben, J-S, and All, I have recently fixed SSM debuging HUD. Its now functional. I think this is quite useful option that is worth some presentation to wider audience. What is this HUD? It sounds very interesting,

Re: [osg-users] How to document osgShadow?

2008-05-14 Thread Wojciech Lewandowski
Hi Ben, Ouch, I my bad. I used SSM name and it was interpreted as SoftShadowMap. I meant standard shadow map. SSM is commonly used in various shadowing papers as an acronym for uniform shadow map. So to clarify I made my fixes for osgShadow::ShadowMap and thats what I meant by SSM. Debug

Re: [osg-users] spot_gold_cylinder silliness

2008-05-14 Thread Robert Osfield
Hi Mike, On Wed, May 14, 2008 at 3:44 AM, Mike Weiblen [EMAIL PROTECTED] wrote: (ab)using the curl plugin for up-to-the-minute gold quotes, see attached :-) I download the file and loaded it, and couldn't work out where the image came from as you just provided the .osg, then... it dawned on me

Re: [osg-users] GeoTIFF dem coordinate system?

2008-05-14 Thread Norman Vine
Robert Osfield writes: Hi Linh, On Wed, May 14, 2008 at 3:09 AM, Linh Phan [EMAIL PROTECTED] wrote: Even when I set that to say, -2000, and regenerate the DEM_1m_VictoriaCrater.tif, osgdem/VPB always use a value of 0 for everywhere there is a NoDataValue in the generated terrain and

Re: [osg-users] osgthirdpersonview example: anyone else with an ATIhaving problems?

2008-05-14 Thread Robert Osfield
Hi Paul, On Wed, May 14, 2008 at 8:21 AM, Paul Melis [EMAIL PROTECTED] wrote: I didn't manage to find out what is going on. The only different between osgthirdpersonview (not working) and osgcompositeviewer (working) is that the former uses separate windows to render its output. Could you try

Re: [osg-users] how to convert DDB bitmap to osg::Image?

2008-05-14 Thread Robert Osfield
Hi Forest, There isn't any OSG code in your example, so it is that you have a stumbling block before you even start trying to pass data to the osg::Image? As for examples of setting up osg::Image have a look through the various image plugins such as src/osgPlusgins/rgb, png, tga etc. Robert.

Re: [osg-users] ShadowTexture::setTextureSize?

2008-05-14 Thread Robert Osfield
Hi Ben, On Wed, May 14, 2008 at 8:28 AM, Ben Discoe [EMAIL PROTECTED] wrote: But no setTextureSize method. So it seems like it would be very easy to add it. Is there some technical reason it's not there, or just an oversight? If oversight, may i implement and submit it? The various

Re: [osg-users] Problem with osgviewerGTK example

2008-05-14 Thread Robert Osfield
On Wed, May 14, 2008 at 8:31 AM, Martin Großer [EMAIL PROTECTED] wrote: Hi Jeremy, Which osg version had you used? Now I have 2.4 and it doesn't work. I have SVN version of the OSG, but its very very close to 2.4 so that fact that you still get the problem eradicates the OSG version from the

Re: [osg-users] some questions about Virtual Planet Builder

2008-05-14 Thread Robert Osfield
Hi David, In VPB SVN archive support is temporarily disabled, I do plan to re-enable it this month. BTW, what platform are you using? I haven't seen a performance delta between archive and non archived forms - I work under Linux. FYI, In OSG-2.4 and VPB SVN there is support for build with

[osg-users] some questions about Virtual Planet Builder

2008-05-14 Thread David _
Hi we´re using osgdem to generate islands in our project and we´re considering moving to OSG 2.4. We´re currently in 2.2 the last osgdem in SVN generates the island meshes with some kind of optimization so the meshes are not so high density but still have high res textures we´re really

Re: [osg-users] some questions about Virtual Planet Builder

2008-05-14 Thread David _
I found your answer really interesting, i´ll check the --terrain stuff this week We´re currently running both Windows XP and Windows Vista the performance drop is not very huge but it´s there. We saw this drop while making some stress tests, with 16 islands and 20.000 to 40.000 ive´s each

[osg-users] CompositeViewer inside a GLUT window?

2008-05-14 Thread Björn Blissing
Is it possible (and appropriate) to use compositeViewer inside a GLUT window? /Björn ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] some questions about Virtual Planet Builder

2008-05-14 Thread Robert Osfield
On Wed, May 14, 2008 at 11:12 AM, David _ [EMAIL PROTECTED] wrote: We´re currently running both Windows XP and Windows Vista the performance drop is not very huge but it´s there. The Windows files system is pretty crappy, and is known to have problems with finding files in directories with

Re: [osg-users] CompositeViewer inside a GLUT window?

2008-05-14 Thread Robert Osfield
Hi Björn, On Wed, May 14, 2008 at 11:41 AM, Björn Blissing [EMAIL PROTECTED] wrote: Is it possible (and appropriate) to use compositeViewer inside a GLUT window? Both osgViewer::Viewer and CompositeViewer can work with GraphicsWindowEmbedded, and therefore will work with GLUT. However, I

Re: [osg-users] CompositeViewer inside a GLUT window?

2008-05-14 Thread Robert Osfield
Hi Björn, The reason for us thinking of using GLUT and not just sticking with pure OSG is that we want to use the built-in menu capabillities of GLUT. But perhaps there is a simple OSG way of doing that as well? osgViewer itself doesn't provide menu support, its literally focused on the

Re: [osg-users] pagedLOD question

2008-05-14 Thread Brett Wiesner
Thanks Robert. By external file reference you mean a proxyNode correct? Robert Osfield wrote: HI Brett, What I have done VirtualPlanetBuilder is to have a quad tree scene graph structure like: Group PagedLOD child 0 - local tile geometry at low resolution child 1 -

[osg-users] Problem with multiple windows and GLcontext I think

2008-05-14 Thread Ralf Stokholm
Hi All Im getting a chrash when using a hardwaremesh defined in the open source engine delta3d, I have postet this question on thir forum as well but so far no one has answered and since this might be relatet to osg or opengl ill try posting it here. My application makes use of two windows window

Re: [osg-users] how to convert DDB bitmap to osg::Image?

2008-05-14 Thread Glenn Waldron
Forest, You may need to convert the DDB to a DIB and then use GetDIBits to convert the DIB to an osg::Image. Reference: http://www.codeguru.com/cpp/g-m/bitmap/article.php/c1765/ I do have some code to convert the DIB to an image if you need help on that end of it. Glenn 2008/5/14 forest37

Re: [osg-users] pagedLOD question

2008-05-14 Thread Robert Osfield
On Wed, May 14, 2008 at 1:54 PM, Brett Wiesner [EMAIL PROTECTED] wrote: Thanks Robert. By external file reference you mean a proxyNode correct? No, I mean the files referenced from the PagedLOD ___ osg-users mailing list

Re: [osg-users] Problem with multiple windows and GLcontext I think

2008-05-14 Thread Robert Osfield
Hi Ralf, Perhaps the HardwareSubmeshDrawable isn't thread safe, beyond this I can't really help, its not OSG code. Robert. On Wed, May 14, 2008 at 1:56 PM, Ralf Stokholm [EMAIL PROTECTED] wrote: Hi All Im getting a chrash when using a hardwaremesh defined in the open source engine delta3d,

Re: [osg-users] ShadowTexture::setTextureSize?

2008-05-14 Thread Jean-Sébastien Guay
Hi Ben, Question of the day: I find a setTextureSize method on ShadowMap and SoftShadowMap, but not on the 3 other techniques (even in SVN head). In addition to what Robert said, I'll add that setTextureSize is only relevant to texture-based shadow techniques, so for example it makes no

Re: [osg-users] wxWidgets onKeyDown Event not called

2008-05-14 Thread Steven Powers
Still having the problem... I've looked at Mario's example and he's added the following to the onKeyDown Code: int GraphicsWindowWX::adaptKey(wxKeyEvent event) { #if wxUSE_UNICODE int key = event.GetUnicodeKey(); #else int key = event.GetKeyCode(); #endif bool caps_lock =

Re: [osg-users] How to document osgShadow?

2008-05-14 Thread Jean-Sébastien Guay
Hi Wojtek, I am bit surprised to see my name called out. Of course its a pleasure and I am ready to help but I am not an author of any technique. I took part in many discussions and sent few fixes for SSM. You also mentioned you were working on a LiSPSM implementation! Any news on that? :-)

Re: [osg-users] wxWidgets onKeyDown Event not called

2008-05-14 Thread Thibault Genessay
Hi Steven On Wed, May 14, 2008 at 3:42 PM, Steven Powers [EMAIL PROTECTED] wrote: Still having the problem... The problem I am having is that OnKeyDown and OnKeyUp methods are never called when I press a key. The mouse handler functions work fine so I can control the camera with the mouse.

Re: [osg-users] wxWidgets onKeyDown Event not called

2008-05-14 Thread Paul Melis
Hi, Steven Powers wrote: Still having the problem... This seems to be a wxWigets 2.8 problem. If I compile a slightly modified version of the example with wxWidgets 2.6.3 the key event handlers are called. The exact same code compiled against 2.8.7.1 does not generate them. I've sent a

Re: [osg-users] wxWidgets onKeyDown Event not called

2008-05-14 Thread Steven Powers
I added SetFocus() to the onMouse handler and it worked like a charm! Thanks everyone for your help! -Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thibault Genessay Sent: Wednesday, May 14, 2008 10:05 AM To: OpenSceneGraph Users Subject:

[osg-users] VRML Normals

2008-05-14 Thread Ben Axelrod
I noticed that OSG 2.2 does not properly calculate the normals of VRML files. It seems like it points all the normals at (0, -1, 0). This is only when the normals are not explicitly specified in the file. If you open a VRML file like this in osgviewer, you can see that the coloration of the

Re: [osg-users] osgWidget 0.1.8 (pre-merge)

2008-05-14 Thread Jeremy Moles
On Wed, 2008-05-14 at 08:57 +0200, Thibault Genessay wrote: Hi Jeremy Window* parent = wl-back()-getParent(); // wl is declared as 'const WidgetList* wl' Was this the only line you needed to change? Were there others? :) If it had only been as easy as modifying 1 line, I would

Re: [osg-users] How to document osgShadow?

2008-05-14 Thread Wojciech Lewandowski
Hi J-S, I am bit surprised to see my name called out. Of course its a pleasure and I am ready to help but I am not an author of any technique. I took part in many discussions and sent few fixes for SSM. You also mentioned you were working on a LiSPSM implementation! Any news on that? :-)

Re: [osg-users] VRML Normals

2008-05-14 Thread Robert Osfield
Hi Ben, The answer to the question Has this bug been fixed in version 2.4 can be found by browsing the SVN repository online: http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/src/osgPlugins/vrml/ReaderWriterVRML2.cpp From this: 3) Smoothed normals are computed if no

Re: [osg-users] How to document osgShadow?

2008-05-14 Thread Jean-Sébastien Guay
Hello Wojtek, I got my company permission to publish it. The thing is rather complex and I need to create convincing demo to show how to use it. I can post technique classes as is but I doubt anyone will be able to take advantage. I will be doing this demo in incoming weeks. Excellent, I

Re: [osg-users] osgWidget 0.1.8 (pre-merge)

2008-05-14 Thread Thibault Genessay
Jeremy, Just to keep you informed: the code compiles well for the 0.1.7 tag on both machines, but fails for both on the trunk. The prototype for ref_ptr::get looks like this: T* get() const { return _ptr; } After reviewing the 0.1.7 code, this makes perfect sense. It is legal to get

Re: [osg-users] VRML Normals

2008-05-14 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben Axelrod wrote: I noticed that OSG 2.2 does not properly calculate the normals of VRML files. It seems like it points all the normals at (0, -1, 0). This is only when the normals are not explicitly specified in the file. If you open a

Re: [osg-users] wxWidgets onKeyDown Event not called

2008-05-14 Thread Paul Melis
FYI, I submitted a slightly changed version of the example to osg-submissions. This should make key handling work with both wxWidgets 2.6 and 2.8 Paul Steven Powers wrote: I added SetFocus() to the onMouse handler and it worked like a charm! Thanks everyone for your help! -Steve

Re: [osg-users] VRML Normals

2008-05-14 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert Osfield wrote: Hi Ben, The answer to the question Has this bug been fixed in version 2.4 can be found by browsing the SVN repository online:

Re: [osg-users] osgWidget 0.1.8 (pre-merge)

2008-05-14 Thread Robert Osfield
Hi Thibault, On Wed, May 14, 2008 at 4:02 PM, Thibault Genessay [EMAIL PROTECTED] wrote: I really don't know why it is this way - I had actually never noticed that ref_ptr had this feature. It makes more sense to me how the observer_ptr is implemented because ref_ptr and observer_ptr are just

Re: [osg-users] osgWidget 0.1.8 (pre-merge)

2008-05-14 Thread Thibault Genessay
Hi Robert, Jeremy Okay I have spotted the alien and the FBI. I was using 2.3.4 and updated to 2.4 - how I could forget that the version of the OSG I was using was something to investigate is beyond me. The observer_ptr is now defined correctly and all my errors automagically went away. I am sorry

Re: [osg-users] DelaunayTriangulator's Input Point Array

2008-05-14 Thread Argentieri, John-P63223
All, The Delaunay triangulator still causes VS 2005's debugger to complain if my VS 2003 DLL that uses it is built in DEBUG and native code debugging is enabled for my 2005 app. I'm crossing over runtimes because of legacy code that I must mesh with. John -Original Message- From: [EMAIL

[osg-users] osgPPU v0.2

2008-05-14 Thread Art Tevs
Hi folks, I am gladly to inform you that I have tagged the v0.2 of the osgPPU library. The list of all changes since the last tagged version is long. The main new features are: - Unit derived from osg::Node to allow simple graph structure to create new unit pipelines - Cycles in the graph are

[osg-users] Rendering to a image file (taking a screenshot)

2008-05-14 Thread Galen Faidley
Hello All, I am updating an application from osgProducer to osgViewer. The last bit of functionality I need to replicate is taking a screenshot. I used osgProducer::Viewer::setWriteImageWhenDone in the past and was wondering if there was a replacement for it. I searched the archives but didn't

Re: [osg-users] spot_gold_cylinder silliness

2008-05-14 Thread Mike Weiblen
My goal to make a URL to a .osg file directly viewable by clicking on the link in a browser. I want to automatically run osgviewer if given a URL eg http://mew.cx/testing/spot_gold_cylinder.osg But so far I haven't managed to coax firefox to do that, still investigating. kitco was just a

Re: [osg-users] Rendering to a image file (taking a screenshot)

2008-05-14 Thread Arne Kreutzmann
Hi, osg::ref_ptrosg::Image image = new osg::Image; image-readPixels(_x,_y,_width,_height, GL_RGB,GL_UNSIGNED_BYTE); osgDB::writeImageFile(*image,_filename); you could add that piece to a osgGA::GUIEventHandler so that it take the snapshot on a key press. Hope this helps. Regards

Re: [osg-users] Rendering to a image file (taking a screenshot)

2008-05-14 Thread Robert Osfield
Hi Galen and Arne, On Wed, May 14, 2008 at 7:32 PM, Arne Kreutzmann [EMAIL PROTECTED] wrote: osg::ref_ptrosg::Image image = new osg::Image; image-readPixels(_x,_y,_width,_height, GL_RGB,GL_UNSIGNED_BYTE); osgDB::writeImageFile(*image,_filename); you could add that piece to a

Re: [osg-users] GeoTIFF dem coordinate system?

2008-05-14 Thread Linh Phan
Hi Robert, In VPB there isn't any support for substituting a custom value for NoDataValue elements, this could be added though. That would be great if you can added to VPB. Please let me know when you have it in so I can test it. :) Thanks Robert. FYI, I'm now back working on VPB for

Re: [osg-users] Rendering to a image file (taking a screenshot)

2008-05-14 Thread Jean-Sébastien Guay
Hi Robert, My plan is to add an EventHandler to do screen snapshots and provide this along with the osgViewer::ViewEventHandlers family of handlers, its just time and a overflowing todo list has prevented me from tackling it. Others are welcome to dive in and add it :-) I'll do it, I'll do

Re: [osg-users] osgPPU v0.2

2008-05-14 Thread Bob Huebert
Hi Brian, I had this exact error and resolved it by upgrading to the latest cmake. -bob On Wed, 14 May 2008, Brian R Hill wrote: Art, I'm getting the following error running CMake 2.6: CMake Error at example/hdr/CMakeLists.txt:16(LINK_INTERNAL):Unknown CMake command LINK_INTERNAL Any

Re: [osg-users] osgPPU v0.2

2008-05-14 Thread Art Tevs
Hi Brian, hmm, actually the LINK_INTERNAL is a CMake macro, which is defined in the CMakeModules/OsgPPUMacroUtils.cmake The same macro is also defined in the osg cmake files. Hence if your cmake version don't blame osg compilation, then it also shouldn't blame osgppu on this part ;) Are

Re: [osg-users] pagedLOD question

2008-05-14 Thread Brett Wiesner
Brett, PagedLod is similar to ProxyNode in that you can set the filenames for the child nodes and they will be loaded as needed, but it has added support for unloading them, too. So how should someone construct this scenegraph: Group PagedLOD child 0 - local tile geometry

Re: [osg-users] pagedLOD question

2008-05-14 Thread Thrall, Bryan
Brett Wiesner wrote on Wednesday, May 14, 2008 4:02 PM: So how should someone construct this scenegraph: Group PagedLOD child 0 - local tile geometry at low resolution child 1 - external file reference PagedLOD child 0 - local tile geometry at low

[osg-users] TriangleMesh color

2008-05-14 Thread Ben Axelrod
Hi, I am trying to use a triangle mesh. And for some reason, it always shows up black. Here is a snipit of code: osg::ref_ptrosg::Geode _geode; _geode = new osg::Geode(); osg::ref_ptrosg::TriangleMesh _trimesh; _trimesh = new osg::TriangleMesh(); osg::ref_ptrosg::ShapeDrawable

Re: [osg-users] How to document osgShadow?

2008-05-14 Thread Wojciech Lewandowski
Ben, I promised to answer some of your questions today. Some time ago I was studying SoftShadowMap code and I had the feeling that I understood it. But today when I tried to look at this again to find the answers for your questions about jitter scale and softness width I realized I am not so sure

[osg-users] osgShadow, node traversal, and node mask

2008-05-14 Thread Ben Discoe
There's something i'm not understanding about osgShadow, and it's probably a basic behavior of OSG. So, the simple question first: The default node mask for all nodes is 0x. It i set the mask to 0, then the node (and its children) is not drawn. If i set the mask to some other value, then

Re: [osg-users] osgShadow, node traversal, and node mask

2008-05-14 Thread Gordon Tomlinson
Hi Ben I can answer the Node Mask See http://www.vis-sim.com/imgdp/vp_rendermasks_01.jpg http://www.vis-sim.com/imgdp/vp_rendermasks_01a.jpg These were part of the Vega/Vega Prime course I used to teach, they explain how masks work , the difference for Vega/Vega Prime/Performer is they had 3