Portals

Added by ticktock over 2 years ago

Hi,
Could someone tell me what a portal is? I'm actually looking to see if I can teleport my avatar to a different part of a building in my park - can this be done using a portal? If so how?

Thanks!
Ticktock


Replies (5)

RE: Portals - Added by Craig Presti over 2 years ago

I wouldn't recommend using Portals for this, rather just have a box or camera to define the "to" and "from" points. Take a look at the attached IMML for an idea how you might do this.

Use the mouse and keyboard to move the FPS view until you hit the blue box. This will teleport you to the red box.

Hope this helps!

teleport.imml (4.3 kB)

RE: Portals - Added by ticktock over 2 years ago

Thanks, that helped :)!

RE: Portals - Added by AWM Mars over 2 years ago

Are portals going to be used to teleport between parks?

RE: Portals - Added by ticktock over 2 years ago

I was curious about that too. I wanted to isolate a sound such that it would only be heard in one room. I know that you can vary the range to adjust that, but completely isolating it is not really possible as of now. So I was thinking I would just create many separate parks. Can you then teleport to different parks?

RE: Portals - Added by Craig Presti over 2 years ago

Yes the idea with Portals was to allow teleporting and geometric linking between multiple IMML documents. We've not yet enabled most of the functionality related to that, but you can certainly teleport using script.

Check out the VastScript API pdf from here: http://vastpark.com/for_developers

Use this command to teleport to a different document:

scene.ui:navigate('vp://somewhere-else.com/index.imml')

Navigation using relative paths:

scene.ui:navigate('.\\index.imml')

Navigation can also pass data using query strings:

scene.ui:navigate('.\\index.imml?avatar=abc')

(1-5/5)