guide

Teleportation

Users in JanusVR are able to teleport through space. These attributes allow web developers to set limits on the minimum and maximum teleport distances.

http://janusvr.com/docs/build/roomtag/index.html#Room

teleport_min_dist - (default "5.0") The minimum cursor distance in meters needed to allow teleporting.
teleport_max_dist - (default "100.0") The maximum cursor distance in meters needed to allow teleporting.

00
356
03/28/2018

Multiplayer Server

Janus VR allows the use of custom multiplayer servers for any room. The Janus VR client will create a new connection to the specified multiplayer server if a connection does not exist, and in addition subscribe to the URL on that server (to listen to and broadcast user events which happen in the room). The custom multiplayer server is specified by adding server and port for the Room.

http://janusvr.com/docs/build/roomtag/index.html#Room

server - (default "presence.janusvr.com") Set to the domain name or IP of the custom multiplayer server for the room.
port - (default "5566") Set to the port of the custom multiplayer server for the room.
rate - (default "200") Set to the update rate (in milliseconds) for connected clients to send updates the multiplayer server.

00
343
03/28/2018

Reset Volume

The Room attribute "reset_volume" defines a volume where if the user enters it, they are brought back to the entrance of the room. This is most commonly used to reset a user who has "fallen" from the geometry of the room and needs to be reset. It is defined by two 3D endpoints of a cuboid/axis-aligned bounding box. The default value effectively acts as an infinite volume below y=-100, so for Rooms where the user is expected to go below this y value, the reset volume should be redefined accordingly.

reset_volume - (default "-FLT_MAX -FLT_MAX -FLT_MAX FLT_MAX -100.0f FLT_MAX", where FLT_MAX is the largest representable floating point value) Set the endpoints of two opposite corners of the reset volume (an axis-aligned bounding box with format "x0 y0 z0 x1 y1 z1").

An example which users corner points (-1000,-500,-1000) and (1000,0,1000):

http://janusvr.com/docs/build/roomtag/index.html#Room

00
328
03/28/2018

Global Environment Probe

JanusVR automatically generates radiance and irradiance maps for global lighting based on the skybox imagery. However, if the user wishes to define their own there are simple markup tags to do so. Radience and Irradience maps must be defined as AssetImages whose source files are .dds format.
Currently this feature only works in JanusVR native while janusweb must use env_map.

http://janusvr.com/docs/build/roomtag/index.html#Room

cubemap_radiance_id - (default "") Defines the radiance map to be used.
cubemap_irradiance_id - (default "") Defines the irradiance map to be used.

00
349
03/28/2018

Text

The Text tag allows the addition of 3D text to the room.

http://janusvr.com/docs/build/roomtag/index.html#Text

00
321
03/28/2018

Link

A Link creates a portal which can be used to connect to another web space or page specified with a URL.

http://janusvr.com/docs/build/roomtag/index.html#Link

draw_glow (default "true") - whether to show the portal glow along the boundary
draw_text (default "true") - whether to show the text at the top of the portal for URL and page title
auto_load (default "false") - if true, the room that the portal links to will be loaded immediately; if false, the portal must first be clicked before it will load the room
thumb_id (default "") - if set to the id of an AssetImage, a "thumbnail image" will be displayed for the portal, useful for indicating what lies through it before it's loaded. The AssetImage content is expected to be square (width and height equal), and the portal will crop the image according to its dimensions to preserve the aspect ratio.
mirror (default "false") - Boolean that determines whether or not the portal will be a mirror. To mirror the room's contents, the url of the link must be that of the containing room.

10
391
03/28/2018

Snow

Snow script created by Spyduck.

http://demos.janusvr.com/JavaScript/index.html

00
353
03/26/2018

Bullet Physics 2

https://vesta.janusvr.com/files/guide/javascript/bulletphysics/bullet.js
#javascript

00
346
03/26/2018

clickball2

Testing bullet physics with a ball

https://vesta.janusvr.com/files/guide/javascript/clickball/ball_pos_equalto_ball.js
#javascript

00
311
03/26/2018

clickball4

https://vesta.janusvr.com/files/guide/javascript/clickball/ball_withpos_reset.js
#javascript

00
372
03/26/2018

Collider1

https://vesta.janusvr.com/files/guide/javascript/colliders/ColliderJS.js
#javascript

00
337
03/26/2018

collider2

Nested example.

https://vesta.janusvr.com/files/guide/javascript/colliders/ColliderJS.js
#javascript

00
309
03/26/2018