Re: [osg-users] Writing to an image file

2009-06-05 Thread Ulrich Hertlein
Hi Amanda, On 26/5/09 5:39 PM, Amanda Henn wrote: I am very new to computer graphics and OSG/OpenGL. I need to figure out how to write a simple textured rectangle to a .tif file. I've found many examples of this but some are so complicated I can't understand them. What do you mean by

Re: [osg-users] master/slave camera question

2009-06-05 Thread Robert Osfield
Hi Wyatt, On Thu, Jun 4, 2009 at 6:31 PM, Wyatt Earpwyattbsearp1...@gmail.com wrote: Ok.  Thanks.  Not sure I understand the concept of cameras and master/slave stuff as well as I should...  I searched the forum and mailing list archives, but didn't come up with anything yet, but then again,

Re: [osg-users] Wiki spammer

2009-06-05 Thread Hans Elbers
Maybe it is possible to complain at amazon.com where their online shop is located? That would spoil their fun (and profit). Hans. On Fri, 2009-06-05 at 08:13 +, Roland Smeenk wrote: Does anybody know if Jose Luis is available for banning Wiki accounts? ProLan and TaxAudit keep spamming

Re: [osg-users] Database pager questions

2009-06-05 Thread Robert Osfield
HI Bret, On Thu, Jun 4, 2009 at 6:18 PM, brettwiesnerbrettwies...@gmail.com wrote: Hi, Just validating some assumptions about the database pager... 1) Is paging in single threaded mode blocking? If OSG is in single threaded mode, will the pager load data and stop rendering or will it load in

Re: [osg-users] build errors with 2.8.1

2009-06-05 Thread Robert Osfield
Hi Paul, On Thu, Jun 4, 2009 at 8:11 PM, Paul Melisosg-us...@assumetheposition.nl wrote: First, try this: In applications/osgversion/CMakeLists.txt change ENDIF() to ENDIF(OSG_MAINTAINER) That line looks fishy. Cmake used to require the the IF() ENDIF() matched but this requirement was

Re: [osg-users] build errors with 2.8.1

2009-06-05 Thread Robert Osfield
Hi John. These aren't errors in the OSG's build, but in the 3rd party library (ITK) that it's pulliing in. I am very surprised that errors are popping up. Try reducing the verbosity of OSG warning dectition by setting OSG_USE_AGGRESSIVE_WARNINGS to OFF using ccmake make. The other option

Re: [osg-users] Examples and multiple monitors on Mac OS X

2009-06-05 Thread Robert Osfield
Hi Brent, The OSG by default will query all the available displays and open up viewer across all these displays. The OSG is a real-time graphics, multi-thread, multi-context API that just loves to run to it's full capacity :-) You can customize how the examples run by either using the --window

Re: [osg-users] [VirtualPlanetBuilder]How to apply side texture to the escarpment?

2009-06-05 Thread Robert Osfield
Hi Xuex Chen, I'm afraid I don't understand the issue that you have. VPB can deal with datasets in different projections by coordinate systems them all into the same coordinate system that the final database will end up in, as long as your data has all the correct coordinate system info embedded

Re: [osg-users] Destruction order for static objects

2009-06-05 Thread Robert Osfield
Hi Fredrik, Thanks for the link, the suggestion of depends_on does look to be a good thing in our context, it will break the ABI though so it's not an approach we could use in the OSG-2.8 branch. Your suggestion of an explictly initializer in singleton implementation would be less elegant but

Re: [osg-users] Destruction order for static objects

2009-06-05 Thread Robert Osfield
Hi Fredrik, I've got the following to compile, could you test it out at your end. This code is all the .cpp right now so doesn't affect the ABI so could be rolled into the 2.8 branch. I've also attached the the whole RenderBin.cpp, but this is based on svn/trunk. I this is successful at

[osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-06-05 Thread Andrew Thompson
Hi there, This is the first time I've posted on these boards, I wonder if any of you guys can help me out? I am developing a CAD application that uses OpenSceneGraph and I need to implement custom serialization of the CAD data to/from disk. This requires saving individual nodes and their

Re: [osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-06-05 Thread Andrew Thompson
... To add to the above, I just noticed osg::ReaderWriter::writeNode has an overload accepting a std::ostream I imagine this is what I'm looking for - the ability to read and write nodes to a memory stream. Does anyone have any experience this this overload and can offer comment on it?

Re: [osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-06-05 Thread Robert Osfield
Hi Andrew, If you don't have any custom nodes then you could use the .ive format, and use the .ive plugins support istream/ostreams. osgDB::ReaderWriter* writer = osgDB::Registry::instance()-getReaderWriterForExtension(ive); if(writer) { std::stringstream

Re: [osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-06-05 Thread Andrew Thompson
Hi Robert, Thank you for your reply. Some quick questions for you - By custom nodes do you mean my own classes inheriting a node? If so, no I don't have these. I am creating geometry inside Geode's in code, but the structure is very simple. As for the .ive format, I'll do a bit of googling

Re: [osg-users] Serializing / Deserializing an osg::Node to memory pointer

2009-06-05 Thread Robert Osfield
Hi Andy, It does sounds like .ive should foot the bill for you as your just using standard OSG classes. Robert. On Fri, Jun 5, 2009 at 12:45 PM, Andrew Thompsonandyb1...@yahoo.co.uk wrote: Hi Robert, Thank you for your reply. Some quick questions for you - By custom nodes do you mean my

Re: [osg-users] Database pager questions

2009-06-05 Thread brettwiesner
Thanks! Robert Osfield wrote: HI Bret, On Thu, Jun 4, 2009 at 6:18 PM, brettwiesnerbrettwies...@gmail.com wrote: Hi, Just validating some assumptions about the database pager... 1) Is paging in single threaded mode blocking? If OSG is in single threaded mode, will the pager load data and

[osg-users] Xcode project issues

2009-06-05 Thread Brent Gulanowski
Hi, This is moved from the submissions forum/list. Forgive the mispost there. Building the source from Xcode using the Xcode project file included in the 2.8.1 distribution download, and encountered some issues. Not using cmake (which is unfamiliar to me). Notice that the Xcode build

Re: [osg-users] Transparency Issues

2009-06-05 Thread Robert Osfield
Hi Todd, I can't say why your are having problems with transparency in 2.8.1 vs 2.4, as depth sorted/transparent bin hasn't changed between these versions. Perhaps a subtle difference in the loader has caused the difference, or perhaps there is something undefined in your data that the two

Re: [osg-users] Xcode project issues

2009-06-05 Thread Robert Osfield
Hi Brent, I'm not a OSX users, but do occasionally compile up on OSX machines (mostly remote login) and always use cmake and Makefiles so can't comment too specifically on XCode projects as I never use these. You can generate XCode projects from CMake, but haven't tried this, the Cmake generated

Re: [osg-users] Xcode project issues

2009-06-05 Thread Frank van Meurs
Hi Brent, Robert, I've tried compiling OSG on my own Mac a while ago, using the provided XCode project. In short, it turned out that there were quite a few remnants of Stephan's personal configuration strewn about the project. I can imagine this happening, as there's quite a lot of places

Re: [osg-users] Xcode project issues

2009-06-05 Thread Großer Martin
hello, the matrix manipulator from osg::GA has the method home(double). I use this method to change the position of the camera to the new home position. But I don't know what the double parameter represent? Cheers, Martin ___ osg-users mailing list

Re: [osg-users] Xcode project issues

2009-06-05 Thread Robert Osfield
Hi Martin, Could you please use a new thread to ask a new question, I won't answer this question here as this thread is about XCode projects, you'll need to report your question under an appropriate heading. Robert. 2009/6/5 Großer Martin grosser.mar...@gmx.de: hello, the matrix manipulator

Re: [osg-users] add/remove camera crash

2009-06-05 Thread Robert Osfield
Hi Mathias, 2009/6/3 Mathias Fröhlich m.froehl...@science-computing.de: The least intrusive one is the following: Have a vector of ref_ptr's in the cull visitor where the render stages and render leaf lists are held. This list is filled by the cull visitor and relesed in the cull visitors

[osg-users] Putting text on top of a static background

2009-06-05 Thread Cory Riddell
I thought this would be easy, but 1/2 day later and I'm still stuck. I'm using a technique similar to the osgHUD example to replace my window background with a gradient fill. Now I want to be able to put some text in the background too. At first, I thought I wasn't getting any text at all, then I

Re: [osg-users] parameter of method home() from MatrixManipulator

2009-06-05 Thread Robert Osfield
Hi Martin, I could recall the answer off the top of my head so I had to look at the source code and it said... virtual void home(double /*currentTime*/) {} So the double is the current frame time. Robert. 2009/6/5 Großer Martin grosser.mar...@gmx.de: hello, I'am so sorry, the

Re: [osg-users] [3rdparty] osgART install

2009-06-05 Thread Alena Bacova
Hi, have a look at this: http://old.uvr.gist.ac.kr/isuvr08/program.html#osgART_Tutorial there are 4pdf, going from basics to advanced, and also shows how to deal with cmake. Alena. 2009/6/4 Karl Butler direc...@kangoo.co.nz Never mind I just realised the file within the zip that has no

Re: [osg-users] [VirtualPlanetBuilder]How to apply side texture to the escarpment?

2009-06-05 Thread Chris 'Xenon' Hanson
Robert Osfield wrote: Hi Xuex Chen, I'm afraid I don't understand the issue that you have. VPB can deal with datasets in different projections by coordinate systems them all into the same coordinate system that the final database will end up in, as long as your data has all the correct

Re: [osg-users] Xcode project issues

2009-06-05 Thread Brent Gulanowski
robertosfield wrote: Hi Brent, I'm not a OSX users, but do occasionally compile up on OSX machines (mostly remote login) and always use cmake and Makefiles so can't comment too specifically on XCode projects as I never use these. You can generate XCode projects from CMake, but haven't

Re: [osg-users] parameter of method home() from MatrixManipulator

2009-06-05 Thread Großer Martin
Hi Robert, i found this code line, too. But it is a virtal method with empty method body. Now I use the TrackballManipulator and it does't override the method home(double). But it works fine. But I don't know why. Here a part of my code: // set new home position

[osg-users] How to get PEN events?

2009-06-05 Thread Butler, Lee Mr CIV USA USAMC
Can anyone give me pointers on using the Wacom pen in OSG under linux? I've got the tablet working fine with GIMP, so I think it's installed properly. I never see any PEN_* events in my application. My application has an event handler that does: bool MyHandler::handle(const

Re: [osg-users] Xcode project issues

2009-06-05 Thread Robert Osfield
HI Brent, On Fri, Jun 5, 2009 at 3:46 PM, Brent Gulanowskibgulanow...@marketcircle.com wrote: I see. However, it seems counter-intuitive to me to use an automated tool to generate project files meant primarily to be read and processed by Xcode, for human users. Why not just generate build

Re: [osg-users] parameter of method home() from MatrixManipulator

2009-06-05 Thread Robert Osfield
viewer.home(); 2009/6/5 Großer Martin grosser.mar...@gmx.de: Hi Robert, i found this code line, too. But it is a virtal method with empty method body. Now I use the TrackballManipulator and it does't override the method home(double). But it works fine. But I don't know why. Here a part of

[osg-users] change the current state set in real time for a multipass renderer

2009-06-05 Thread Sebastien Nerig
Hi all, Is there a way to change the current state set in real time ? I am actually working on a multi pass render scene which contains one geode. on the 1st pass, I would like to have a specific state set for my geode, and on the 2nd pass, I would like to set another state set for my geode.

Re: [osg-users] Xcode project issues

2009-06-05 Thread Stephan Maximilian Huber
Hi Brent, Brent Gulanowski schrieb: This is moved from the submissions forum/list. Forgive the mispost there. Building the source from Xcode using the Xcode project file included in the 2.8.1 distribution download, and encountered some issues. Not using cmake (which is unfamiliar to me).

Re: [osg-users] Xcode project issues

2009-06-05 Thread Stephan Maximilian Huber
Hi Frank, Frank van Meurs schrieb: Hi Brent, Robert, I've tried compiling OSG on my own Mac a while ago, using the provided XCode project. In short, it turned out that there were quite a few remnants of Stephan's personal configuration strewn about the project. I can imagine this

Re: [osg-users] change the current state set in real time for a multipass renderer

2009-06-05 Thread Robert Osfield
Hi Seb, Do multipass you simple add your subgraph into the overall scene graph multiple times and on each branch your assign a StateSet that sets the rendering details that you want for that pass. The OSG's ability to support multiple parents for for nodes to have their own StateSet make it

Re: [osg-users] [VirtualPlanetBuilder]How to apply side texture tothe escarpment?

2009-06-05 Thread wind
Hi, Robert, sorry for misleading you. Thanks for Chris 'Xenon' Hanson's great translation. To represent the steep cliff accurately, both height data and image are at a diagonal angle. If the data are stored on a horizontal plane, the steep's image will be stretched evidently . If

Re: [osg-users] Xcode project issues

2009-06-05 Thread Stephan Maximilian Huber
Hi Brent, Brent Gulanowski schrieb: robertosfield wrote: Hi Brent, I'm not a OSX users, but do occasionally compile up on OSX machines (mostly remote login) and always use cmake and Makefiles so can't comment too specifically on XCode projects as I never use these. You can generate

Re: [osg-users] How to get PEN events?

2009-06-05 Thread Stephan Maximilian Huber
Hi, Butler, Lee Mr CIV USA USAMC schrieb: Can anyone give me pointers on using the Wacom pen in OSG under linux? I've got the tablet working fine with GIMP, so I think it's installed properly. I never see any PEN_* events in my application. IMHO pen-support is os x(!) / win(?) only. But

Re: [osg-users] CPU usage

2009-06-05 Thread Florian Winter
Hi, Sorry for reusing this old thread. It seems that nobody has found a solution for the problem yet that also works for me. When running osgviewer cow.osg on a dual-core PC, I get a CPU usage of 50%, which indicates that one core is used at 100%. System: ATI Mobility Radeon HD 2400 Windows XP

Re: [osg-users] Putting text on top of a static background

2009-06-05 Thread Cory Riddell
I wrote the background scene to an osg file and the viewer displays it correctly. So now I know the problem must be with my camera settings or something else external to the scene. Any suggestions? Cory Cory Riddell wrote: I thought this would be easy, but 1/2 day later and I'm still stuck.

Re: [osg-users] CPU usage

2009-06-05 Thread Cory Riddell
Out of curiosity, do you get similar frame rates on the two systems? Are the other stats similar? I had asked about this one time and in the end I decided that it was using 100% of one core intentionally. The run loop is not throttled in any way, and so I think it will use as much cpu as it can.

Re: [osg-users] [VirtualPlanetBuilder]How to apply side texture to the escarpment?

2009-06-05 Thread Paul Martz
It sounds to me like some of his data is on an off-nadir axis, IE, not shot straight down but rather at a diagonal angle in order to better capture the imagery and relief of steep cliff-like areas. Is this correct? If so, then I have two comments. 1) A heightfield is, well, a

Re: [osg-users] Xcode project issues

2009-06-05 Thread Frank van Meurs
Stephan Maximilian Huber wrote: Hi Frank, Frank van Meurs schrieb: Hi Brent, Robert, I've tried compiling OSG on my own Mac a while ago, using the provided XCode project. In short, it turned out that there were quite a few remnants of Stephan's personal configuration strewn about the project.

Re: [osg-users] build errors with 2.8.1

2009-06-05 Thread John Kelso
Hi, I'm a bit surprised by this because as far as I know we have a fairly recent version of Centos. Are there no other Centos users out there trying 2.8.1? cat /etc/redhat-release CentOS release 5.3 (Final) which incudes this version of cmake: rpm -q cmake cmake-2.4.8-3.el5.i386 Is

Re: [osg-users] build errors with 2.8.1

2009-06-05 Thread Philip Lowman
On Fri, Jun 5, 2009 at 4:36 AM, Robert Osfield robert.osfi...@gmail.comwrote: Hi Paul, On Thu, Jun 4, 2009 at 8:11 PM, Paul Melisosg-us...@assumetheposition.nl wrote: First, try this: In applications/osgversion/CMakeLists.txt change ENDIF() to ENDIF(OSG_MAINTAINER) That line looks

Re: [osg-users] build errors with 2.8.1

2009-06-05 Thread Philip Lowman
On Fri, Jun 5, 2009 at 11:38 AM, John Kelso ke...@nist.gov wrote: Hi, I'm a bit surprised by this because as far as I know we have a fairly recent version of Centos. Are there no other Centos users out there trying 2.8.1? cat /etc/redhat-release CentOS release 5.3 (Final) which

Re: [osg-users] KD tree, OSG 2.6.1, OSG 2.81 and osgExp

2009-06-05 Thread Robert Osfield
HI Vincent, What you are doing should be OK, but I can't see that anyone can help point to what the problem without you providing at least a stack trace, and ideally a test model to look at. Robert. On Fri, Jun 5, 2009 at 5:06 PM, Vincent Bourdiervincent.bourd...@gmail.com wrote: Hi all,

Re: [osg-users] build errors with 2.8.1

2009-06-05 Thread John Kelso
Below is from our sysadmin when I asked him about getting a newer version cmake. Any comments, anyone? Can we really be the only site having this problem? Thanks again, John -- Forwarded message -- We're using a current version of the most recent, one of the most popular

Re: [osg-users] CPU usage

2009-06-05 Thread Jason Daly
Cory Riddell wrote: I had asked about this one time and in the end I decided that it was using 100% of one core intentionally. The run loop is not throttled in any way, and so I think it will use as much cpu as it can. Perhaps the nVidia system is better at offloading working or blocks the CPU

Re: [osg-users] Putting text on top of a static background

2009-06-05 Thread Jason Daly
Cory Riddell wrote: I wrote the background scene to an osg file and the viewer displays it correctly. So now I know the problem must be with my camera settings or something else external to the scene. Any suggestions? Try putting the text in a different render bin, with a higher number

Re: [osg-users] build errors with 2.8.1

2009-06-05 Thread Jason Daly
John Kelso wrote: Hi, I'm a bit surprised by this because as far as I know we have a fairly recent version of Centos. Are there no other Centos users out there trying 2.8.1? We're using RHEL 5, but we haven't tried 2.8.1 yet (2.8.0 is meeting our needs for now). Is cmake-2.4.8 really

Re: [osg-users] build errors with 2.8.1

2009-06-05 Thread Jason Daly
John Kelso wrote: Below is from our sysadmin when I asked him about getting a newer version cmake. Any comments, anyone? I've seen several instances of the typical OSS bigger, better, faster mentality clashing with the if it ain't broke, don't fix it mentality of the enterprise distros.

Re: [osg-users] build errors with 2.8.1

2009-06-05 Thread Robert Osfield
Hi John and Jason, Can we get a little perspective on this issue. The build problem was a warning that we've already fixed in OSG-2.8 branch. As for snooty admin's, best to leave them alone if helping you out is too much for them. The warning that occurred in OSG-2.8.1 because of something I

Re: [osg-users] add/remove camera crash

2009-06-05 Thread Robert Osfield
HI Mathias Guy, On Fri, Jun 5, 2009 at 2:58 PM, Robert Osfieldrobert.osfi...@gmail.com wrote: What we need is draw traversal itself to take a reference in some way that it releases it at the end of the frame. I have just checked into svn/trunk a solution that is only active when we use

Re: [osg-users] Putting text on top of a static background

2009-06-05 Thread Cory Riddell
Jason, Jason Daly wrote: Cory Riddell wrote: I wrote the background scene to an osg file and the viewer displays it correctly. So now I know the problem must be with my camera settings or something else external to the scene. Any suggestions? Try putting the text in a different render

Re: [osg-users] CPU usage

2009-06-05 Thread Cory Riddell
Does anybody see less than 100% CPU utilization when running osgviewer cow.osg on an ATI card? I had just been accepting that as normal. Cory Jason Daly wrote: Cory Riddell wrote: I had asked about this one time and in the end I decided that it was using 100% of one core intentionally. The

[osg-users] Image::getColor

2009-06-05 Thread Guy Volckaert
Hi, One of our developers noticed that the Image::getColor(const Vec3) can potentially crash if the UV coordinates are negative. Effectively, the following function convert UV coordinates into S,T pixel coordinates and then calls getColor(unsigned, unsigned, unsigned). Since the latter uses

Re: [osg-users] Transparency Issues

2009-06-05 Thread Todd J. Furlong
Robert, Thank you for the suggestions. I didn't see a big difference in the OSG files, but I did find the cause: operator error. In the script that runs the 2.8-1 application, we were enabling two-sided lighting. So, now my question is: how do I fix transparency when two-sided lighting is

[osg-users] OSG books now on Amazon marketplace

2009-06-05 Thread Paul Martz
Hi all -- Just FYI... Lulu has arranged with Amazon to have the OSG books listed, using their marketplace reseller listing. This means you can now order OSG books by going to amazon.com and searching for OpenSceneGraph. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com

Re: [osg-users] Transparency Issues

2009-06-05 Thread Paul Martz
Todd -- two-sided lighting and alpha blending are two completely separate and orthogonal OpenGL state items. They work together. One does not disable the other. (Note that if you're rendering, say, a tri strip that is transparent, and it wraps around so that a single strip shows both back and

[osg-users] Problems with binaries

2009-06-05 Thread Christian Kramer
Hi, i'm completely new to the OSG scene and have to write a small scenegraph in case of a cpp lecture. I've tried to install the OSG libs by this tutorial (http://dwightdesign.com/2009/05/installing-openscenegraph-280/) but when i try something like osgviewer cow.osg i always get Code:

Re: [osg-users] build errors with 2.8.1

2009-06-05 Thread John Kelso
Hi! I missed the earlier note about the cmake problem being fixed in the branch. Sorry to make noise about a fixed problem. I do test (and squawk) when I can, but as we all know, life sometimes has other plans. I installed DCMTK in a local directory, and just tried to rebuild 2.8.1 in a clean

Re: [osg-users] Problems with binaries

2009-06-05 Thread Anna Sokol
Hi Chris, Instead of the link provided in the tutorial download the following binaries instead: http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-2.8.1/binaries/Windows/VisualStudio8/openscenegraph-all-2.8.1-win32-x86-vc80sp1-Release.zip - Anna

[osg-users] Camera view volume visualization

2009-06-05 Thread Johannes Schüth
Hi, i want to create a visualization of the view volume of a camera. I created a test application with two views and two cameras. I want to use one view to take a look at the created volume. This is what i did so far: I created an osgGA::TrackballManipulator() and assigned it to the camera

Re: [osg-users] Camera view volume visualization

2009-06-05 Thread Paul Martz
Have you taken a look at the osgthirdpersonview example? Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] build errors with 2.8.1

2009-06-05 Thread Jason Daly
Hi, Robert, Robert Osfield wrote: Hi John and Jason, Can we get a little perspective on this issue. The build problem was a warning that we've already fixed in OSG-2.8 branch. As for snooty admin's, best to leave them alone if helping you out is too much for them. There's no loss of

Re: [osg-users] Camera view volume visualization

2009-06-05 Thread Johannes Schüth
Hi, nope. Thank you very much. That was exactly what i wanted to achieve. Nice example. Thank you! Greetings, Johannes -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13631#13631 ___ osg-users

Re: [osg-users] Destruction order for static objects

2009-06-05 Thread Fredrik Orderud
I have now checked out and built the current OSG trunk, and can report that statically built OSG now terminates properly without any errors in both debug and release. Thank you very much for your help. :-) Your RenderBin_195.cpp hotfix, however, causes an compile error when incorporating it

Re: [osg-users] Xcode project issues

2009-06-05 Thread Brent Gulanowski
robertosfield wrote: HI Brent, On Fri, Jun 5, 2009 at 3:46 PM, Brent Gulanowski wrote: I see. However, it seems counter-intuitive to me to use an automated tool to generate project files meant primarily to be read and processed by Xcode, for human users. Why not just generate build

Re: [osg-users] Wiki spammer

2009-06-05 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hans Elbers wrote: Maybe it is possible to complain at amazon.com where their online shop is located? That would spoil their fun (and profit). Hans. Yes, I think this is a good idea - these are pretty clueless spammers, not the usual