[Addon] HDR 2 RGBM - Proper lightmap on BGE and viewport

Hello everyone!

HDR 2 RGBM is addon for encoding HDR image to RGBM format. I created this addon because BGE or viewport cannot read HDR texture properly (RGB value always clamped at 1.0). RGBM format can encode any HDR image to standard 8-bit PNG image. This addon can decode RGBM in realtime too, so it can be useful for lightmap or environment map on viewport or BGE.

See video below to see this addon in action.

Github page: https://github.com/ucupumar/hdr-2-rgbm
Demo blend: https://db.tt/289u30n7

Here are some example scenes using the addon.


Viewport screenshot of WIP game. The lighting is baked and encoded with RGBM format.


GLSL viewport render of my sculpt. RGBM encoded texture is used to create reflection highlights.

I hope this addon will be useful for you.
Happy blending!

Wow!!!

Yeh amazing Yusuf! You’re a chief!
Thanks a lot!

This add-on is helping me imagine what my final movie render will look like in the viewport, I make sure to credit you at the end if you don’t mind!
Thank you again for your hard work Yusuf

Thanks for all the comments!

@Unbe.at I really don’t mind at all :smiley:

yet @ucupumar I thanks you so much for your very good add-on.
i hope a lot of people discovery you job now…

Have a nice future week!
Bye bye
Friendly.
Spirou4D

Thanks for a great node add-on Ucupumar. Until we get a full PBR viewport this makes faking it a little easier.

Quick question as a blender newbie. Is it possible to easily add a spherical or cubic environment image that shows in the viewport. As far as I can tell reflection and normal image mapping cover the half sphere that’s orientated towards the camera, so as the camera rotates, the reflection and normal images remain fixed.
Any suggestions.

Thanks for the information.I was hoping for a single node approach, but these show the possibilities.