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

Changing the scale of the terrain/regions #198

Closed
LoipesMas opened this issue Sep 4, 2023 · 3 comments
Closed

Changing the scale of the terrain/regions #198

LoipesMas opened this issue Sep 4, 2023 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@LoipesMas
Copy link

I'm making a game, which operates on a smaller scale than your typical open world game, so I would like to trade size for detail. My map doesn't even fill a single region.

I think a property like "Terrain scale", which would just scale the mesh and the colliders, would solve that issue.

As a workaround, I could scale up everything else, but that's a lot (models, colliders, values in resources and scripts, etc.) and it doesn't seem like a good solution.

#77 and #131 are kinda related, but I don't need more detail in the region, I just need the region to be smaller (while keeping the resolution), so that 1 "pixel" is, for example 0.5m, instead of 1m.

I hope it makes sense and is possible, thanks!

@TokisanGames
Copy link
Owner

TokisanGames commented Sep 4, 2023

#77 and #131 are kinda related, but I don't need more detail in the region, I just need the region to be smaller (while keeping the resolution), so that 1 "pixel" is, for example 0.5m, instead of 1m.

#131 - Change density from 1px=1m to 1px=0.5m or 1px=2m. With a 1024px map, 1024m=512m or 2048m.
#77 - Change region map size from 1024px to 512px or 2048px

Density implies region map size increases to compensate, but I think in the context of #131 alone it is synonymous with scale. It sounds like you want #131 exactly. How is your request different?

@LoipesMas
Copy link
Author

I thought #131 implied changing the region size as well, but thinking about it now, that would be the same thing as #77.
And from what I understood, #77 is harder to do, so I thought just changing the scale would be quicker than changing the size of the textures.

I think wording here is confusing, so I'll try to illustrate it with numbers:

Currently only option:

1024px region_size -> 1024m in game size

What I want:

with scale 0.5
1024px region_size -> 512m in game size
so same amount of data, but occupying smaller area

With #131 (without #77)

If I would set density to 2.0, what would be the result?

  1. 1024px region_size -> 512m in game size
  2. 2048px region_size -> 1024m in game size

I thought it would be 2., that's why I said it was different. But if it would be 1., then that's the same.
I mean, either one would work, but 2. would waste a lot of data (in my case)

With #77 (without #131)

Then I could just set region size to 512px
512px region_size -> 512m
right?


I hope this helped clear things up

@TokisanGames
Copy link
Owner

With #131 without #77
If I would set density to 2.0, what would be the result?
1024px region_size -> 512m in game size
2048px region_size -> 1024m in game size
I thought it would be 2., that's why I said it was different.

2 requires both #131 and #77 and is not possible without it.

With #77 (without #131)
512px region_size -> 512m

Yes

But if it would be 1., then that's the same.
I hope this helped clear things up

Ok, thank you.

@TokisanGames TokisanGames added the duplicate This issue or pull request already exists label Sep 4, 2023
@TokisanGames TokisanGames closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants