Different results on different PCs...

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
malu
Posts: 4
Joined: Mon Oct 16, 2006 10:16 pm

Different results on different PCs...

Post by malu »

Hi Irrlicht-Team!
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;

}
Last edited by malu on Tue Oct 17, 2006 3:59 pm, edited 1 time in total.
3ddev
Posts: 169
Joined: Tue Sep 19, 2006 6:51 am
Contact:

RE- Promblems on different pcs!

Post by 3ddev »

Where did you get that XP skin from?
Last edited by 3ddev on Tue Oct 17, 2006 6:42 am, edited 1 time in total.
sRc
Posts: 431
Joined: Thu Jul 28, 2005 1:44 am
Location: Salt Lake City, Utah
Contact:

Post by sRc »

lol, thats an XP skin, not Vista :wink:
The Bard sRc

Blog | Twitter
malu
Posts: 4
Joined: Mon Oct 16, 2006 10:16 pm

Post by malu »

3ddev:
Sorry, I forgot that :( .

The Anaconda:
Yes, that's only a skin for XP but I like this skin.

Can anybody help me?
sRc
Posts: 431
Joined: Thu Jul 28, 2005 1:44 am
Location: Salt Lake City, Utah
Contact:

Post by sRc »

btw youve got the same link for the Software renderer and the Apefunsafsd... uhh, Burning's renderer, I assume you wanted different pictures for them

Software renderer doesn't have a lot of things implemented correctly. Software2 (Apecefelbaund or w/e, or Burning's as its called in the SVN now) is a lot better and looks pretty much how the hardware ones look.

are you getting any errors with the D3D devices? or what exactly does selecting D3D do?

you may also want to try downloading the latest SVN and compile that, and see how your program functions with that
The Bard sRc

Blog | Twitter
malu
Posts: 4
Joined: Mon Oct 16, 2006 10:16 pm

Post by malu »

If I choose DirectX9 or 8.1 the window pops up and then the window is away. It opens and closes. The SVN version? Ok, I'll try I later...

Thanks for the help!
3ddev
Posts: 169
Joined: Tue Sep 19, 2006 6:51 am
Contact:

RE:The window disappears?

Post by 3ddev »

You haven't got a DirectX compiled dll. You will have to get the svn version and compile the dll yourself. Make sure you #define WINDOWS and #define Directx8 and Directx9 in irrconfig.c otherwise the directx driver support won't be compiled. Also, you will have to have the directx 8 & 9 sdks. If you can't get the directx8 sdk just don't include the defines for Directx8.

I hope this has helped! :lol:
malu
Posts: 4
Joined: Mon Oct 16, 2006 10:16 pm

Post by malu »

Ok, thanks to you Anaconda and 3ddev. I will try it tomorrow and edit the results.
benoit808
Posts: 8
Joined: Fri Oct 06, 2006 6:47 pm

Post by benoit808 »

malu: not sure if this is your problem at all but this happens on my PC when I am in Dual Screen Mode with Extended Destop with my ATI video card. If I switch to Clone Mode or disable dual screen altogether then it works fine.
I believe this is a problem with DirectX
Post Reply