Re: [osg-users] Write osg::Image to stringstream as jpg or png

2010-09-17 Thread Jon Robison
Hi, You probably figured this out, but outstanding issues on forums bug me, and this will help others. When you open fout, you want to denote it as binary output. So something like this should fix it: Code: std::ofstream fout(new.jpg, ios::binary); Cheers, Jon -- Read

Re: [osg-users] Replacing a node on the fly (same issue, new thread)

2010-09-17 Thread Werner Modenbach
Hi! You are right, the changes are minor and I'll follow your suggestion. Thanks. - Werner - On Thursday 16 September 2010 17:53:41 Jean-Sébastien Guay wrote: Hi Werner, The changes are to complex to be visualized by using the old Geode and doing transforms and vertex manipulations.

[osg-users] I make an OSG activex used in IE brower , IE crashes when I ....

2010-09-17 Thread Licheng Zhang
Hi, I make an OSG activex used in IE brower , IE crashes when I push the refresh button for about 12 times I need help. I meet the same problem shown in http://forum.openscenegraph.org/viewtopic.php?t=4527 But the IE crash even if I load a simple osg file,such as cow.osg. And the brower

Re: [osg-users] Vec4f::asABGR - backwards?

2010-09-17 Thread Robert Osfield
Hi Glenn, On Thu, Sep 16, 2010 at 7:53 PM, Glenn Waldron gwald...@gmail.com wrote: Hi folks, Tthe methods Vec4f::asABGR() and asRGBA() appear to be reversed. (That is, asABGR() returns RGBA and vice-versa.) Can someone lay another pair of eyes on them and confirm this? They appear reversed

Re: [osg-users] Blending Multiple Texture on one triangle mesh with coordinate control

2010-09-17 Thread Alberto Luaces
Brian Tse writes: Currently, I build a triangle mesh in osg (eg. triangle mesh is a teddy bear model) I want to implement 2 texture (eg. hair.jpg and skin.jpg) Is there a way i can blend 2 texture together on one single triangle mesh? (eg. hair.jpg showing on one side of the teddy bear

[osg-users] Including osgAnimation/EaseMotion

2010-09-17 Thread Thomas Hogarth
Hi All I have a problem witth the EaseMotion header from osgAnimation. I've been using it in some projects no problem, but it seems sometimes I can't get it to compile unless I find the perfect place to include it (normally the absolute first include) When I compile I get the following errors

Re: [osg-users] Keypress broken since rev 11749

2010-09-17 Thread Robert Osfield
HI Brad, JS, Vivien and Nick, I'm not clear on what solution should be used going forward. The GraphicsWindowWin32.cpp code had been in play for a few years without problems being reported on this topic and to get a report or new problem after merging Vivien's changes make me concerned that we

Re: [osg-users] Including osgAnimation/EaseMotion

2010-09-17 Thread Robert Osfield
Hi Tom, Is this an include ordering issue? Is some other header doing a #define of PI that is introducing problems? Robert. On Fri, Sep 17, 2010 at 10:58 AM, Thomas Hogarth thomas.hoga...@googlemail.com wrote: Hi All I have a problem witth the EaseMotion header from osgAnimation. I've been

Re: [osg-users] Vertex visualized problem, processed via shader.

2010-09-17 Thread Aitor Ardanza
Hi, Well, this is the problem: [Image: http://img137.imageshack.us/img137/7447/arm2a.jpg ] I think that can be drawn distances from the camera? How can I change this? Thank you! Cheers, Aitor -- Read this topic online here:

Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3

2010-09-17 Thread Gianni Ambrosio
robertosfield wrote: I don't know what the cause might be, but the strack trace points to src/osgPlugins/ive/Image.cpp and DataInputStream.cpp so have a look at any differences 2.8.2 and 2.8.3 in these files. Really strange, I can't get the point. The src/osgPlugins/ive dirs match

Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3

2010-09-17 Thread Robert Osfield
Hi Gianni, On Fri, Sep 17, 2010 at 11:38 AM, Gianni Ambrosio ga...@vi-grade.com wrote: robertosfield wrote: I don't know what the cause might be, but the strack trace points to src/osgPlugins/ive/Image.cpp and DataInputStream.cpp so have a look at any differences 2.8.2 and 2.8.3 in these

Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3

2010-09-17 Thread Robert Osfield
Hi Gianni, On Fri, Sep 17, 2010 at 11:59 AM, Robert Osfield robert.osfi...@gmail.com wrote: One test you could do is to use OSG-2.8.2 to load the .ive files and then write them out to .osg, then read the .osg files in 2.8.3 and then write it back out to a new .ive files, then attempt to read

Re: [osg-users] Keypress broken since rev 11749

2010-09-17 Thread Vivien Delage
Hi Robert, I would agree with revert the code for now if it causes trouble. I think handling it on the GUIEventAdapter would indeed solve the problem. Here is a possible solution: - add a new EventType in GUIEventAdapter. It could be called KEYENTERED. This event would return the translated

Re: [osg-users] Vec4f::asABGR - backwards?

2010-09-17 Thread Glenn Waldron
On Fri, Sep 17, 2010 at 4:03 AM, Robert Osfield robert.osfi...@gmail.comwrote: Hi Glenn, On Thu, Sep 16, 2010 at 7:53 PM, Glenn Waldron gwald...@gmail.com wrote: Hi folks, Tthe methods Vec4f::asABGR() and asRGBA() appear to be reversed. (That is, asABGR() returns RGBA and vice-versa.)

Re: [osg-users] Keypress broken since rev 11749

2010-09-17 Thread Robert Osfield
HI Vivien, The OSG already passes back translated keys, or at least that's the current intention. Having some keyboard events pass by translated, and other events pass back untranslated key is a recipe for confusion. It would also complicate user code substantially as event handlers would need

Re: [osg-users] Including osgAnimation/EaseMotion

2010-09-17 Thread Thomas Hogarth
Never mind, me being an idiot, I had a #define PI laying around elsewhere in my code. Cheers Tom On 17 September 2010 10:58, Thomas Hogarth thomas.hoga...@googlemail.comwrote: Hi All I have a problem witth the EaseMotion header from osgAnimation. I've been using it in some projects no

Re: [osg-users] Vec4f::asABGR - backwards?

2010-09-17 Thread Robert Osfield
HI Glenn, On Fri, Sep 17, 2010 at 1:00 PM, Glenn Waldron gwald...@gmail.com wrote: No problem, just investigating. One of my customers stores color data in 32-bit ABGR. He is porting code to OSG, came across these methods, and was confused since they appear to be swapped (based on the method

Re: [osg-users] Including osgAnimation/EaseMotion

2010-09-17 Thread Thomas Hogarth
Hi Robert Is this an include ordering issue? Is some other header doing a #define of PI that is introducing problems? Yeah it was, thanks for the help though. Boy do I feel amateurish now :) Tom On 17 September 2010 10:58, Thomas Hogarth thomas.hoga...@googlemail.comwrote: Hi All I have

Re: [osg-users] Keypress broken since rev 11749

2010-09-17 Thread Robert Osfield
Hi All, I have now revert Vivien's changes for the 2.9.9 as I don't want to risk regressions. I see this as an open topic still though, the problem that Vivien's was tackling still needs addressing. I'm no Windows hack so I'll half to defer to members of the community to work out a viable

Re: [osg-users] Vec4f::asABGR - backwards?

2010-09-17 Thread Glenn Waldron
On Fri, Sep 17, 2010 at 9:01 AM, Robert Osfield robert.osfi...@gmail.comwrote: HI Glenn, On Fri, Sep 17, 2010 at 1:00 PM, Glenn Waldron gwald...@gmail.com wrote: No problem, just investigating. One of my customers stores color data in 32-bit ABGR. He is porting code to OSG, came across

Re: [osg-users] Keypress broken since rev 11749

2010-09-17 Thread Jean-Sébastien Guay
Hi Robert, I'm not clear on what solution should be used going forward. The GraphicsWindowWin32.cpp code had been in play for a few years without problems being reported on this topic and to get a report or new problem after merging Vivien's changes make me concerned that we may have broken

Re: [osg-users] Keypress broken since rev 11749

2010-09-17 Thread Trajce (Nick) Nikolov
Hi, the code from 11749 works just great with the latest osgviewerMFC. If this revision fixes issues for Vivien, I would put again his changes, there are no regression. I just give it a shot to make sure it does work. I think Brad can really rely on this example as a guide how to implement his

[osg-users] Select nodes at writing

2010-09-17 Thread Linares Antonin
Hello osg-users, I'm building some kind of scene editor (place objects on a terrain database, set their properties ...). Now i want to save the scene in a file (osg, ive, ac...) but there are a lots of node of in my graph that i don't need in the final file (manipulators, labels, highlights

Re: [osg-users] Keypress broken since rev 11749

2010-09-17 Thread Robert Osfield
Hi Vivien, JS, Nick et.al, I'm not really happy with the technique that Vivien took, eating a key down till a WM_CHAR occurs then dispatching one seems rather convoluted and with extra complication comes the danger of bugs being introduced as the code evolves, and obviously also forces the app to

Re: [osg-users] Keypress broken since rev 11749

2010-09-17 Thread Trajce (Nick) Nikolov
Hi Robert, I actually like the idea of having osg working with dead keys thus being capable of handling language specific characters (you can type your text in osgWidget::Input in your natural language). I think this is very good feature, what Vivien has implemented. On the other side I totally

Re: [osg-users] Keypress broken since rev 11749

2010-09-17 Thread Robert Osfield
Hi Nick, On Fri, Sep 17, 2010 at 4:45 PM, Trajce (Nick) Nikolov nikolov.tra...@gmail.com wrote: but Brad is the only one so far reporting issues One user reporting problems when the code has only been checked in for a week, this really isn't a good sign and why I've reverted the code. I

Re: [osg-users] Keypress broken since rev 11749

2010-09-17 Thread Vivien Delage
Hi guys, I understand you Robert. I have no problem with reverting the code for now if this causes issues for other people. I will go and experiment a bit more on how to fix the dead key problem. Maybe I can find a solution which is not using the WM_CHAR message. I will let you know how it

Re: [osg-users] Preparing for OpenSceneGraph-2.9.9 developer release, please test :-)

2010-09-17 Thread Robert Osfield
Hi All, I've just been doing some testing and run osgparticleeffects and found that the particle systems it's generating are all over the place, so clearly there has been a serious regression in osgParticle. The two likely culprits are Wang Rui's changes or my changes in support of GLES/GL3.

Re: [osg-users] Enable/Disable stereo during runtime

2010-09-17 Thread Pierre BOURDIN
Hi Wang all the others, I'd like to know if there is something special to clear the buffers when going from stereo with quadbuffer to non stereo ? I've tried to setup a stereo view embedded in a Qt 4.6 MainWindow, it works well if I create the context with traits-quadBufferStereo=true; just as

Re: [osg-users] Keypress broken since rev 11749

2010-09-17 Thread Trajce (Nick) Nikolov
Hi Robert, I find some time to dig into this. And here are my observations ( I am working with Vivien's submission, with osgviewerMFC ) I put break points in GraphicsWindowWin32.cpp: Line: 2476 case WM_KEYDOWN: case WM_SYSKEYDOWN : {

Re: [osg-users] Preparing for OpenSceneGraph-2.9.9 developer release, please test :-)

2010-09-17 Thread Dženan Zukić
Hi, At least you are running downhill :) Have a good time! Cheers, Dženan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31785#31785 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Preparing for OpenSceneGraph-2.9.9 developer release, please test :-)

2010-09-17 Thread Martin Naylor
Mmmm, I think I may have found the problem! Download the latest 260.63 drivers(BETA) from Nvidia, and all is well on my system with aero enabled. No wonder I could never find what was going on ;) -Original Message- From: osg-users-boun...@lists.openscenegraph.org

Re: [osg-users] Enable/Disable stereo during runtime

2010-09-17 Thread Johannes Scholz
Well, without diving into details, I also added the ability to switch on/off stereo during runtime in my application. I didnt test it using quadbuffer so far(!), but it works very well for cyan/red stereo. I didn't try using osg::DisplaySettings::instance() What I do is: // Check if the

Re: [osg-users] [build] Problem Building OSG 2.8.2 with CMake 2.8 and VS2008

2010-09-17 Thread Elliott Dicus
Hello Again, Maybe someone can answer this related bit for me. Which pieces in CMake need to be configured? (I know some of it is optional; as I said previously I need this for osgART). Some of the libraries in the dependencies zip are named strangely and I'm sometimes not sure which lib goes