Resolution + cameras

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
chromegod
Posts: 3
Joined: Mon Jun 19, 2006 8:31 pm

Resolution + cameras

Post by chromegod »

Just using the basic cameras, when I tested my configuration file, changing the resolutions to obscure numbers (e.g. 533 x 477) caused the camera to automatically start turning on an axis. Using standard ones, such as 800 x 640, it doesn't happen. Is this a bug?
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Could you please provide source code to have a test case?
chromegod
Posts: 3
Joined: Mon Jun 19, 2006 8:31 pm

Post by chromegod »

Just tested it in another place, it does the same thing in the Per-Pixel Lighting example.
I changed this line

Code: Select all

IrrlichtDevice* device = createDevice(driverType, core::dimension2d<s32>(800, 600));
to

Code: Select all

IrrlichtDevice* device = createDevice(driverType, core::dimension2d<s32>(533, 477));
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

confirmed it does this with windows devices with an odd width or height. looks like a half pixel rounding error in CCursorControl::getRelativePosition. could be due to the window border though?
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply