Announcement

Collapse
No announcement yet.

Simple Portals

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

    #16
    Update 02/02/2020

    Hello again.
    Because UE wiki is dead, I've uploaded this project to github.

    New project location:
    https://github.com/redcatbox/Portals

    New wiki (github):
    https://github.com/redcatbox/Portals/wiki/Overview

    This is final version of everything I had done in it with blueprints + partially migrated to C++ as plugin. But only partially.
    If you need to use BP version only, just remove
    - Plugins
    - Source
    - SimplePortals.uproject_cpp_bkp

    Last edited by redbox; 02-03-2020, 12:35 PM.
    Rocketeer

    my portfolio
    my youtube

    Camera Volumes System
    Instanced Plugin
    Simple Portals
    Water Flow For UDK
    Setup Swarm

    Comment


      #17
      Originally posted by redbox View Post

      Hello.
      This is basic behavior of portal functions. How vectors converted into portal space and from it.
      Here is PortalConvertDirection

      ...

      and PortalConvertLocation fuctions

      ...

      It using TransformDirection, InverseTransformDirection, TransformLocation and InverseTransformLocation functions that includes scale in new transform calculations.
      There are their analogs in C++ that not using scale.

      Additionally, player character handles teleportation itself.
      Blueprint'/Game/GameMode/FirstPerson/BP_FirstPersonCharacter.BP_FirstPersonCharacter'
      In function TeleportationAdvanced you can find how it changes self velocity, location, rotation and scale according to portal parameters.
      Well, it is very basic example of how it should be handled, but I hope you will find it useful.

      Redbox - Well I feel pretty stupid, it was staring me in the face the whole time. I'd completely forgot that transforms had scale built in. Thank you for taking the time to explain as well as the recent project update.

      Comment


        #18
        Friend, have you tried to turn off the Motion Blur and Use the FXAA instead of TemporalAA,I tried this and the portal looks more smooth now.

        Click image for larger version

Name:	Settings.PNG
Views:	142
Size:	84.2 KB
ID:	1729610

        Comment


          #19
          Good point, but anyway, portals texture must be filtered additionally. Ideally in the same way as original scene.
          Rocketeer

          my portfolio
          my youtube

          Camera Volumes System
          Instanced Plugin
          Simple Portals
          Water Flow For UDK
          Setup Swarm

          Comment

          Working...
          X