Irrlicht in Win32 Window

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!

Irrlicht in Win32 Window

Postby constchar* » Tue Feb 07, 2012 12:13 am

Hello, I'm using Irrlicht in a Win32 window to use as a renderer in an existing project however I've come across this strange problem where Irrlicht does not render strictly in the window's client area but rather seems to render underneath the titlebar and window frame.
Anybody else ever encounter this and know how to get around it?

Thanks!
constchar*
 
Posts: 14
Joined: Thu Sep 20, 2007 3:57 am

Re: Irrlicht in Win32 Window

Postby REDDemon » Tue Feb 07, 2012 3:08 pm

screen shot? wich gui library are u using? never had this problem.
OpenGL is not hard. What you have to do is just explained in specifications. What is hard is dealing with poor OpenGL implementations.
User avatar
REDDemon
 
Posts: 836
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Irrlicht in Win32 Window

Postby constchar* » Tue Feb 07, 2012 6:12 pm

I'm creating an Irrlicht device object using a window handle given to me by SDL.
It seems somebody else encountered something vaguely similar.
The code I'm using for creating the Irrlicht device can be found here.

Screenshot of the window itself:
Image

Screenshot taken by Irrlicht (via IVideoDriver::createScreenShot):
Image
constchar*
 
Posts: 14
Joined: Thu Sep 20, 2007 3:57 am

Re: Irrlicht in Win32 Window

Postby christianclavet » Wed Feb 08, 2012 1:41 pm

Humm, interesting (the top of the image mostly), What i'm seeing there look like a "bug" on the way the Image is saved from the createScreenshot, it take the whole context (your WIN32 windows) while your IRRlicht content doest have the top and bottom bar (used by the window). I don't think using this would work.

Check the RTT examples from the SDK. I think a RTT camera could make a proper screenshot.
User avatar
christianclavet
 
Posts: 1438
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Re: Irrlicht in Win32 Window

Postby constchar* » Wed Feb 08, 2012 2:53 pm

Well when the window doesn't have a frame it renders as expected. One of the ways I know Irrlicht is rendering underneath the title bar is that there is supposed to be a menu bar at the top.
constchar*
 
Posts: 14
Joined: Thu Sep 20, 2007 3:57 am


Return to Advanced Help

Who is online

Users browsing this forum: No registered users and 0 guests