playMaker

Author Topic: Smooth Portals Demo [SAMPLE] [ECOSYSTEM] [SEPTEMBER 2018]  (Read 1114 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14316
  • Official Playmaker Support
    • View Profile
Smooth Portals Demo [SAMPLE] [ECOSYSTEM] [SEPTEMBER 2018]
« on: September 11, 2018, 12:03:15 AM »
Hi Everyone,

Ok, so I just released a very nice demo on the Ecosystem, showing off some a very cool Portal feature to transport the player in a different part of the world.





This is an advanced demo, using only 4 fsm, but the math involved in moving the cameras, transporting player are complex, and requires very advanced understanding of quaternions/rotation and general transforms operation.  So if you are beginning with Unity, and PlayMaker, this might not be the best sample to study.

The original sample is available on github: https://github.com/KillianMcCabe/SmoothPortals

Thanks to the author for letting me work with this demo :)

There is one thing that differ from the original code. Because all PlayMaker Fsm are executed within PlayMaker Framework, we can't have one fsm forced to be executed before another one, unlike scripts ( with script execution order), and so I moved the logic from Update to LateUpdate, which is not the case in the original scripts, the results is exactly the same.

Possible improvement:

-- currently, it's for one player, because the logic to move is on the door, so you can't have two players or npcs going through the portal at the same time, it would result is potential bugs. To solve this, each character should hold the logic to trigger the portal, then the gate is just a trigger and a shows the other world, but is not responsible of deciding about who gets to go through the portal.


Let me know if you have questions :)

Bye,

 Jean

« Last Edit: September 20, 2018, 11:15:50 PM by jeanfabre »

megmaltese

  • Sr. Member
  • ****
  • Posts: 351
    • View Profile
Re: Smooth Portals Demo [ECOSYSTEM] [SEPTEMBER 2018]
« Reply #1 on: September 11, 2018, 02:22:15 PM »
Wow this is cool  :o

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4360
    • View Profile
    • jinxtergames
Re: Smooth Portals Demo [ECOSYSTEM] [SEPTEMBER 2018]
« Reply #2 on: September 11, 2018, 11:12:28 PM »
Hi.
Nice, i saw this one on Brackeys channel.
I was actually planning to make a tutorial for it, but you beat me to it :P
FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14316
  • Official Playmaker Support
    • View Profile
Re: Smooth Portals Demo [ECOSYSTEM] [SEPTEMBER 2018]
« Reply #3 on: September 12, 2018, 09:57:28 AM »
Hi,

 I think it would be great you still do it, just take what I did, then you can concentrate on making the tut itself.

 Bye,

 Jean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4360
    • View Profile
    • jinxtergames
Re: Smooth Portals Demo [ECOSYSTEM] [SEPTEMBER 2018]
« Reply #4 on: September 16, 2018, 10:14:05 PM »
Hi.
I haven't looked yet to your sample, but i think i will try to build myself 1st and then compare it with yours.
Just to see if there will be differences in setting this up. (for educative reasons :) )

After that i will make a video tutorial for it :)
FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14316
  • Official Playmaker Support
    • View Profile
Re: Smooth Portals Demo [ECOSYSTEM] [SEPTEMBER 2018]
« Reply #5 on: September 17, 2018, 04:55:35 AM »
Hi,

 yep, very good idea.

 Bye,

 Jean

Handrews

  • Playmaker Newbie
  • *
  • Posts: 12
    • View Profile
Re: Smooth Portals Demo [SAMPLE] [ECOSYSTEM] [SEPTEMBER 2018]
« Reply #6 on: October 10, 2018, 03:28:29 PM »
I see the portals in black.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14316
  • Official Playmaker Support
    • View Profile
Re: Smooth Portals Demo [SAMPLE] [ECOSYSTEM] [SEPTEMBER 2018]
« Reply #7 on: October 11, 2018, 12:59:41 AM »
Hi,

what version of Unity are you in, is it a fresh project?

 Bye,

 Jean

Handrews

  • Playmaker Newbie
  • *
  • Posts: 12
    • View Profile
Re: Smooth Portals Demo [SAMPLE] [ECOSYSTEM] [SEPTEMBER 2018]
« Reply #8 on: October 12, 2018, 04:12:16 AM »
Unity 2017.4.1f1 (64-bit)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14316
  • Official Playmaker Support
    • View Profile
Re: Smooth Portals Demo [SAMPLE] [ECOSYSTEM] [SEPTEMBER 2018]
« Reply #9 on: October 16, 2018, 12:55:03 AM »
Hi,

 uhm, I can't repro, all works well, fresh project, installed playmaker, ecosystem, downloaded sample and all is ok:



Can you try again on a fresh project, and if that doesn't work, can you zip that project and send it over?

 Bye,

 Jean