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

HDR Lightmap Exporting #35

Merged
merged 9 commits into from
Sep 29, 2021
Merged

HDR Lightmap Exporting #35

merged 9 commits into from
Sep 29, 2021

Conversation

netpro2k
Copy link
Contributor

@netpro2k netpro2k commented Jun 9, 2021

Adds the ability to export lightmap as RGBE .hdr lightmaps. Currently only works with images already in .hdr format (not .exr) but this should be easy to fix down the road. Note that HDR images must be saved before exporting or things will silently fail to export. There is currently not a great way to handle errors like that (see KhronosGroup/glTF-Blender-IO#1411)

This is built against the current GLTF exporter but things may change depending on discussions upstream KhronosGroup/glTF-Blender-IO#1410

"backgroundColor": { "type": "color", "default": "#aaaaaa" },
"backgroundTexture": {
"type": "texture",
"label": "Backgorund Image",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

@@ -150,7 +153,7 @@ def gather_color_property(export_settings, blender_object, target, property_name
c = getattr(target, property_name)
return "#{0:02x}{1:02x}{2:02x}".format(max(0, min(int(c[0] * 256.0), 255)), max(0, min(int(c[1] * 256.0), 255)), max(0, min(int(c[2] * 256.0), 255)))

@cached
# MOZ_lightmap extension data

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did @cached go?
(I don't know what @cached means)

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

Successfully merging this pull request may close these issues.

2 participants