-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Question: Enclosing and texturing underneath isosurface when using transvoxels #647
Comments
The module doesn't have that feature, and there is no plan to have it. If your camera is looking through meshes, they will be cutoff, and there is no quick way to fill that section the same way the rest of the mesh is generated. I'm not sure if there is an easy way to do this. It seems that you'd have to implement a custom meshing algorithm (which requires modifying the module or write your own mesher in your own module), where the side would have to use marching squares to be filled in. But that's a lot of work. |
Hey Zylann, Wow, thanks for the wicked fast reply. Ah, understood. Yeah, I'm pursuing destructable terrain in fairly controlled viewport for more casual gaming.
Meh. I've been looking for an excuse to march some squares. We'll see if I've the time. Think this would be of interest to anyone else? Or think I'm alone out here?
That was my first kludge thought, but couldn't think of a good way to execute that'd looked polished. I'll explore it a bit.
Clever. Going to play with this idea a bit. Ultimately, I'd like to find something that isn't too fragile, looks good, and keeps the brilliant fast nature of the transvoxel implementation you already have. I don't know etiquette for this repo--feel free to close this, but if ok, I'll report back in the thread if I find a solution. And once again, thanks for the brilliant module! |
Hello, If I understood you well, what I would do is making another VoxelTerrain with the generator negated, I mean, when the generator makes a solid voxel on the other one it will be an air gap. So I could use another material for that parts. The same approach for water, sand, and things that are normally part of a terrain but I need to handle that independently. As you mentioned digging sand I dont expect the player to dig the limits or the "solid" parts. |
When applicable, please describe your setup:
VoxelTerrain
VoxelMeshTransvoxel
VoxelGeneratorGraph
None
4.2.2-stable
To kick it off, thanks to Zylann and all contributors for such a well put together voxel toolset. I'm a data engineer by trade, so I don't know the game dev world, but I do know good OSS when I set it. Great work! And much gratitude.
With that, I hope I've a simple question. Do you have a recommended way to texture the area below the isosurface when using transvoxels?
Specifically, the area highlighted red in the screenshot. The goal is make the under side of the isosurface look like an enclosed volume, textured to look like a cross-section of undug earth.
I don't need fine details, but was curious if someone had a recommended route?
The text was updated successfully, but these errors were encountered: