Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Lavarise mode have missing shader.

Open Orfelius opened this issue 11 years ago • 8 comments

Looks like it is working alright but shader isnt working thus lava is invisible.

Orfelius avatar May 26 '15 18:05 Orfelius

Lavarise modoption doesn't use an actual shader, it just draws a textured plane.

Anarchid avatar May 27 '15 09:05 Anarchid

replay of invisible lava http://zero-k.info/Battles/Detail/384107

Skasi avatar Nov 10 '15 10:11 Skasi

In this commit https://github.com/ZeroK-RTS/Zero-K/commit/0b30472feba0745a5731516c3f22ebb03867bcf0 the whole graphical part of gadget was disabled (commented out) so nothing is drawn.

knorker avatar Nov 11 '15 14:11 knorker

It is not missing shaders. The drawing-part was commented out with comment : "-- Unsynced part should be moved to widget"

but CTR+F "lava" finds no widget. https://github.com/ZeroK-RTS/Zero-K/blob/0b30472feba0745a5731516c3f22ebb03867bcf0/LuaRules/Gadgets/lavarise.lua#L150

Imo it should not be widget because the graphical effect is too important for a player to accidently disable. It is not like fog or rain widgets, it has impact on gameplay by killing units. Imo remove this gadget, it in this state it is no use and mostly played worse than special maps.

knorker avatar Feb 06 '16 09:02 knorker

Widgets can be hidden from the f11 menu, so that's not really a reason to discard the idea. There is no reason to sync drawing code, only to sync the data used as input for the drawing code.

dvr333 avatar Feb 09 '16 20:02 dvr333

The gadget was not removed because it was suggested that in the future it could be made into a gameside API for maps who want to have lava (like hotstepper or Zed). Maps would then supply their own rendering.

Whether that's a sane idea is something to consider.

sprunk avatar Feb 09 '16 21:02 sprunk

Whether that's a sane idea is something to consider.

imo: no.

knorker avatar Feb 10 '16 01:02 knorker

Ditto but let's hear the others.

sprunk avatar Feb 10 '16 02:02 sprunk