Git Product home page Git Product logo

Comments (6)

ohlidalp avatar ohlidalp commented on June 11, 2024

Hello.

The 'waves on water' (EDIT) works by creating a grid mesh and shaping it dynamically to simulate a wavy sea, both physically and visually.

(EDIT2) I just atested that the 'waves on water' setting in 'Settings/Graphics' is always affects physics (both vehicle and character) but under HydraX it doesn't apply to graphics. HydraX waves are always visible, even if they don't affect physics.

from rigs-of-rods.

ohlidalp avatar ohlidalp commented on June 11, 2024

I found a crash scenario (Win10, Directx9, PSSM off, configuration=RelWithDebInfo) - OGRE crashes when rendering a frame:
obrazek
Steps to reproduce:

  1. In main menu, go to settings, set water=basic and Waves=on (EDIT: it seems to happen even if you start with Water=Hydrax)
  2. Load a map with water, like 'Small Island' (the one on screenshots below).
  3. Set the 'Waves height' slider in 'Top menubar/Settings' menu to middle value.
  4. Go back to main menu, set water=Hydrax and resume game (EDIT: seems to occur whether you leave 'Waves' on or turn them off)
  5. Go back to main menu again -> crash.

I'd try under Debug but there's a showstopper - the terrain calculates lightmap on background thread, and you can't return to menu until that finished. It takes ~15sec on RelWithDebInfo. On Debug it would take at least 5min. I need to code an option to force-disable lightmap calc to test.

UPDATE: with the new Settings added below, I could test right away. Apparently the culprit is incomplete initialization or cleanup of the previous water.
obrazek

from rigs-of-rods.

ohlidalp avatar ohlidalp commented on June 11, 2024

I managed to reproduce the issue (Win10, Directx9, Visual Studio 2022, config=RelWithDebInfo, terrain=Small Island).
obrazek
Apparently it gets worse the more vehicles (or the more complex vehicle) is simulated.
obrazek

from rigs-of-rods.

ohlidalp avatar ohlidalp commented on June 11, 2024

I couldn't figure anything out from the code, so I added GUI to fiddle with HydraX params...
obrazek

anyway, when I figure out what causes this glitch, I'll try to replicate it as rain effect. It really looks like pouring water.

from rigs-of-rods.

ohlidalp avatar ohlidalp commented on June 11, 2024

Strangely, under Debug, I get this glitch even with simple water, and even if no vehicles are spawned. Probably because under Debug everything is slower by default :)

from rigs-of-rods.

cryham avatar cryham commented on June 11, 2024

Yeah I made a video with this and other bugs some time ago.
And my guess was that you have some uninited vars for water.

from rigs-of-rods.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.