![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
altspace-test-ar
Advanced tools
<!-- THIS FILE IS GENERATED FROM README.md.template. EDIT THAT INSTEAD -->
Latest Version: v0.5.0 -- See Changes
The AltspaceVR SDK can be used together with three.js to create holographic, multi-user web apps for virtual reality. When running inside AltspaceVR they can be experienced with consumer VR hardware including the Oculus Rift DK2.
Three.js is an open-source, render-agnostic 3D engine written in Javascript. It is used to construct much of the 3D graphics you see on the web, and can be used to create entire applications, or enhance existing webpages with 3D content.
Getting Started - If you're new to the SDK, start here!
API Reference - Reference for built in API functions, utilities, and more
Developer Portal - Tutorials, projects, initiative program, and app submission
Developer Answers - Questions and answers about the SDK
CodePen - Examples that can be edited live in AltspaceVR
Slack - Chat with other members of the community and AltspaceVR devs. Register for Slack
altspace.js
should be included whenever you use the SDK. It contains core utilities and apis, and is useful both inside and outside of the client.
Many APIs are present in the client without loading altspace.js
, but please still include it, as this may change in the future.
The version baked into the altspace.js script you include will determine which version of the entire SDK that the client will provide your app. This means that if we make any breaking internal changes to things like rendering or cursor events, and you are using an older version of altspace.js
we will try to return legacy behavior appropriate to your version of altspace.js
. Versioning will follow SEMVER as closely as possible. Details for each version can be found in the Release Notes.
To always use the latest version, simply add this script tag to your project:
<script src="http://sdk.altvr.com/libs/altspace.js/latest/altspace.min.js"></script>
or to include a specific version add:
<script src="http://sdk.altvr.com/libs/altspace.js/0.5.0/altspace.min.js"></script>
See the API Reference for full details and a complete list of APIs and utilities.
Note that many of our APIs make use of Promises. Learn about how they work over at HTML5 Rocks
var renderer = altspace.getThreeJSRenderer();
returns a renderer that can be used to render three.js scenes as holographic objects
Holographic objects are limited to the size of the enclosure (1024 x 1024 x 1024 in the apps panel and public 3D browsers, 1280 x 720 x 300 in the browse panel, units are CSS pixels)
The basic way to allow the user to interact with three.js objects in AltspaceVR is by attaching cursor event listeners.
Note that currently every mesh is represented in our physics engine as object aligned cuboids, 80% the size of a full bounding box (basically a stretched cube that contains most of the object). This means that the cursor will not precisely collide with your meshes, and that signifigantly concave objects (buckets, etc) will block contained objects from being clicked on.
mesh.addEventListener('cursorup' / 'cursordown', callback);
listen for cursor events on a specific mesh.
These events will bubble up the three.js hierarchy.
stopPropagation
andstopImmediatePropagation
are supported and work similarly to DOM events
scene.addEventListner('cursormove', callback)
listen for cursor move events
altspace.getEnclosure().then(callback)
pixelsPerMeter
which can be used as a coefficient to maintain static sizes for objects regardless of the scale of the enclosure.altspace.getUser().then(callback)
altspace.getThreeJSTrackingSkeleton().then(callback)
The Debugger is essentially a remote Chrome inspector for AltspaceVR browsers.
OSX Debugger - Windows Debugger
Note that you cannot rename the OSX Debugger from Debugger.app after you extract it, or it won’t run due to legacy .app bundle structure — it needs an Info.plist with metadata.
Currently supported:
Not currently supported:
Habits of Successful AltspaceVR Web Apps:
FAQs
<!-- THIS FILE IS GENERATED FROM README.md.template. EDIT THAT INSTEAD -->
The npm package altspace-test-ar receives a total of 0 weekly downloads. As such, altspace-test-ar popularity was classified as not popular.
We found that altspace-test-ar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.