Re: [osg-users] Building VPB on Windows

2008-12-23 Thread Simon Hammett
Well it's hard to give you any pointers if you don't supply the error messages... 2008/12/23 Michael W. Hall : > I just ran the configure utility. I am getting errors with CMake > configure. Reports that a lot of the variables are set to not found. > > Windows XP BTW and Visual Studio 2005. > >

Re: [osg-users] computeIntersections problem

2008-12-23 Thread Simon Hammett
It's not the functions you are calling, you are incorrectly mixing different C runtime libraries. When you are using windows, you must use debug builds of OSG with your debug build application. And release builds with release. If you mix the 2 then objects get allocated from different heaps and b

Re: [osg-users] Memory management in OSG

2008-12-19 Thread Simon Hammett
2008/12/19 Pierre Bourdin (gmail) : > Hi, > valgrind is very powerfull if you're on an Linux/Unix environnement, if you > are using MSVC you can use this: > > add this bloc at the beginning of each file you want to trace (after all > includes): > #ifdef _WIN32 > # ifdef _MSC_VER > # ifdef _DEBUG >

Re: [osg-users] Windows XP GDI Menu Shadow flicker on ATI Radeon

2008-12-15 Thread Simon Hammett
Curious. Could you provide a really stripped down program which doesn't have dodgy menus? mfc / atl or raw win32, as I don't have any other GUI toolkits setup. I can make one out of my programs but you've already looked at one wrong program so another wrong one isn't going to help... 2008/12/15 E

Re: [osg-users] Windows XP GDI Menu Shadow flicker on ATI Radeon

2008-12-15 Thread Simon Hammett
No it's not multi threading. My single threaded non OSG apps do the same, and that's with my OpenGl rendering code called in response to WM_PAINT. It's something to do with the back buffer swap overwriting the screen without being properly synchronised with GDI but I've never had time to investiga

Re: [osg-users] Windows XP GDI Menu Shadow flicker on ATI Radeon

2008-12-15 Thread Simon Hammett
Robert is quite correct; it's nothing to do with OSG. (nor your driver version) My raw OpenGl programs have the same problem and so do quite a few other none OSG programs. I've never been bothered enough to investigate myself though. A quick & dirty solution is just to disable screen updates when

Re: [osg-users] Cmake question - is it possible to explicitly pull in symbols in a static lib?

2008-12-10 Thread Simon Hammett
> Is this idea possible with compilers? Is it possible with CMake? > VS has a force include symbol option, which looks like it will make the linker pull in a library: > The /INCLUDE option tells the linker to add a specified symbol to the symbol > table. > The linker resolves symbol by adding t

Re: [osg-users] Is it time that we have aOpenSceneGraph/src/3rdPartyPlugins directory?

2008-12-09 Thread Simon Hammett
> It should be possible to achieve these same benefits with one CMake system. > -Paul I was thinking about 2 separate ones due to way the UI tool works on windows. You just get a big long list of options, with a bunch hidden behind an 'Advanced' checkbox. So you have carefully review every line

Re: [osg-users] Is it time that we have a OpenSceneGraph/src/3rdPartyPlugins directory?

2008-12-09 Thread Simon Hammett
2008/12/9 Robert Osfield <[EMAIL PROTECTED]>: > HI Simon, > > On Tue, Dec 9, 2008 at 3:30 PM, Simon Hammett > <[EMAIL PROTECTED]> wrote: >> Well I'm not too keen on having loads of third part stuff in the default >> core. >> Building osg is a

Re: [osg-users] Is it time that we have a OpenSceneGraph/src/3rdPartyPlugins directory?

2008-12-09 Thread Simon Hammett
2008/12/9 Robert Osfield <[EMAIL PROTECTED]>: > Hi All, > Snip. > > Thoughts? Recommendations? > Robert. > ___ > osg-users mailing list Well I'm not too keen on having loads of third part stuff in the default core. Building osg is already painfully slo

Re: [osg-users] The build of osg2.6 succeed in my computer but failed in another!

2008-12-08 Thread Simon Hammett
The VS linker does go nuts on rare occasions. This happens more often when using Incremental linking, so you might try turning that off. Just do the osg project only first to see if that fixes it. 2008/12/8 xuhuabing <[EMAIL PROTECTED]>: > Hello > I am a user of OpenSceneGraph-2.6.0, I download th

Re: [osg-users] OpenVRML and Windows

2008-12-05 Thread Simon Hammett
2008/12/5 Serge Lages <[EMAIL PROTECTED]>: > I tried the patch but it doesn't work for Visual Studio. > > Anyone have an idea on how to transform a method declaration like that : > > float (&operator[](size_t index) throw ())[4]; > > In something similar but VS compliant ? > If you are trying to g

Re: [osg-users] 4m 36 seconds!

2008-12-05 Thread Simon Hammett
2008/12/5 Robert Osfield <[EMAIL PROTECTED]>: > Hi All, > > I've taken a picture of my latest computer jut to make you all jealous :-) > > Robert. > Brilliant! That looks like how my machine performs. -- The truth is out there. Usually in header files.

Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
> > Nuts, I must be confusing it with one of the debug help functions. > Easiest way is to do it DllMain then, you get passed the handle to your dll. > Then just store the handle or the path. > Knew there was a relatively straight forward way of doing it: wchar_t buff[256]; buff[0] = '\0'; HMOD

Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
2008/12/5 Ralph Kern <[EMAIL PROTECTED]>: > Simon Hammett schrieb: >> If you pass a null handle to GetModuleFileName it uses the return address >> on the stack to work out which dll the calling function is in. >> It should always work for any function linked in an exe

Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
> It does not fail, but his plugin source code does not know it's instance > handle, because DllMain() is deeply buried in the Plugin API, I guess. > If you pass a null handle to GetModuleFileName it uses the return address on the stack to work out which dll the calling function is in. It should a

Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
2008/12/5 Andreas Goebel <[EMAIL PROTECTED]>: > Simon Hammett schrieb: >> >> 2008/12/5 Andreas Goebel <[EMAIL PROTECTED]>: >> >>> >>> Simon Hammett schrieb: >>> >>>> >>>> On windows you can call GetModuleFil

Re: [osg-users] Visual Studio Static compilation

2008-12-05 Thread Simon Hammett
Why would you want to static link to osg when you say you can have dlls? Just stick the osg dlls in the same folder as the exe and it should work. If you really must static link, you can probably just change the project build type in VS. I haven't tried this though. Use cmake, set the options, th

Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
2008/12/5 Andreas Goebel <[EMAIL PROTECTED]>: > Simon Hammett schrieb: >> >> On windows you can call GetModuleFileName which retrieves the fully >> qualified path to the dll/exe >> in which the calling function resides. >> > > Sadly no, it returns the

Re: [osg-users] Very simple Firefox-Plugin to display osg-files

2008-12-05 Thread Simon Hammett
On windows you can call GetModuleFileName which retrieves the fully qualified path to the dll/exe in which the calling function resides. 2008/12/5 Andreas Goebel <[EMAIL PROTECTED]>: > >> You will probably have to explicitly provide the library path to go >> searching for the plugins. You could e

Re: [osg-users] pragma warnings disabled in headers

2008-11-21 Thread Simon Hammett
2008/11/21 Wojciech Lewandowski <[EMAIL PROTECTED]>: > Hi, Guys > Some middle step solution could be CMake define which would activate warning > disable in osg\Export. Would this be acceptable ? > > What do other OSG windows developers think ? > Sounds good to me. Though perhaps we should go whole

Re: [osg-users] Networking with OSG + Bullet

2008-11-19 Thread Simon Hammett
There are good articles @ valvesoftware about this: http://developer.valvesoftware.com/wiki/Source_Multiplayer_Networking http://developer.valvesoftware.com/wiki/Lag_Compensation -- The truth is out there. Usually in header files. ___ osg-users mailing

Re: [osg-users] A very simple ref_ptr memory leak example.

2008-11-18 Thread Simon Hammett
2008/11/18 Chris Denham <[EMAIL PROTECTED]>: > Thanks for the tips everyone. > I suppose as Paul suggests, it's best to avoid doing things that hurt. > The problem is that when we accidentally implemented this pattern in a > more complex application, it was a bit fiddly to track down. I only > noti

Re: [osg-users] Teaching an intro to graphics course

2008-11-14 Thread Simon Hammett
I'll have a look this weekend. ty. 2008/11/14 Wang Rui <[EMAIL PROTECTED]>: > Hi Simon, > > As Alberto Luaces said, there is an external library for OSG to support > various polygon technologies, osgModeling > (http://code.google.com/p/osgmodeling/) is completely new work and not > familiar to oth

Re: [osg-users] Teaching an intro to graphics course

2008-11-07 Thread Simon Hammett
2008/11/7 <[EMAIL PROTECTED]> > > Thanks Simon, > > A CSG library would be a great idea to work on. I needed one of those for > some work I did with Northrop Grumman. The generalized extrusion function is > cool too, maybe for a single student or as a feature of the CSG library. I > didn't lo

Re: [osg-users] A Windows binary version of OSG 2.6.x available?

2008-11-07 Thread Simon Hammett
2008/11/7 Robert Osfield <[EMAIL PROTECTED]> > Hi Simon, > > On Thu, Nov 6, 2008 at 1:02 PM, Simon Hammett > <[EMAIL PROTECTED]> wrote: > > If you want binaries you need to specify which compiler you are using. > > I've got 2.7.1 built for vc.N

Re: [osg-users] Teaching an intro to graphics course

2008-11-07 Thread Simon Hammett
For me Geometry handling and generators. I've spent part of today writing a generalised extrusion function but I'd be highly surprised if this hasn't been done 10,000 times already. I couldn't find such a function in osg. If it is there, then maybe you could get your students to help with the do

Re: [osg-users] pragma warnings disabled in headers

2008-11-07 Thread Simon Hammett
2008/11/7 Robert Osfield <[EMAIL PROTECTED]> > On Fri, Nov 7, 2008 at 3:42 PM, Simon Hammett > <[EMAIL PROTECTED]> wrote: > > I agree with Peter, arbitrarily turning off peoples warnings isn't good > > practice. > > The OSG generally doesn't disable

Re: [osg-users] pragma warnings disabled in headers

2008-11-07 Thread Simon Hammett
2008/11/7 Robert Osfield <[EMAIL PROTECTED]> > Hi Peter, > > On Fri, Nov 7, 2008 at 12:11 PM, Peter Wraae Marino <[EMAIL PROTECTED]> > wrote: > > there is no push/pop for the warning in the header file which will make > > these warnings disabled in my own code too. I would like to catch this > > w

Re: [osg-users] A Windows binary version of OSG 2.6.x available?

2008-11-06 Thread Simon Hammett
If you want binaries you need to specify which compiler you are using. I've got 2.7.1 built for vc.Net 2003 but it's a 200Mb zip, without the examples. Free to anybody who can provide me somewhere to upload it if anybody else is using such an old version of vc. Building yourself is very easy thoug

Re: [osg-users] OSG MFC Fullscreen

2008-11-03 Thread Simon Hammett
Try ChangeDisplaySettingsEx Not sure how that interacts with MFC though. 2008/11/3 Albino Rodrigues <[EMAIL PROTECTED]> > Hi, > > > > I've created an application based off the OSG MFC example. > > > > Does anyone know how to swap the rendering context between non full screen > and full screen

Re: [osg-users] Thread infinite waiting problem

2008-10-10 Thread Simon Hammett
That's not nearly enough information to enable anyone to help. Multi threaded apps can hang for any number of reasons. You'll need to show callstack for each thread and give an other view of you app design. 2008/10/10 Vincent Bourdier <[EMAIL PROTECTED]> > Hi all, > > Randomly my application free

Re: [osg-users] Problems integrating MFC example with existing application

2008-10-01 Thread Simon Hammett
2008/9/30 Simon <[EMAIL PROTECTED]> > Yup, the mfc example is broken. Doh, ignore me. Just problems with loading plugins, it fails silently... Mind you the MFC version keeps flashing the screen black when resizing whilst the one I wrote which uses setUpViewerAsEmbeddedInWindow doesn't. > > If

<    1   2