-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retro rendering style broken on MacBookAir6,2 #29
Comments
Does this also occur with the "Smoove" rendering mode? And do you have any other Boxer-wrapped GOG apps to test this rendering mode out with? |
Smoove works. Blank screen also on Worlds of Ultima: The Savage Empire. |
Interesting that Smoove works and Retro doesn't - that implies a shader-specific bug. This probably isn't a 10.9 issue per se, as Retro works fine in 10.9 on my MacbookAir3,2. It's more likely to be related to your Macbook model's graphics hardware (though it's possible they also broke something in 10.9's drivers for it.) What graphics chipset does the Macbook have? And did you try playing these games on the same Macbook on an earlier version of OS X? |
This model has Intel HD Graphics 5000, 1024 MB. Unfortunately I didn't play the GOG variant of the game pre-10.9. |
Could you test if this alpha build of Boxer 2.0 exhibits the blank-screen problem in Retro mode also: https://www.dropbox.com/s/xavh9eewut7p6u8/boxer-2.0alpha-20131012.1.zip This bug won't be game-specific, so you can just test with a DOS prompt. (Note that if you have an existing copy of Boxer 1.3.2, I do not recommend replacing it with this version - there's a great deal that is missing or broken in alpha currently.) |
Confirmed problem still occurring in 2.0alpha. |
OK, this means a fun round of Working Out Why Someone Else's Shader Code Is Broken On A Chipset I Don't Have! Are you able to build Boxer from source / do you know your way around a GLSL shader definition? If so, I can suggest individual code changes for you to try. If not, then I'll try do speculative changes myself and upload a new build for you to try. |
You mean WOWSESCIBOACIDH isn't your favourite activity in the whole world? ;) I have Xcode but I must confess I use it mostly for iOS Simulator (web dev) - compiling from source I receive the following issue in two separate files: |
On the contrary, I've been looking forward to another round of it all summer! OK, the first thing you could try is to open Resources -> Shaders -> crt-geom-interlaced-curved.shader (this is the shader for the Retro rendering style), and find-replace the following text: Then recompile Boxer and run it from within XCode. Also note that if the shader fails to load altogether, it should display a message in XCode's debug output panel - this might reveal a chipset-specific error in your case. (The filesystemRepresentation warning is just a red herring and can be safely ignored.) |
Forgive me, how do I get past the fileSystemRepresentation issue? The build is failing because of it. |
Ah, sorry, didn't realise it was an error rather than a warning. I've fixed it now, so if you pull again it should build properly. |
Just seen your commit - I'm on OS X 10.9, Xcode 5.0 and error remains after pulling latest. |
Ah - typo, ADBForwardCompatibility.h - fileSystemRepresentation not filesystemRepresentation. Compiles now. |
OK, shader modification you suggested didn't appear to change anything. Debug panel shows nothing out of the ordinary. |
OK, the fileSystemRepresentation typo is now fixed. I'll take a closer look through the shader code and give you some more suggestions to try later this week. Just to confirm: you get the blank screen regardless of whether Boxer is windowed or fullscreen, right? |
Confirmed. |
Hi, I'm having the same problem with a black screen on a Late 2012 MacBook Pro with an Intel HD 4000 video card. Not sure why, but the problem seems to disappear if I change line 68 in shader's code from
At least it seems to work and look fine after that. |
Thanks for poking around with the shader! I took some screenshots before and after the change and the results are visually completely identical, so I've committed the change but won't mark this issue as fixed until I have some more corroboration (Rob?) What led you to try removing that particular part, by the way? To be honest I can't follow what that part of the shader is even meant to be doing, and I write games for a living. This Is Why We Comment Our Code, People. |
I noticed that the black screen happens only if the After that I started to comment out different pieces of code inside the Sadly, I have no idea what the dot product is supposed to do exactly and why it causes the problem. I tried to look deeper, but without success, and decided to stop, since the problem was seemingly fixed. |
I know topic is old but the bug still persists on games purchased on GOG.com. Is there any way to address this issue (without having to recompile Boxer/etc.)? I, too, have a Macbook Pro 2013 with Intel HD Graphics 4000. Retro shader results in black screen. Can anyone post a screenshot of how the retro shader looks? Of what I read is that it looks really good (better than scanlines in Boxer standalone)? |
A quick fix would be to copy the fixed shader file into one of the GOG apps you have. The necessary file is here: (Github makes it awkward to just straight-up download files, so in Safari: right-click on the link above and choose "Download linked file", then rename the resulting file's extension from ".shader.txt" to just ".shader".) Once you've downloaded it, right-click on a GOG game in Finder and choose "Show Package Contents". Browse to Let me know if the shader works correctly for you! |
that did the trick, thanks! I had the impression the shader needs to be compiled but that's not the case. The monitor curving is a bit exaggerated on the Retro shader, though. Do you know which values to change to reduce this? I changed R which seems to do that but the graphics then seem to extend outside the visible screen area. |
Smaller |
I'm on a MacBookAir6,2 running OS X 10.9 and in Privateer (GOG version) the choice of 'Rendering style: Retro' results in a black screen (music continues, no crash, just no visible graphics).
Let me know what further info would be helpful.
The text was updated successfully, but these errors were encountered: