Unvanquished / Unvanquished

An FPS/RTS hybrid game powered by the Daemon engine (a combination of ioq3 and XreaL)
https://unvanquished.net
Other
991 stars 160 forks source link

Missing marks #1101

Open maek opened 5 years ago

maek commented 5 years ago

The engine does not draw any marks (shadows, creep, ...) on surfaces formed by several brushes that have coplanar faces and use the same shader (e.g. map-xyz_source.dpkdir.zip).

maek commented 5 years ago

You can see the missing shadows if you load the map with devmap xyz and enable the 3rd person view with cg_thirdPerson 1. It is worth noting that both the shadows and the creep are correctly drawn on the raised brush.

illwieckz commented 5 years ago

Also, this simple map displays so much weirdness with lines (and is not bloom compatible at all :grin: )

maek commented 5 years ago

@illwieckz I forgot to mention that I built just the bsp (no vis, no light) for the sake of brevity... anyway, I've included the .map so you can experiment as you like :smile:

slipher commented 5 years ago

There's a cvar called r_noMarksOnTrisurfs which defaults to on. Does setting that to 0 do anything?

maek commented 5 years ago

So if I set it to 0 then the issue goes away. Any idea about the reason? Btw I'm testing with -homepath /tmp/.unvanquished/ so everything should be at default.

slipher commented 5 years ago

If you mean any idea about the reason this cvar exists (and can't be set to 0 without cheats enabled!), then no. I just randomly happened to see the cvar a few days ago.

maek commented 5 years ago

Apparently that cvar is for allowing marks on models (md3, ...). The thing is why it's taking that path while with less brushes it is not.

necessarily-equal commented 2 years ago

I just tested r_noMarksOnTrisurfs 0 on chasm and I must say it doesn't seem very useful