Announcement

Collapse
No announcement yet.

RenderTargetCube relflect translucent surface green-ish!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    RenderTargetCube relflect translucent surface green-ish!

    I'm trying to fake reflections with RenderTargetCube. Works pretty well but when my windows reflect others windows via the RenderTarget, they appear green. They don't appear green on the rendertarget texture tho...just in-game.

    My target cube is static, it does not refresh every frame (too demanding). Have an idea?


    Click image for larger version

Name:	renderzook2.jpg
Views:	1
Size:	355.0 KB
ID:	1160540
    Click image for larger version

Name:	renderzook3.jpg
Views:	1
Size:	531.8 KB
ID:	1160541

    #2
    I noticed that this problem doesn't appear in the editor viewport but only at runtime. Weird!

    Comment


      #3
      As there is no update method for the SceneCapture Actor itself, i think the quickest solution is a dirty hack to actualy move the sceneCaptureActor. So in your levelblueprint, get a reference to your SceneCapture actor, get the location and add 0.1 to z or any other axis, just a small increment. This way, the Actor updates itself once at the beginning and it should solve your issues. I am aware that this is a bad hack, but if anyone else has some better idea
      Guido Lein
      Technical Artist - LeFx www.lefx.de

      Comment


        #4
        It's weird...it's not possible to start the level with a static scene capture that you've already captured?

        Comment


          #5
          I found a workaround. If I untick translucency in the sceneCapturecube, then the rendertargetcube texture won't include any translucent objects and at runtime the green 'bug'' won't appear (and objects made of glass neither, like my glass vases, or pool water and windows)... Not a huge deal since the reflection of a window in another window is kinda hard to see anyway.

          Click image for larger version

Name:	aaaaaaaaaaaa.jpg
Views:	1
Size:	435.9 KB
ID:	1086920

          Comment


            #6
            Originally posted by LeFxGuy View Post
            As there is no update method for the SceneCapture Actor itself, i think the quickest solution is a dirty hack to actualy move the sceneCaptureActor. So in your levelblueprint, get a reference to your SceneCapture actor, get the location and add 0.1 to z or any other axis, just a small increment. This way, the Actor updates itself once at the beginning and it should solve your issues. I am aware that this is a bad hack, but if anyone else has some better idea
            Do you know how I could achieve this? I'm a noob with blueprint (and any programming language actually).

            Comment

            Working...
            X