derkreature / IBLBaker

Light probe generation and BRDF authoring for physically based shading.
Other
770 stars 111 forks source link

How to bake texture maps for every mesh in my scene? #16

Open oschakravarthi opened 5 years ago

oschakravarthi commented 5 years ago

Hi,

How to bake texture maps for every mesh in my scene?

I would like to bake the textures programmatically. Is it possible?

If not possible, will you be able to suggest an open source/free library?

Thanks in advance.

derkreature commented 5 years ago

If I understand your question correctly, IBLBaker computes a cubemap probe at “infinity”, I.e., it is unbounded/isn’t localized. It should not be a huge amount of work for you to take the ideas shown in IBL baker and create Parallax Corrected (localized) IBL maps in whatever framework/ engine you are working in: https://www.google.com/amp/s/seblagarde.wordpress.com/2012/09/29/image-based-lighting-approaches-and-parallax-corrected-cubemap/amp/