I´m working in a test using Cycles to bake shadowmaps. This is with intention to do a workaround to lightmass baking since I think that it´s more flexible because it allows to do per object rendering.
Another motivation is that it also allows to do baking using gpu acceleration. Though I´m not having much better results than using cpu for baking, lighting preview in Blender´s viewport using gpu worth it.
The plan is to adjust lighting in a white model using Blender, bake shadowmaps, then shading and render using unreal, no lightmass.
Now, I think that step 1 can work using shadowmaps inside unreal multplying the diffuse maps.
Then trying to do some convincent shading I´m messing it up with reflections. I don´t know if my techniques are outdated, I´m using sphere reflection captures but I´m not having good results.
(model from Blendswap´s DragonautX)
I would like to see i.e. the chairs reflected on the ground or the orange panel reflected on the desk surface.
I think that UE has strong shading capabilities but I´m out of shape. I would really appreciate some feedback, guidelines and thougths to go ahead with the test.
You're still gonna need to use lightmass because the sphere reflection capture has to bake the reflections though...
Yes? that´s the way it works? I thought that spheres work using just the "update reflections" button, actually I´m having some effect from them without using precomputed lighting inside Unreal. Do I need to use the full lightmass calculation to get better results from spheres? I think that what lightmass photons will do is to add some color to the bounced light (diffuse reflections), I´m not sure if it has to do something with specular reflections.
You might be right, I forgot about the update button. By default the sphere capture reflections have a 128x128 resolution. In project settings, under rendering, you can raise it up to 1024x1024. It's quite a difference.
Just to be sure... have you set your meshes and lights to movable or static? I think if they're movable the spheres cannot capture movable objects and movable lights...
Last edited by heartlessphil; 02-15-2017 at 06:31 AM.
The planar reflection actor doesn't take your material's roughness into consideration. It was designed for water, mirrors, glass, etc. It's gonna be 100% reflective. If you have a ultra polished concrete floor it can work but other than that it won't look good.
It does seem to do something with the materials roughness, but it's not accurate at all. Normally, the rougher a surface is, the more spread-out or blurred the reflection will look.
In your case it just looks like the overlaying reflections have their opacity lowered
Nice experiment,Prun. But u could render out animations from blender's viewport with the baked lighting. No need to render every frame with cycles. Is there a reason you are using ue4? For VR or walkthroughs?
Looked up how to turn on planar reflections- https://docs.unrealengine.com/latest...arReflections/
I read this but I couldn't find the Support global clip plane for Planar Reflections in the optimization section as mentioned in the documentation.
Turns out it has been moved to the Edit > Project Settings> Rendering> Lighting section
They should update this in the docs. Just wanted to leave this here in case someone can't find the option using 4.14
I know. I wanted to test it out for stuff like water and mirrors. Couldn't find where to turn it on and realized it was moved contrary to what is written in the ue4 docs. So decided to leave a note incase someone else can't find it. It might be a problem getting some subtle good irregularity roughness details for mirrors though.
By creating a Master material with a parameter AO texture for your shadowmaps ?
You can then instanciate your Master material for each asset and change the shadowmap/AO input (can also be used for all texture inputs ofc).
Last edited by LegendreVR; 03-13-2017 at 03:57 AM.
This works great with ambient occlusion, shadows, color, etc. Make sure when you bake you do not bake reflection channel.. as these need to be dynamic inside of UE as the player moves around the object. I bake AO quite a bit in Vray and then apply the maps inside of UE. https://www.youtube.com/watch?v=JZRw4m51mbI at 2:15 that scene is almost 100% baked in Vray and applied inside of UE with no lightmaps. (did this when I was first learning UE materials and lighting). Including ceiling and floor.