User Tag List

Results 1 to 24 of 24

Thread: Coming Back with a test, prerendered ShadowMaps.

  1. #1
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77

    Coming back with a test, prerendered ShadowMaps.

    Hi, it´s been a long time without being here.

    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.

    Name:  170214b.jpg
Views: 576
Size:  254.1 KB

    (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.
    Last edited by PRUN; 02-14-2017 at 08:30 PM.

  2. #2
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77
    Adding a screenshot of the "white model" with baked shadowmaps.

    Name:  170214c.jpg
Views: 556
Size:  208.2 KB

  3. #3
    0
    I think some people have done it with Vray but it didn't end up looking very good.

    Is your 1st picture actually an unreal scene with the externally baked lightmaps or it's what you want to achieve?

    You're still gonna need to use lightmass because the sphere reflection capture has to bake the reflections though...
    Last edited by heartlessphil; 02-15-2017 at 01:08 AM.

  4. #4
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77
    Yep, the 1st one is how it´s looking into Unreal.

    Quote Originally Posted by heartlessphil View Post
    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.

    Name:  170215.jpg
Views: 535
Size:  192.6 KB

  5. #5
    0
    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.

  6. #6
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77
    Yep, increasing resolution is good, I have allready tried that, but what is worrying me is distortion. Thanks anyway for the tip.

    Meshes are static and stationary lights. I have tried other setups but nope...
    Last edited by PRUN; 02-15-2017 at 07:03 AM.

  7. #7
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77
    Using the screen space reflection max roughness in the post process volume helps a lot with the kind of distortion that i was talking about but it make the things worse with res, mmm...

    I´m having a lot of crashes and freezes with the last build, it´s just me?

  8. #8
    0
    Elite
    Join Date
    Mar 2014
    Posts
    1,446
    The preview build or 4.14.3?

  9. #9
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77
    Build 4.14.3.
    Last edited by PRUN; 02-15-2017 at 08:30 AM.

  10. #10
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77
    Hey, that´s much better, planar reflections seems to work pretty well, a shame that they won´t work with fov.

    Name:  170215b.jpg
Views: 511
Size:  285.0 KB

    (I know the scene is not looking good)

  11. #11
    0
    Without being designed to support lightmaps from outside of UE4 it will not be able to use stuff like that properly for things like reflection/specular and any dynamic lighting

  12. #12
    0
    the problem with planar reflections is that you always get a mirror-like surface... It's like you'd have 1 cm of water on top of your floor hehe!

  13. #13
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77
    m... though shaders are working well with them, reflections are responding to roughnes/specular/metallic. I had to stop the test because incoming work but i´ll continue asap.
    Last edited by PRUN; 02-16-2017 at 05:49 AM.

  14. #14
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77
    Adding picture to the last comment.

    Name:  170216b.jpg
Views: 474
Size:  530.6 KB

  15. #15
    0
    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.

  16. #16
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77
    It does.

    Name:  170217.jpg
Views: 419
Size:  787.0 KB

  17. #17
    0
    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

  18. #18
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77
    Yes, you are right it should be blurring it.

  19. #19
    0
    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
    Attached Images Attached Images  
    Last edited by melvixo; 02-17-2017 at 10:12 PM.

  20. #20
    0
    planar reflections is exactly what he's using and this is the result he gets...

  21. #21
    0
    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.

  22. #22
    0
    Samaritan
    Join Date
    Aug 2015
    Posts
    77
    Delayed...

    Any ideas for a good way to implement a shadowmap like this into materials?

    Name:  170309.png
Views: 258
Size:  137.3 KB

    I´m trying to create a workflow using one shadowmap for each asset.

    What could be better: instances, functions...?

  23. #23
    0
    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.

  24. #24
    0
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •