Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using terrain layers to change the simulation behaviour #31

Open
alin256 opened this issue Jul 10, 2022 · 6 comments
Open

Using terrain layers to change the simulation behaviour #31

alin256 opened this issue Jul 10, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@alin256
Copy link
Collaborator

alin256 commented Jul 10, 2022

One cool idea for procedural terrain generation would be different geologic layers that affect the steering bias. So when you're in a "hard" layer, maybe it doesn't turn as sharply (and so on). It could be a color lookup like the collision detection.

Originally posted by @gradyh in #2 (comment)

@alin256 alin256 added the enhancement New feature or request label Jul 10, 2022
@alin256
Copy link
Collaborator Author

alin256 commented Jul 10, 2022

There are two things that I can think of that can be affected by the layers

  • When steering from a softer layer to a harder layer there is resistance to steering. Which can be on top or instead of current randomness.
  • When you calculate reflection response from the boulders the speed of sound in different layers is different. Ignoring the fact that there will reflection form any contrast we can account for time that sound-wave spends in each layer but use the constant of the top layer when estimating the seismic respnce.

@Djinn-Indigo
Copy link

Wait, so in that second bullet, are you talking about implementing seismic tomography? (Beyond just outlining the tops of the boulders.) I feel like that's way beyond the simplistic scope of the game... but is also totally awesome. You could even have a sensor deployment phase and a monitor; make it a whole mini game.

@alin256
Copy link
Collaborator Author

alin256 commented Jul 15, 2022

It is already implemented (1st reflection) for the boulders.

How hard can it be?

Disclaimer: my seismic guy is on vacation, so I have no idea what I am doing.

@Djinn-Indigo
Copy link

Djinn-Indigo commented Jul 15, 2022

I'm actually starting school for geophysics in a few months, so it probably wouldn't kill me to take a crack at it. I'll see what I can come up with in a few days. Disclaimer: I also have no idea what I'm doing.

@alin256
Copy link
Collaborator Author

alin256 commented Jul 15, 2022

Keep me updated :)

@alin256
Copy link
Collaborator Author

alin256 commented Aug 1, 2022

@Djinn-Indigo, I have experimented with setting randomness constant to a different value depending on the dirt level.

Here is the code update FYI:
alin256@dcbaa6d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants