Hi, I've got a few questions
1. When I create a device sized (1920, 1080) (which is 16:9), should I set the aspect ratio of my camera also at 16:9? When I do so, the view is deformed.
2. I want a nicer representation of red sphere's, so I'm looking for a 'metallic glow effect', but I can't create it using shaders. Any idea's?
3. When I run a infinite loop (while (...) {}, like the one in irrlicht) on my first computer, task manager indicates only 50% cpu usage. It's not a dual core. When I run it on another computer, with xp professional (the first one has xp basic) , 100% CPU usage is indicated. Am I missing something? :p
Thanks in advance
Aspectratio, metallic effect
Re: Aspectratio, metallic effect
Sounds like you're doing something wrong. Are you using integer math? You should be able to write camera->setAspectRatio(16.f / 9);, or more generically, you could use the following code.kevin[be] wrote:When I do so, the view is deformed.
Code: Select all
core::rect<s32> viewPort = driver->getViewPort();
camera->setAspectRatio(1.f * viewPort.getWidth() / viewPort.getHeight());