playMaker

Author Topic: Photon IsWriting?  (Read 2158 times)

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Photon IsWriting?
« on: November 15, 2019, 05:53:38 PM »
I have an issue with network player "Glitching" into place on start up. The photon demos solve this by activating the object when IsWriting is complete. I know the Playmaker Photon View has an isWriting for the variables, but I would like to check when this is complete, so that I may activate my objects, set its speed etc once complete.

Edit: Maybe there is a simpler way but I achieved this by altering the Playmaker Photon View script to include an FsmEvent that broadcasts on the owner when the IsWriting is complete. Seemed like the best way since the Playmaker Photon View is in control of the variables being sent around. If anyone solved it differently, I would love to know, and if anyone needs help with this direction, I can show you how to do it.
« Last Edit: November 17, 2019, 09:17:03 AM by sebaslive »
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Photon IsWriting?
« Reply #1 on: November 21, 2019, 02:43:02 AM »
Hi,

 Just wait one frame, and then enable the visuals, have you tried that?

Bye,

 Jean

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Photon IsWriting?
« Reply #2 on: November 21, 2019, 12:30:24 PM »
Hey Jean, yes I did. It seems to vary depending on the client I believe and I was getting inconsistent results (It would run before variables were sent over the network for some clients). It’s possible I set up the wait wrong or something but I think getting an event as soon as photon playmaker view was complete made sure I got the same result no matter the client.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Photon IsWriting?
« Reply #3 on: November 22, 2019, 02:28:28 AM »
Hi,

 yes, you are right, I'll see if I can implement that inside the proxy itself so that the reading side only start setting the values when it comes from the stream rather than the server cache.

Bye,

 Jean