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
  [NEED HELP] NetRadiant doesn't compile on Mac nokko 3 290 03-29-2019, 11:19 AM
Last Post: Freddy
  [BUG] The game seems doesn't recognize virtual 7.1 noctiveqc 2 298 02-17-2019, 02:10 AM
Last Post: martin-t
  [NEED HELP] XUbuntu playing with drivers and now Xonotic doesn't start Bla1 10 1,538 05-15-2018, 10:00 PM
Last Post: Lyberta
  [SOLVED] linux compile/link error BuddyFriendGuy 3 1,297 11-27-2017, 08:55 PM
Last Post: Lyberta
Photo [NEED HELP] When in game, the guns keep firing, sometimes doesn't fire when pointed at a target. U1Y5Y5 3 1,106 09-12-2017, 01:28 PM
Last Post: SpiKe
  [BUG] xonotic-maps ebuild does not compile ZyX 0 855 05-01-2017, 10:10 PM
Last Post: ZyX
  [SOLVED] Ubuntu 16.0.4 Compile RedScale12 8 2,679 09-06-2016, 08:40 PM
Last Post: RedScale12
  [SOLVED] Xonotic doesn't work with overwolf Ch4mp 2 1,752 08-12-2016, 02:44 AM
Last Post: Ch4mp
  [SOLVED] cannot compile git code dingus 5 2,280 07-27-2016, 05:13 PM
Last Post: sev
  [SOLVED] Can't compile my map machine! 1 1,681 05-09-2015, 08:47 AM
Last Post: Mirio

Forum Jump:


Users browsing this thread:
1 Guest(s)

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