Tutorial by Examples

Also known as gaze-based cursor. If we set the cursor to be fuse-based, the cursor will trigger a click if the user gazes at an entity for a set amount of time. Imagine a laser strapped to the user’s head, and the laser extends out into the scene. If the user stares at an entity long enough (i.e., t...
The cursor builds on top of and depends on the raycaster component. If we want to customize the raycasting pieces of the cursor, we can do by changing the raycaster component properties. Say we want set a max distance, check for intersections less frequently, and set which objects are clickable: &l...
To add visual feedback to the cursor to show when the cursor is clicking or fusing, we can use the animation system. When the cursor intersects the entity, it will emit an event, and the animation system will pick up event with the begin attribute: <a-entity cursor="fuse: true; fuseTimeout:...
Adding 3DoF Controllers Controllers with 3 degrees of freedom (3DoF) are limited to rotational tracking. 3DoF controllers have no positional tracking meaning we can’t reach out nor move our hand back-and-forth or up-and-down. Having a controller with only 3DoF is like having a hand and wrist withou...
A camera situated at the average height of human eye level (1.6 meters or 1.75 yard or 5.25 feet). <a-entity camera="userHeight: 1.6" look-controls></a-entity>
When the active property gets toggled, the component will notify the camera system to change the current camera used by the renderer: var secondCameraEl = document.querySelector('#second-camera'); secondCameraEl.setAttribute('camera', 'active', true);
To fix entities onto the camera such that they stay within view no matter where the user looks, you can attach those entities as a child of the camera. Use cases might be a heads-up display (HUD). <a-entity camera look-controls> <a-entity geometry="primitive: plane; height: 0.2; wi...
The camera primitive determines what the user sees. We can change the viewport by modifying the camera entity’s position and rotation. Note that by default, the camera origin will be at 0 1.6 0 in desktop mode and 0 0 0 in VR mode. Read about the camera.userHeight property. <a-scene> <...
To position the camera, set the position on a wrapper . Don’t set the position directly on the camera primitive because controls will quickly override the set position: <a-entity position="0 0 5"> <a-camera></a-camera> </a-entity>
A convenient way to package your application is to write the scripts in your packages.json file and run them with the npm run command { "name": "AppName", "productName": "AppName", "version": "0.1.1", "main": ...
The debug component enables component-to-DOM serialization. <a-scene debug></a-scene> Component-to-DOM Serialization By default, for performance reasons, A-Frame does not update the DOM with component data. If we open the browser’s DOM inspector, we will see only the component names...
The recommended way is to write a component, and attach it to the scene element. The scene and its children will be initialized before this component. AFRAME.registerComponent('do-something', { init: function () { var sceneEl = this.el; } }); <a-scene do-something></a-scene...
Mouse controls are only supported outside the VR modus and could be use for games without a HMD. For more information about mouse controls, you could find in the mouse cursor example. <a-scene> <a-entity camera look-controls mouse-cursor> </a-scene>
Note: For this example you need to add an external npm package. If you want to use a mouse cursor of your computer, you need to add aframe-mouse-cursor-component. After if you must include the script using this code: import 'aframe'; import 'aframe-mouse-cursor-component'; // or this requi...
Detailed instructions on getting google-cloud-dataflow set up or installed.
$logger = $container->get('logger'); This will fetch the service with the service ID "logger" from the container, an object that implements Psr\Log\LoggerInterface.
MayaVI is a 3D visualization tool for scientific data. It uses the Visualization Tool Kit or VTK under the hood. Using the power of VTK, MayaVI is capable of producing a variety of 3-Dimensional plots and figures. It is available as a separate software application and also as a library. Similar to M...
To use Processing in Eclipse, start by creating a new Java project. Then, select File > Import and then choose General > File System to locate the core.jar file. It can be found in PATH_TO_PROCESSING/core/library/ for Windows or /Applications/Processing 3.app/Contents/Java/core/library/ for Ma...
##= # The variable $Bit will hold either 64 or 32 depending on system architecture # This is used with all the ${Service::} macros # Use this in the beginning of your code. # This snippet should only be used once. # Var Bit System::Call "kernel32::GetCurrentProcess()i.s" System::C...
##= #= Service::QueryConfig # # USAGE: # ${Service::QueryConfig} "NAME" /DISABLEFSR $0 $1 # # ::QueryConfig = The service's binary path is returned. # NAME = The Service name # /DISABLEFSR = Disables redirection if x64. Use "" to skip. # $0 ...

Page 1277 of 1336