Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[NEEDS INFO] Failing to fallback when a shader doesn't compile

#1
When offset mapping and some other features are used on hardware that does not support these shader features then very funny things can happen. Textures may not get rendered at all leaving gaping holes in a map. I've seen this with both Geforce FX and r300 generations under different platforms.

In the console you get things like:
Quote:^7^1GLSL shader glsl/default.glsl lightdirectionmap_modelspace diffuse specular offsetmapping failed! some features may not work properly.
^7^1GLSL shader glsl/default.glsl lightdirectionmap_modelspace diffuse glow specular offsetmapping failed! some features may not work properly.
^7^1GLSL shader glsl/default.glsl lightdirectionmap_modelspace diffuse offsetmapping failed! some features may not work properly.
^7^1GLSL shader glsl/default.glsl lightdirectionmap_modelspace diffuse specular offsetmapping alphakill failed! some features may not work properly.

Having looked through the code of gl_main I've found where this comes from.

I see a possible workaround to this which might also work for when vid_soft 1 is enable which currently uses it's own workaround. A simple way would be that if the shader fails to compile as is already tested for, fallback and render the texture without offset mapping. Then a simple warning message can be given in the console along the same lines as it is now.

I might have a go at implementing this myself and see if it comes to anything.
I'm at least a reasonably tolerable person to be around - Narcopic
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Question [NEED HELP] After a successful build & compile (0.8.5): This script is not properly set up yet. John 1 1,109 01-27-2024, 12:07 AM
Last Post: John
  [NEED HELP] cl_gunalign doesn't seem to work on some servers/maps Aguaumreal 2 2,884 09-10-2019, 03:42 AM
Last Post: Aguaumreal
  [NEED HELP] NetRadiant doesn't compile on Mac nokko 3 3,238 03-29-2019, 11:19 AM
Last Post: Freddy
  [BUG] The game seems doesn't recognize virtual 7.1 noctiveqc 2 2,468 02-17-2019, 02:10 AM
Last Post: martin-t
  [NEED HELP] XUbuntu playing with drivers and now Xonotic doesn't start Bla1 9 7,123 05-15-2018, 09:29 PM
Last Post: Bla1
  [SOLVED] linux compile/link error BuddyFriendGuy 2 3,842 11-27-2017, 05:18 PM
Last Post: BuddyFriendGuy
Photo [NEED HELP] When in game, the guns keep firing, sometimes doesn't fire when pointed at a target. U1Y5Y5 3 3,749 09-12-2017, 01:28 PM
Last Post: SpiKe
  [BUG] xonotic-maps ebuild does not compile ZyX 0 2,376 05-01-2017, 10:10 PM
Last Post: ZyX
  [SOLVED] Ubuntu 16.0.4 Compile RedScale12 8 6,897 09-06-2016, 08:40 PM
Last Post: RedScale12
  [SOLVED] Xonotic doesn't work with overwolf Ch4mp 2 3,979 08-12-2016, 02:44 AM
Last Post: Ch4mp

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-