About Store Forum Documentation Contact



Post Reply 
[SOLVED] Enviroment Map / Cubemap --> No IBL?
Author Message
Fluxor Offline
Member

Post: #1
[SOLVED] Enviroment Map / Cubemap --> No IBL?
I imported some cubemaps that I use in another engine
into a new image set to Environment Map on my travel laptop (Win 10)
to see how they might change the scene lighting in Esenthel.

To my surprise they didn't change anything on the Mesh materials. At all.

Did I miss something here? Usually PBR is IBL based, so different skyboxes
tend to have quite the impact on the scene. Do I have to do something in addition
to what I already did?


According to the docs:
Quote:Environment - Same as "Cube Texture" except its mip-maps will be blurred in a special way, allowing it to be used as Environment Map for PBR

Sounds like it should, no? So I am not sure what went wrong here.

(Maybe multi-channel PRB maps are needed for this to work?
Can't test this until tomorrow though...)
(This post was last modified: 08-30-2021 03:35 PM by Fluxor.)
08-29-2021 06:57 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Enviroment Map / Cubemap --> No IBL?
The environment map has to be passed to D.envMap (speaking from my memory)
08-30-2021 05:20 AM
Find all posts by this user Quote this message in a reply
Fluxor Offline
Member

Post: #3
RE: Enviroment Map / Cubemap --> No IBL?
Yes, D.envMap() is correct, thanks.

Btw: Is it normal that adding a .jpg piece of the cross takes nearly 10 minutes to complete on full CPU?

And isn't it possible to load/convert an already complete .hdr cross into an environment
map?

I have quite a lot of cubemaps (in 6 sperarate pieces as well as already complete ones) and I hope I don't need to literally spend days to import them... haha... Otherwise, four or five of them must suffice for now I guess.

(And it also would be nice to know how to set the skybox in code, so that envMap and Skybox can be both set/changed directly in code instead of a 2-step process. I tried
Code:
Sky.skybox(UID(xxx.xxx.xxx.));
compiles, but doesn't work. I guess the skybox needs to be set i Game.World.settings,
but I am not sure know how to do that.)
(This post was last modified: 08-30-2021 05:00 PM by Fluxor.)
08-30-2021 03:35 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: [SOLVED] Enviroment Map / Cubemap --> No IBL?
It might be slow if textures are not power of 2 and need to be rescaled by waifu 2x which is super slow but has super quality.

Sky.skybox(UID(xxx.xxx.xxx.));
This should work as long as you're using ID of an image (and not some other element) also the image should be imported as cube map or environment map and not soft or 2d/3d
09-03-2021 07:21 AM
Find all posts by this user Quote this message in a reply
Fluxor Offline
Member

Post: #5
RE: [SOLVED] Enviroment Map / Cubemap --> No IBL?
Okay thanks, I will re-check that.
09-03-2021 12:16 PM
Find all posts by this user Quote this message in a reply
Post Reply