Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
135 stars 2 forks source link

Support Rendering HDR Images To Texture Asset #1664

Open lxw404 opened 5 months ago

lxw404 commented 5 months ago

Is your feature request related to a problem? Please describe.

Currently as far as I am aware, the RenderToTextureAsset ProtoFlux node is only able to render to output formats which clamp its values between $0$ and $1$. This is fine for its main use case of taking pictures, however HDR and unconstrained ranges are also very useful for image synthesis and when capturing exact values is necessary.

Describe the solution you'd like

The RenderToTextureAsset node should allow OpenEXR formatted outputs which are unconstrained in their value ranges.

Describe alternatives you've considered

There is no alternative at the moment that I am aware of.

Additional Context

Use cases:

Requesters

LuxKitty

shiftyscales commented 5 months ago

Seeking feedback from @Geenz.

Frooxius commented 5 months ago

Have you tried providing "exr" as the format to the node?

lxw404 commented 5 months ago

I did try that, which is what initially prompted to open this. It ends up producing an empty image size $-1 \times -1$. I have also tried "HDR" and "OpenEXR" as well with no luck.

Frooxius commented 5 months ago

There's likely an encoding issue there somewhere. Do you have logs for when you tried to do that?

We might also need to make sure that we transfer the texture back into HDR buffer before saving.

lxw404 commented 5 months ago

Here's a log file trying to render to EXR:

RenderToTextureAsset EXR - 2024.4.3.1170 - 2024-04-11 16_00_39.log

Also here is a test object:

resrec:///U-LuxKitty/R-9E016D0F97A51AF05B6FBDFAE2ADAC63963539C4E668259CD8F1221439F4B50E