[osg-users] Help with CompositeViewer

2009-07-24 Thread Vic Ace
I have been looking at this example (http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/examples/osgcompositeviewer/osgcompositeviewer.cpp) and written code similar to the parts that I think are relevant but all I get inside my window is a plain black background. I have set

Re: [osg-users] Help with CompositeViewer

2009-07-24 Thread Vic Ace
Thanks, setting doubleBuffer to true fixed the problem with the background color. It is now blue like it should be! But there's no capsule. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15404#15404

Re: [osg-users] Help with CompositeViewer

2009-07-24 Thread Vic Ace
And setting the clearcolor for the camera did not give the same effect. still just black. hmm. view-getCamera()-setClearColor(osg::Vec4f(0.2f, 0.2f, 0.6f, 1.0f)); -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15407#15407

Re: [osg-users] Help with CompositeViewer

2009-07-24 Thread Vic Ace
Ok, now the code looks like this and I have attached a pic of how this renders. A bit odd. Code: osg::ref_ptrosgViewer::CompositeViewer viewer = new osgViewer::CompositeViewer; osg::ref_ptrosg::GraphicsContext::Traits traits = new osg::GraphicsContext::Traits; traits-x = 100; traits-y = 100;

Re: [osg-users] Help with CompositeViewer

2009-07-24 Thread Vic Ace
Ah ok. But how come the background inside the viewport is grey? I have not specified this color. And where's the capsule? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15415#15415 ___ osg-users

Re: [osg-users] Setting up window with GraphicsWindowWin32

2009-07-23 Thread Vic Ace
Haha yes that was it. :-* Oh and one thing, the program is still not responsive. The background in the window that opens is plain white and in the task manager it sais not responding. I'm guessing this could have something to do with event handling, no? -- Read this topic

Re: [osg-users] Setting up window with GraphicsWindowWin32

2009-07-23 Thread Vic Ace
I'll do that. Thanks for your help! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15310#15310 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Setting up window with GraphicsWindowWin32

2009-07-22 Thread Vic Ace
Thank you! That appears to work! It allows me to open several windows at once, though the program (and the windows that open) are not responsive for some reason. Could be my fault, not sure. How do I associate a osgViewer::Viewer with a osg::GraphicsContext so that it renders inside of that

Re: [osg-users] Setting up window with GraphicsWindowWin32

2009-07-22 Thread Vic Ace
Thank you for the explanation. I understand it better now! And I have read more about the CompositeViewer so I'll be using that instead. One last thing, the program crashes, the code that creates a window (and some temporarary testing code below) looks like this: Code:

[osg-users] Setting up window with GraphicsWindowWin32

2009-07-21 Thread Vic Ace
How do you use GraphicsWindowWin32? I haven't found any tutorials or samples using it and I can't figure it out by looking at the documentation. This is what I've got: Code: void Renderer::createWindow(int width, int height, int bpp, bool resizable, bool fullscreen, bool cursor, const

Re: [osg-users] SDL and OSG in the same project

2009-06-26 Thread Vic Ace
Thank you! The sdl and sdlmain projects were both set to the dll without debug in debug config. That solved that 5th warning and in the list in dependency walker there's now not any mixed debug and release files. The other 4 warnings, well it's more like 2 because they're repeated, seem to not

Re: [osg-users] SDL and OSG in the same project

2009-06-25 Thread Vic Ace
I ran Dependency Walker again and it found references in both sdl.dll (from debug build) and osg55-osgd.dll (debug) to msvcrt.dll. Does that mean they are both linking to it despite being built in debug config? I followed the tutorials on how to set SDL and OSG up properly when building from

Re: [osg-users] SDL and OSG in the same project

2009-06-25 Thread Vic Ace
Maybe msvcrt.dll in the list there has nothing to do with the problem. I clicked around in dependency walker some more (still learning) and found that sdl.dll uses msvcr90.dll which is obviously not for debug. That has to the problem. But still, I compiled SDL correctly the first time, and

Re: [osg-users] SDL and OSG in the same project

2009-06-24 Thread Vic Ace
I have now built both SDL and OSG from the source and linked them to my project, all compiled in VC9, but I still get the same warnings. Any more ideas? 1-- Build started: Project: engine, Configuration: Debug Win32 -- 1Compiling... 1*.cpp 1Generating Code... 1Creating library...

Re: [osg-users] SDL and OSG in the same project

2009-06-22 Thread Vic Ace
I have a game-engine-learning-project that uses SDL for input and works fine able to open a window a recieve the input so far but now I want to add OSG to it. I'm completely new and have never used it before, neither am I the most experienced programmer ever so... I may be missing something.

Re: [osg-users] SDL and OSG in the same project

2009-06-22 Thread Vic Ace
I'm using Visual C++ 2008 Express Editon. Downloaded these files from the OSG website: openscenegraph-all-2.8.1-win32-x86-vc80sp1-Debug.zip openscenegraph-all-2.8.1-win32-x86-vc80sp1-Release.zip And I followed this guide: http://dwightdesign.com/2009/05/installing-openscenegraph-280/ I have

Re: [osg-users] SDL and OSG in the same project

2009-06-22 Thread Vic Ace
I tested Dependency Walker, didn't know there was such a thing, thanks! The result was that it found one MSVCP90D.DLL and one MSVCR90D.DLL. The only difference is one character P and R. What does that mean? -- Read this topic online here:

[osg-users] SDL and OSG in the same project

2009-06-20 Thread Vic Ace
I have a game-engine-learning-project that uses SDL for input and works fine able to open a window a recieve the input so far but now I want to add OSG to it. I'm completely new and have never used it before, neither am I the most experienced programmer ever so... I may be missing something.