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

Moving terrain around #62

Closed
Dimev opened this issue Sep 3, 2019 · 8 comments
Closed

Moving terrain around #62

Dimev opened this issue Sep 3, 2019 · 8 comments

Comments

@Dimev
Copy link

Dimev commented Sep 3, 2019

Currently, it's not possible to move the terrains (both normal and lod) around in the scene.

for static terrain, this may not be necessary, but it could be useful in some cases.

@Zylann
Copy link
Owner

Zylann commented Sep 3, 2019

This may be done at some point, but currently it's low priority. It requires thorough reading of every bit of logic taking assumption about world coordinates to add proper conversions into local coords.

@Dimev
Copy link
Author

Dimev commented Sep 4, 2019

So It's more than transforming the meshes + collision and the viewer position + heading.

also, what are the current priorities?

@TokisanGames
Copy link
Contributor

You can move voxels around, just not the whole node. Look in the dmc_test demo for an example. But you might need to change get_stats() to get_statistics() if it complains. Hasn't been updated yet.

Though I can't speak to @Zylann 's priorities, I can say he's currently working on VoxelLodTerrain infinite paging, as well as bug fixes or compiling issues as they are reported.

I think next steps we've chatted about might include getting VLT to support editability, so he can refactor VT to be blocky only and VLT to be smooth only.

@Dimev
Copy link
Author

Dimev commented Sep 4, 2019

Thanks
Moving voxels around can be a temporary solution, but that can get really slow if I want to do it every frame.
Also will VLT support multiple materials like VT does?

@TokisanGames
Copy link
Contributor

Moving voxels around can be a temporary solution, but that can get really slow if I want to do it every frame.

Maybe. If you increase the movement size in the demo, it moves quickly. I'm curious as to what the performance actually looks like with more objects. It might be faster than you think, especially if your code is implemented in C++.

I'm curious about tying a voxel to a physics body. Zylann has added #33 to the future queue and this might be a simpler node that could be moved around more easily by script or maybe the physics engine.

Also will VLT support multiple materials like VT does?

Zylann will have to answer.

@Zylann
Copy link
Owner

Zylann commented Sep 4, 2019

Supporting multiple materials in smooth terrain is a bit trickier than blocky. Blocky is litterally batching pre-made models with sharp corners so it makes sense to provide multimaterials.

Smooth terrain on the other hand is watertight and continuous, so the same problem arise as for heightmap terrain, requiring a different approach like triplanar mapping (like demos do currently) and texture arrays/splatmapping. It's possible to have multimaterials the same ways blocky does but it won't have any smooth transition, or require some sort of deferred shading which Godot doesn't support.

If you need to discuss more about texturing smooth terrain or physics, it would be better to do so in another issue.

@Dimev
Copy link
Author

Dimev commented Sep 4, 2019

Ok, Thanks for the response

@Zylann
Copy link
Owner

Zylann commented Oct 25, 2020

The very latest commits (as of 85bb3d7) include the ability to move, scale and rotate both terrain types.

@Zylann Zylann closed this as completed Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants