Skip to content

Raw color/HDR color support #61

@NykolaR

Description

@NykolaR

First of all, love the tool, is amazing to work with.

I'm not sure if this is a bug or a technical limitation, but if you set your voxels color attribute into HDR space, when placed the color value seems to be clamped back into linear range (see screenshot below, left is voxel placed, right is the voxel placement preview rendering correctly). I haven't looked into the source code but am hoping to later this week to see if I can figure it out. Can use material emission to resolve this, but I think the raw color value workflow should also be valid, so that multiple emission levels can be used while keeping material count to a minimum, and just for convenience.

image

EDIT: I feel like I've made some progress, but am still bamboozled. It seems like both the placement preview cube and the voxelmesh are assembled using voxel_tool.gd using SurfaceTool, and are both setting the vertex colors correctly as far as I can tell from debugging, so I can't tell why only the preview mesh is displaying the colors properly. I was thinking it might have to do with how the material on the preview is displayed, but as far as I can tell it's setup in voxel_cursor.gd setup, and doesn't seem to do anything out of the ordinary. For now I feel like I'm at a bit of a dead end, but I'm gonna look at it some more again some other time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions