Coder Social home page Coder Social logo

Raw color/HDR color support about voxel-core HOT 2 OPEN

NykolaR avatar NykolaR commented on June 15, 2024
Raw color/HDR color support

from voxel-core.

Comments (2)

ClarkThyLord avatar ClarkThyLord commented on June 15, 2024

Thanks, I'm glad you found it useful. As to what you're describing, I'm not too sure. From what I understand, you're saying that that the voxels look different in scene than they do in the VoxelSet Editor's VoxelViewer when you're editing them, right?

If that's the case then it might be because the VoxelSet Editor's VoxelViewer uses its own environment, which you can change to your project's environment by right clicking on the VoxelViewer's background and pressing "Change environment" in the context menu. The default environment for the VoxelViewer is here.

From what I understand HDR has more to do with how the used environment is setup, see docs.

from voxel-core.

NykolaR avatar NykolaR commented on June 15, 2024

I can probably explain what's going on a little more clearly, but I'm not sure if it's going to be solvable, from everything I looked at in the voxel core code it seems like it should work, so I either missed something or I feel like it might be something to do with how the SurfaceTool maps vertex colors.

Basically to generate these HDR colors, the 2 main ways to do that are by using emission which currently works great but if you want multiple emission amounts you end up with a bunch of materials being used, and it is a bit of a hassle if using custom shaders on the voxel models instead of the generated ones. You can also get the same HDR effect by setting your albedo to be greater than vec3(1, 1, 1), which you can do in the voxel editor since it uses Godots color selector (so basically, instead of a color being composed of 4 0-255 ints, it's instead composed of 4 floats, see screenshot below for my test voxel color setup)

image

In the VoxelObject when placing these voxels with Raw/HDR colors, the transparent placement preview voxel will correctly react to the environment and glow, but as soon as you place it the color gets clamped down and loses all it's HDR data. If you create a voxel set and set a voxels color to something really high like the above image with the Raw toggle, and start placing it into a scene that has an environment with tonemapping and/or glow postprocess you'll see what I'm talking about right away

from voxel-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.