hicham 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 23 
	Threads: 1 
	Joined: Aug 2010
	
 Reputation: 
0
		
	 | 
	
		
			
 
Open Source Drivers Support 
			 
			
				Hi all, 
In a desperate attempt to run Amnesia Dark Descent on my ATI Mobility Radeon X700 PCIE (RV410) on Linux with FOSS driver, I converted all dds files to tga using ImageMagick, then modified all references to them in .mat files to tga ones. Et voila, the game goes fine, no crashes, but the scenes are upside down !
 
I guess I have done something wrong, but I don't know what is it.
 
I would love to have some explanation from the developers.
 
Thanks for this great game by the way   
			 
			
			
			
		 |  
	 
 | 
 
	| 10-14-2010, 12:40 AM  | 
	
		
	 | 
 
 
	
		
		Urkle 
 
 
		
			FG - Associate 
			
			
			
 
			
	Posts: 1,172 
	Threads: 31 
	Joined: Jul 2006
	
 Reputation: 
21
		
	 | 
	
		
			
 
RE: Open Source Drivers Support 
			 
			
				That seems strange that the TGA would load and the DDS wouldn't?  Unless it gets around the S3TC maybe? I'd have to look through the bitmap loader again.
			 
			
			
 
Developing away on one of 
Multiple Macs running 10.6, 10.7, 10.8, and 10.9. 
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB 
			
		 |  
	 
 | 
 
	| 10-14-2010, 03:07 AM  | 
	
		
	 | 
 
 
	
		
		Urkle 
 
 
		
			FG - Associate 
			
			
			
 
			
	Posts: 1,172 
	Threads: 31 
	Joined: Jul 2006
	
 Reputation: 
21
		
	 | 
	
		
			
 
RE: Open Source Drivers Support 
			 
			
				The Scenes are upside down or the textures? 
 
If the scenes are upside down then it's definitely a driver issue, probably in handling some of the shaders.
			 
			
			
 
Developing away on one of 
Multiple Macs running 10.6, 10.7, 10.8, and 10.9. 
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB 
			
		 |  
	 
 | 
 
	| 10-14-2010, 01:34 PM  | 
	
		
	 | 
 
 
	
		
		hicham 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 23 
	Threads: 1 
	Joined: Aug 2010
	
 Reputation: 
0
		
	 | 
	
		
			
 
RE: Open Source Drivers Support 
			 
			
				Yes, the scenes are upside down. If I change FOV to -70 in config/game.cfg, then the scenes are almost ok ( with the candles and other shadows inverted), but then the movement is inverted, ie moving with left arrow key, causes to move right, and looking up with up arrow key causes the camera to go down. 
 
What is really annoying is that elements are separated as I said, ie, candles are separated from their chandeliers, which is probably is a bug in the driver.
			 
			
			
			
		 |  
	 
 | 
 
	| 10-14-2010, 01:43 PM  | 
	
		
	 | 
 
 
	
		
		hicham 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 23 
	Threads: 1 
	Joined: Aug 2010
	
 Reputation: 
0
		
	 | 
	
		
			
 
RE: Open Source Drivers Support 
			 
			
				Installing s3tc solved the dds textures loading. however, textures are still upside down.  
Can any dev provide some showcase code so that I can file a bug to mesa ? 
And in case any dev wonders why some can't use "Official Drivers", it is simply because AMD dropped support for them long time ago.
			
			
			
			
				
(This post was last modified: 10-28-2010, 01:30 PM by hicham.)
 
				
			 
		 |  
	 
 | 
 
	| 10-28-2010, 12:34 PM  | 
	
		
	 | 
 
 
	
		
		Urkle 
 
 
		
			FG - Associate 
			
			
			
 
			
	Posts: 1,172 
	Threads: 31 
	Joined: Jul 2006
	
 Reputation: 
21
		
	 | 
	
		
			
 
RE: Open Source Drivers Support 
			 
			
				(Screenshots provided by hicham) 
http://img21.imageshack.us/i/amnesiascreenshot000.jpg/
http://img168.imageshack.us/i/amnesiascreenshot002.jpg/
The info I got from the lead dev is it is most likely a texture coordinate issue in the Mesa drivers.  Basically the game renders things offscreen to a backbuffer/intermediate texture using the FBO extensions in OpenGL.  Then that single texture is rendered to the screen.  then later draws all of the transparent items on-top (ie.. the candles and flame, etc..)
 
So what you are seeing is most likely caused by mesa GL somewhere reversing the texture coordinates accidentally.  I would start there in your bug reports with Mesa
			  
			
			
 
Developing away on one of 
Multiple Macs running 10.6, 10.7, 10.8, and 10.9. 
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB 
			
		 |  
	 
 | 
 
	| 11-01-2010, 02:38 PM  | 
	
		
	 | 
 
 
	
		
		hicham 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 23 
	Threads: 1 
	Joined: Aug 2010
	
 Reputation: 
0
		
	 | 
	
		
			
 
RE: Open Source Drivers Support 
			 
			
				Ok, I will try with the Graphics Test binary, or even tell the mesa devs to try Amensia Demo
			 
			
			
			
		 |  
	 
 | 
 
	| 11-09-2010, 12:20 PM  | 
	
		
	 | 
 
 
	
		
		Urkle 
 
 
		
			FG - Associate 
			
			
			
 
			
	Posts: 1,172 
	Threads: 31 
	Joined: Jul 2006
	
 Reputation: 
21
		
	 | 
	
		
			
 
RE: Open Source Drivers Support 
			 
			
				There is someone more screwy going on here.  
 
I just upgraded my box to f14 and installed the dxt library.  On the radeon HD 3000 card in my system using open source drivers things didn't work very well at all.  Many of the glsl shaders did not compile, and I didn't see any upside down scenes.  
 
So I put in the new nvidia GTS 450 card I got.  Using open source drivers still.  Things rendered correctly, although really slowly as the is no hardware support for the noveau drivers for that card. ( all software Mesa ).  So my thought is it is a radeon driver bug you are encountering here.
			 
			
			
 
Developing away on one of 
Multiple Macs running 10.6, 10.7, 10.8, and 10.9. 
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB 
			
		 |  
	 
 | 
 
	| 11-14-2010, 01:42 PM  | 
	
		
	 | 
 
 
	
		
		hicham 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 23 
	Threads: 1 
	Joined: Aug 2010
	
 Reputation: 
0
		
	 | 
	
		
 | 
 
	| 12-02-2010, 03:24 PM  | 
	
		
	 | 
 
 
	
		
		hicham 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 23 
	Threads: 1 
	Joined: Aug 2010
	
 Reputation: 
0
		
	 | 
	
		
			
 
RE: Open Source Drivers Support 
			 
			
				Thanks to Marek Olsak ( a mesa developer ), the game run fine here for me using latest mesa git.
			 
			
			
			
		 |  
	 
 | 
 
	| 12-03-2010, 03:42 PM  | 
	
		
	 | 
 
 
	 
 |