IBL BAKING


https://forum.reallusion.com/Topic435431.aspx
Print Topic | Close Window

By wildstar - 5 Years Ago
someone already posted on feedback tracker ibl backing is generating black images ????

By animagic - 5 Years Ago
wildstar (2/8/2020)
someone already posted on feedback tracker ibl backing is generating black images ????

That was a bug a couple of versions ago but was supposed to be fixed...:unsure:

I just tried it, and it works for me.
By wildstar - 5 Years Ago
i trying but i just getting black images , maybe i doing something wrong ???
By 4u2ges - 5 Years Ago
I do not think it works. Most environment diffuse colors are OFF and more on a gray side with IBL baked at 2048x1024.

Worse yet, if you try to bake 4096x2048 iClone would crash.

But that is not all! After the crash you are in a terrible mess originally described in: https://forum.reallusion.com/431430/All-my-new-scenes-are-dark-no-texture-show-up-?PageIndex=1
The texture would not render correctly for any project you open after the crash.


As I did more digging at some point after the fix was introduced in IC7.71, I figured, with IBL baking only 2 maps are involved - diffuse and specular (though as I said, diffuse is not rendered correctly for most props in the scene in an IBL baked image).
For some reason RL force it on the fly into the registry. So when crash occurs during IBL bake, those values are retained in registry and do NOT reset while iClone loaded fresh after the crash.
Any projects opened after the crash would look like this:

https://forum.reallusion.com/uploads/images/fa7070ad-eaae-4c9d-b92b-9624.jpg

STILL does not look right to be with only diffuse and specular (but I leave it for RL to fix)

Temporary fix (to restore correct render) is to modify registry and disable restrictive diffuse/specular.
This is how 2 registry values look like after the crash during IBL bake:
https://forum.reallusion.com/uploads/images/a7905b4c-fb57-4952-93bf-3bfc.jpg


BOTH values have to be set to 0 (PLEASE EXERCISE CAUTION WHILE EDITING REGISTRY!)
https://forum.reallusion.com/uploads/images/4a96ac31-acc7-4c3c-9725-d3c3.jpg


And obviously after the fix all opened projects look normal:
https://forum.reallusion.com/uploads/images/c0a3e533-2863-4dd3-ba7f-3b99.jpg

I never had time to enter this into FT, but I will at some point...  :)
By wildstar - 5 Years Ago
thx for your reply 4u2ges. 

the problem i getting is when i try generate a ibl from my scene i got black images . if i do the things you show about edit registry
i will correct that ??? i believe this is comming wrong since 7.7. cause i never got problems with anterior versions to bake ibl.


By wildstar - 5 Years Ago
i chekc my reg, and both values are on zero, i believe this is not the problem. :(
By Am7add9 - 5 Years Ago
do you place a dummy object in the correct area you want the cam and have it selected?
By 4u2ges - 5 Years Ago
You have to pick a right center point (an object in the scene or a dummy) (around which the 360 would evolve).
Here is an IBL baked from the default Loft Scene (2048x1024). Center point is one of the pillows on a couch.
https://forum.reallusion.com/uploads/images/c0888c22-aabf-4079-a229-13fc.jpg

But I am not sure if it rendered correctly. Most diffuse maps with a few exceptions did not come out right!

Plus, I cannot render 4096x2048. If I do, it would crash iClone and then I need to fix it with registry.


So the registry hack I showed, is to fix iClone after the crash. Otherwise non of the projects would render correctly.

By wildstar - 5 Years Ago
you got same results i got , dark images. 
By wildstar - 5 Years Ago
Am7add9 (2/8/2020)
do you place a dummy object in the correct area you want the cam and have it selected?

yep
By 4u2ges - 5 Years Ago
So it is basically not close to 1:1. You have to overexpose the scene with lights, tweaking them until you get the desired result. Something has changed?

https://forum.reallusion.com/uploads/images/bd37e2df-42d9-4d84-935b-8797.jpg
By animagic - 5 Years Ago
As far as I can remember, it always came out kind of dark. But I think you should judge it when used as IBL, not as a rendered image on its own.

For example, in a scene I'm working on now, I'm using Sunset_2, which comes with iClone. The thumbnail looks really dark, but it is OK in the scene itself.
By 4u2ges - 5 Years Ago
Yes, there is a lot of factors in the scene would affect the Bake, such as Shadows, GI, Ambient occlusion.. etc. - in a way that is hard to *predict*...

So here is a Tip. To preview your scene in view-port as an *IBL bake* (not the 360 - just the image quality aspects), change those 2 registry values mentioned in my above post to 1 and restart iClone.
Now you can tweak the scene as you'd like it to appear in a bake. Bake IBL, change values back to 0 and restart iClone.

Here is an example:


Scene opened and tweaked in IBL bake mode (that is how I named it :)):
https://forum.reallusion.com/uploads/images/01cca916-fca4-4690-8020-fbd6.jpg

and its counterpart after baking (converted to jpeg, just so I can post it):
https://forum.reallusion.com/uploads/images/21277d5a-2367-4b6b-8224-86e0.jpg


And of course it would be nice of RL to have this mode as one of the Real-Time options available in a drop-down.

FT 6659
By Podman1000 - 5 Years Ago
The iClone slpash screen says the version I'm running is 7.41.....yet the version listed in the HUB is 7.71.  Odd. 

Anyway.....I am now having the same problem.  I was studying up in IBL baking, and the program crashed when I wen to do one.  When I started iClone up again, I had the darkening of all my assets problem.  I tried un-installing, and re-installing iClone, updated my Nvidia drivers, etc.  All to no avail.  You can temporarily get around the issue by simply taking the opacity from 100 to 99 on any asset.  Unforuntely, we can't do this with Speedtree assets. On top of that, it's really not a sollution.  It's got to be a registry thing of some kind......I'm guessing. I need help to fix this issue......hello developers.....WTF??
By Podman1000 - 5 Years Ago
The iClone slpash screen says the version I'm running is 7.41.....yet the version listed in the HUB is 7.71.  Odd. 

Anyway.....I am now having the same problem.  I was studying up in IBL baking, and the program crashed when I wen to do one.  When I started iClone up again, I had the darkening of all my assets problem.  I tried un-installing, and re-installing iClone, updated my Nvidia drivers, etc.  All to no avail.  You can temporarily get around the issue by simply taking the opacity from 100 to 99 on any asset.  Unforuntely, we can't do this with Speedtree assets. On top of that, it's really not a sollution.  It's got to be a registry thing of some kind......I'm guessing. I need help to fix this issue......hello developers.....WTF??
By animagic - 5 Years Ago
7.41 is an old version that did have that problem. Help => About iClone 7 will give the version you are currently running.

The Hub has many mysteries that are poorly understood. Is there an update listed under Updates in the Hub?
By Podman1000 - 5 Years Ago
I know......the registry fix info. seems to be different for 7.71.  The one posted was for iClone 6 I believe. I cannot use my program until I find the fix.  HELP!!
By Podman1000 - 5 Years Ago
No.  It is empty.  I downloaded my last re-install from the HUB. I wonder if I can get the program from a different source outside the HUB?
Thx.
By 4u2ges - 5 Years Ago
Reinstalling iClone does not fix the problem with crash after baking IBL. You have to follow the fix I posted earlier: https://forum.reallusion.com/FindPost435456.aspx
And this is the video I made yesterday for my FT ticket


By Podman1000 - 5 Years Ago
Thanks for your help.  I was successful in getting the right iClone 7.71 version installed.  I had to house clean some stuff that didn't delete upon the un-install procedure.  I was hoping that that alone would fix my issue.  As you said in your last msg, it wouldn't, and it didn't.  I did see your earlier msg on the fix.  In  my regedit iClone Preferences directory, there wasn't anything like you described.  No 'OnlyShowDiffuse' commands.  So I created a couple as were in your tutorial, but it still didn't change anything.  The problem persisits.  In your video, you didn't have to re-boot or re-start anything, just re-load your project and it was fine.  I really don't know what else to try or do.
By 4u2ges - 5 Years Ago
What hive are you looking in? It has to be HKEY_CURRENT_USER and not HKEY_LOCAL MACHINE.

Last resort is to delete the whole Preference key as I referenced out in this earlier thread before I pinpointed the problem: https://forum.reallusion.com/FindPost431612.aspx