Results 1 to 6 of 6
  1. #1
    MSgt. Shooter Person
    Join Date
    Mar 2010
    Posts
    44

    Default A mirror that changes...

    I don't know whether this belongs here or in the unrealscript section, but I'll guess here.

    I want to make a mirror that is normally just that, a mirror. I'm deciding between using a camera to capture and renderto a texture, or using SceneCaptureReflectActor or something.

    Anyway, the problem is that sometimes I don't want it to act as a mirror. I'm making a lovecraftian style game that tries to bombard you with paranoia. Sometimes when the player isn't looking directly at mirrors, I want the reflection of the player to do things different from what they're doing, have their eyes glow red, have them stare at the player through the mirror, etc. but when you look at the mirror it's normal.

    The coding for the other stuff is something I'll figure out, but making a mirror that is sometimes a mirror and sometimes custom is something I'm just not sure how to do.

    Does anyone have any ideas?

  2. #2
    Palace Guard
    Join Date
    Mar 2008
    Posts
    3,590

    Default

    Well you can't change what's in the reflection, what you'd have to do is use a rendertotexture and have it replicate your level area with the modified look for the character and then use it instead of reflecting what's actually in the level. You could then animate what the material looks like with a materialinstanceconstant which will allow you to modify parameters of your material.

  3. #3
    MSgt. Shooter Person
    Join Date
    Mar 2010
    Posts
    44

    Default

    That could probably work.

    What if I set up a second area for these mirrors that look exactly the same, but have the player model looking creepily toward the camera. Could I use a normal rendertotexture as a reflection and then swap it for a rendertotexture from the second area, wait a couple seconds, and swap back?

  4. #4
    Palace Guard
    Join Date
    Mar 2008
    Posts
    3,590

    Default

    Yeah, that's what I was saying. People have used the technique for things like holograms.

  5. #5
    MSgt. Shooter Person
    Join Date
    Mar 2010
    Posts
    44

    Default

    Yeah, I was just repeating what you said to make sure I understood it properly. Had to phrase it that way so I didn't sound completely dumb when that wasn't what you meant xD.

    I'll try this out when I get a chance, thanks

  6. #6
    MSgt. Shooter Person
    Join Date
    Mar 2010
    Posts
    44

    Default

    Nevermind, all the problems I posted here have been fixed.
    Last edited by spire8989; 05-07-2012 at 11:23 PM.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.