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

VOXEDIT: Add flat/normal-based/C&C voxel shading mode #520

Open
Metadorius opened this issue Sep 15, 2024 · 2 comments
Open

VOXEDIT: Add flat/normal-based/C&C voxel shading mode #520

Metadorius opened this issue Sep 15, 2024 · 2 comments
Labels

Comments

@Metadorius
Copy link

Metadorius commented Sep 15, 2024

Basically in this mode each cube is rendered flat without any kind of shading if there's no normal information, and the color is picked as if it was a plane with a normal corresponding to the normal vector that this specific cube has.

image

This is how the game is drawing the voxels more or less, basically the game has material parameters for a basic shading model baked in as VPL - basically it defines 256 colors * 32 light levels - which it uses to shade the voxel (screenshot from https://github.com/ThomasSneddon/vxl-renderer, in order to use you have to drop a vxl file onto the .exe though)

image

@mgerhardy mgerhardy added feature request format Voxel or mesh format related labels Sep 16, 2024
@Metadorius
Copy link
Author

Would make sense to have three different variations:

  • unlit colors only, no shading
  • no colors, only shading according to normals (think of how untextured models look)
  • both colors and shading according to normals

@Metadorius
Copy link
Author

For an editor I don't think it's necessary to replicate VPL mechanism exactly, can just use the palette color as an unlit color and then apply your own shading instead of VPL, the point is just to treat the each individual voxel as having one normal vector per all the sides instead of 6 normals orthogonal to sides.

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

No branches or pull requests

2 participants