Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues

2010-09-03 Thread Andrew Lett
Hi Tat, Thanks for the tip, I recompiled for only target 'i386' and the compile link worked for Qt 4.6.3 now. I believe there are still some issues with the Qt examples, there are a number of warnings and errors in the terminal (osgQtBrowser, osgviewerQtContext, osgQtWidgets,

Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues

2010-09-03 Thread Andrew Lett
A couple more comments: It's probably a good idea to use 'i386' compiles from now on (perhaps this should be the default for all Intel architecture machines, as Apple has not sold PPC machines for over 4 years now). I've used Qt under Windows and it appears to be quite stable with the OSG

Re: [osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues

2010-09-03 Thread Andrew Lett
Hi J-S, Thanks for the information, and your work is very much appreciated. The Qt integration with Delta3D 2.3.0 under Windows is incredibly stable, so perhaps this should be something to have a look at (I speak from experience on using this package with Qt). Delta3D uses OpenSceneGraph for its

[osg-users] OSG 2.9.9 compile issues on Mac with Qt 4.6.3, other Qt issues

2010-09-02 Thread Andrew Lett
I've tried compiling the SVN version of OSG 2.9.9 on both Mac OS 10.5 and 10.6, and it appears that there is an issue with Qt 4.6.3. There are a number of errors during linking. For now, a workaround for the build is to go back to an earlier version of Qt, it appears that version 4.5.2 compiles

Re: [osg-users] IVE writer repeatedly saves identical textures (osgconv)

2009-02-19 Thread Andrew Lett
For all interested parties, I have my solution posted on the Internet at the following URL (it's for OSG2.6): http://www.geocities.com/andrlet/ive_plugin_fix.zip Basically all that needs to be modified are IVE loader/save files DataInputStream.cpp and DataOutputStream.cpp Only the first

Re: [osg-users] IVE writer repeatedly saves identical textu res (osgconv)

2009-02-19 Thread Andrew Lett
Steven Saunderson osgfo...@... writes: Can you change your scene (or whatever generates the .osg files) so it uses the same texture multiple times instead of multiple textures that just happen to contain the same image file ? Unfortunately, no, I cannot put all of the data into a single

[osg-users] IVE writer repeatedly saves identical textures (osgconv)

2009-02-18 Thread Andrew Lett
Hello everyone! I've been using 'osgconv' to make native ive binary versions of osg ascii files. However, if a texture is used more than once, it is resaved each time it is used. For your reference, I've created a sample file called 'billboards.zip' which you can download from the following URL:

[osg-users] huge IVE binary files created with osgconv if a texture is repeatedly used

2009-01-16 Thread Andrew Lett
Hello everyone! I've been using 'osgconv' to make native .ive binary versions of .osg ascii files (with either the --compressed-dxt1 or --compressed-arb options in OSG2.4). However, when I have a texture that is used more than once in the geometry, then it appears that the IVE file will RESAVE

Re: [osg-users] Problem using osgCal2

2008-07-22 Thread Andrew Lett
Hello Rahul, I also gave osgCal2 (I believe 0.3.1) a try with both OSG2.0 and OSG2.4 - and I wasn't successful with either release. I just got crashes (under VisualStudio8, didn't try it for Mac). If you do manage to sort it out, please do let me know. However, I do have character animation

[osg-users] mouse location (x,y) in pixel units

2008-04-24 Thread Andrew Lett
In OSG2.2 I'd like to find the 'real' x,y location of the mouse cursor. If my window is 640x480, then the value for x should be between 0 and 639, while y should be from 0 to 479. I need the x,y values in this form so that it can be injected into CEGUI correctly. The GUIEventAdapter has protected

Re: [osg-users] mouse location (x,y) in pixel units

2008-04-24 Thread Andrew Lett
Hello Donald, I actually tried something along the lines of what you wrote: int my_x = (int) ( ((ea.getX() + 1.0) / 2.0) * 640.0 ); int my_y = 480 - (int)(((ea.getY() + 1.0) / 2.0) * 480.0); Your lines basically do the same thing (except flip the y axis). However, my problem is that the

Re: [osg-users] mouse location (x,y) in pixel units

2008-04-24 Thread Andrew Lett
Jeremy Moles [EMAIL PROTECTED] writes: Again, I never get the normalized values in osgWidget (and haven't since I began writing it). This has to have something to do with the kind of camera the event appears within, as looking through the code I see that the event{X,Y} values are calculated

Re: [osg-users] mouse location (x,y) in pixel units

2008-04-24 Thread Andrew Lett
I found a workaround to my problems, my thanks to Jeremy for pointing a few things out. If I make the following setting: camera-setAllowEventFocus(false); Then in Viewer::eventTraversal() this will avoid setCameraWithFocus(camera); code. As to the reasoning of why there is separate

Re: [osg-users] OSG 2.2 CEGUI 5.0 no longer works

2008-04-23 Thread Andrew Lett
Hello Sergey, I just wanted to let you know that CEGUI5.0 does indeed work with the following line of code before the realize: viewer-setThreadingModel(osgViewer::Viewer::SingleThreaded); viewer-realize(); This will get the CEGUI rendering properly. I've been working on