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!
Post Reply
constchar*
Posts: 14
Joined: Thu Sep 20, 2007 3:57 am

Irrlicht in Win32 Window

Post by constchar* »

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!
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Irrlicht in Win32 Window

Post by REDDemon »

screen shot? wich gui library are u using? never had this problem.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
constchar*
Posts: 14
Joined: Thu Sep 20, 2007 3:57 am

Re: Irrlicht in Win32 Window

Post by constchar* »

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
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Irrlicht in Win32 Window

Post by christianclavet »

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.
constchar*
Posts: 14
Joined: Thu Sep 20, 2007 3:57 am

Re: Irrlicht in Win32 Window

Post by constchar* »

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.
Post Reply