GardensOfKadesh / Homeworld

Gardens of Kadesh: A WebAssembly port of Homeworld.
Other
62 stars 11 forks source link

Engine flicker of ships without trails #11

Closed rbrune closed 2 days ago

rbrune commented 3 years ago

E.g. in the opening sequence the motherships engine flickers while it is still supposed to be off. Compare with this recording of the opening sequence: https://youtu.be/1pAK767FfvE?t=304

spartanatreyu commented 4 months ago

If I recall correctly, I think the original game had a flickering engine depending on the renderer chosen.

Could be a bug from before the port...

rbrune commented 4 months ago

Hi, thank you for the input. We mainly work on this gitlab repository at the moment: https://gitlab.com/homeworldsdl/TenhauserGate

From time to time I pull the changes but especially issues are handled over there and on discord.

Speaking of engine flicker. I fixed this in the tenhauser version. If I remember correctly it was a kind of floating point precision issue. E.g. velocity == 0 -> no engine effect, velocity != 0 -> engine glow effect. And due to physics sim precision issues the values switched back and forth between equal and unequal zero.