Me and 4 other persons have a strange problem. My source code (see below )was compiled on Windows XP Home SP2 and other OSes and every OS makes a different output. We used Irrlicht V1.1 (_not_ SVN version ). On my PC with Windows XP Home SP2 the result with OpenGL is like that: http://img110.imageshack.us/my.php?image=bild1ps9.png With the Software Renderer the result is like that: http://img110.imageshack.us/my.php?image=bild2sm6.png and with the Apfelbaum Renderer the result is like http://img238.imageshack.us/my.php?image=bild3mu1.png . DirectX doesn't work at all! I hope that was enough information to help you help me.
cya malu
This is the source code: (sorry for the big code tag )
Code: Select all
#include <irrlicht.h>
#include <iostream>
using namespace irr; // erspart viel Tipparbeit
#pragma comment(lib, "Irrlicht.lib")
int main(int argc, char **argv)
{
video::E_DRIVER_TYPE driverType;
std::cout << "Bitte wähle die API die du nutzen möchtest:\n"
<< " ( a ) DirectX 9.0c\n"
<< " ( b ) DirectX 8.1\n"
<< " ( c ) OpenGL 1.5\n"
<< " ( d ) Software Renderer\n"
<< " ( e ) Apfelbaum Software Renderer\n"
<< " ( f ) Null Device\n"
<< " ( andere ) Schliessen\n";
char i;
std::cin >> i; // welche API möchte der Benutzer benutzen?
switch(i)
{
case 'a': driverType = video::EDT_DIRECT3D9; break;
case 'b': driverType = video::EDT_DIRECT3D8; break;
case 'c': driverType = video::EDT_OPENGL; break;
case 'd': driverType = video::EDT_SOFTWARE; break;
case 'e': driverType = video::EDT_SOFTWARE2;break;
case 'f': driverType = video::EDT_NULL; break;
default: return 0;
}
// nun erstellen wir uns ein Fenster
IrrlichtDevice *device = createDevice(driverType, core::dimension2d<s32>(512, 384));
if(!device)
{
return 1;
}
video::IVideoDriver* driver = device->getVideoDriver();
while(device->run() && driver)
{
device->setWindowCaption(L"malus Irrlicht Tutorial");
driver->beginScene(true, false, video::SColor(0, 207, 235, 154));
driver->draw2DLine(core::position2d<s32>(1, 1), core::position2d<s32>(510, 382), video::SColor(255, 0, 0, 0));
driver->draw2DPolygon(core::position2d<s32>(470, 40), 30.4f, video::SColor(255, 255, 0, 0), 10);
driver->draw2DRectangle(core::rect<s32>(1, 300, 96, 348), video::SColor(255, 255, 0, 0), video::SColor(0, 0, 0, 0), video::SColor(0, 0, 0, 0), video::SColor(255, 255, 0, 0));
driver->endScene();
}
device->drop();
return 0;
}
