[osg-users] VBO questions

2015-05-03 Thread Terry Welsh
A couple questions about OSG exposing specific VBO features: Looking at the body of DrawElementsUInt::draw(), it appears the size of its base std::vector is directly used for the elements count. I'm doing dynamic geometry and usually want to draw fewer elements. Is there a way to do this with

Re: [osg-users] OpenThreads trunk latest mods crashes on mingw32 g++ Windows in Release

2015-05-03 Thread Trajce Nikolov NICK
hmm .. might be :-) ... let me check again .. ignore for now .. I will post the findings Nick On Sun, May 3, 2015 at 2:37 PM, Robert Osfield robert.osfi...@gmail.com wrote: Hi Nick, On 3 May 2015 at 13:27, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: Hi Robert, when I

Re: [osg-users] three versions of LightSpacePerspectiveShadowMap in one .cpp

2015-05-03 Thread Robert Osfield
Hi Nick, I'm not the author of the LightSpacePerspectiveShadowMap.cpp so can't comment too specifically about it. This close to a stable release I don't want to go complicating the build and source code. Robert. On 3 May 2015 at 13:35, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote:

[osg-users] how to convert a QPixmap to a osg::Image ?

2015-05-03 Thread Lv Qing
Hi, Our picture has storge as a QPixmap(a image format used by QT4.8) in database,when I got a QPixmap object,how to convert to a osg::Image ? Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63619#63619

Re: [osg-users] three versions of LightSpacePerspectiveShadowMap in one .cpp

2015-05-03 Thread Wojciech Lewandowski
Trajce, I wrote that code but its old enough to not remember details. But from what I remember original LispSM paper provided some formula to compute Perspecive Matrix which I implemented and their sample code used different formula and also have found later version of code which used another

Re: [osg-users] three versions of LightSpacePerspectiveShadowMap in one .cpp

2015-05-03 Thread Trajce Nikolov NICK
Hi Wojtek, thanks for the very techy reply :-). I was more into organizing these three available algorithms at present available through #defines into more structured form (into three separate .cpp files? CMake options). My target is also flight sim and the work you have done there is really

Re: [osg-users] OpenThreads trunk latest mods crashes on mingw32 g++ Windows in Release

2015-05-03 Thread Robert Osfield
HI Nick, On 3 May 2015 at 12:56, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: I upgraded to the latest from the trunk. My app crashes now in OpenThreads::Atomic and I am seeing in the log there are changes from 3 days ago. Investigating now I haven't checked anything in to

[osg-users] three versions of LightSpacePerspectiveShadowMap in one .cpp

2015-05-03 Thread Trajce Nikolov NICK
Hi again Robert, I am seeing your work in the mentioned shadow map technique and as you know there are three versions of the algorithm available through #defines. I found the one that is not default to work the best for me, but this means I have to edit the code every time I update. Any ideas

Re: [osg-users] OpenThreads trunk latest mods crashes on mingw32 g++ Windows in Release

2015-05-03 Thread Robert Osfield
Hi Nick, On 3 May 2015 at 13:27, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: Hi Robert, when I browse the code I seeing this in the Atomic.h/cpp Revision 13132 http://trac.openscenegraph.org/projects/osg/changeset/13132, 8.1 kB (checked in by robert, 3 days

Re: [osg-users] VBO questions

2015-05-03 Thread Robert Osfield
Hi Terry, On 3 May 2015 at 07:11, Terry Welsh mogu...@gmail.com wrote: A couple questions about OSG exposing specific VBO features: Looking at the body of DrawElementsUInt::draw(), it appears the size of its base std::vector is directly used for the elements count. I'm doing dynamic geometry

[osg-users] OpenThreads trunk latest mods crashes on mingw32 g++ Windows in Release

2015-05-03 Thread Trajce Nikolov NICK
Hi Robert, I upgraded to the latest from the trunk. My app crashes now in OpenThreads::Atomic and I am seeing in the log there are changes from 3 days ago. Investigating now -- trajce nikolov nick ___ osg-users mailing list

Re: [osg-users] OpenThreads trunk latest mods crashes on mingw32 g++ Windows in Release

2015-05-03 Thread Trajce Nikolov NICK
Robert, please ignore and take my apology for the noise it seams some QtCreator settings from the command line is running ok Nick On Sun, May 3, 2015 at 3:05 PM, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: Hi Robert, I made sure both OSG and my app are built release

Re: [osg-users] OpenThreads trunk latest mods crashes on mingw32 g++ Windows in Release

2015-05-03 Thread Trajce Nikolov NICK
Hi Robert, when I browse the code I seeing this in the Atomic.h/cpp Revision 13132 http://trac.openscenegraph.org/projects/osg/changeset/13132 , 8.1 kB (checked in by robert, 3 days http://trac.openscenegraph.org/projects/osg/timeline?from=2015-04-30T16%3A04%3A51Z%2B0200precision=second ago)

Re: [osg-users] OpenThreads trunk latest mods crashes on mingw32 g++ Windows in Release

2015-05-03 Thread Trajce Nikolov NICK
Hi Robert, I made sure both OSG and my app are built release ... Still crashes ... Nick On Sun, May 3, 2015 at 2:39 PM, Trajce Nikolov NICK trajce.nikolov.n...@gmail.com wrote: hmm .. might be :-) ... let me check again .. ignore for now .. I will post the findings Nick On Sun, May