I'm trying to smooth the data I'm getting from the deviceOrientation API to make a Google Cardboard application in the browser.   I'm piping the accelerometer data straight into the ThreeJs camera rotation but we're getting a lot of n...
Been experimenting with ReactVR  and i have few doubts in handling events.As per the documentation in Cusors and Input,finding out the type of event is as easy as reading type of the event.      Events coming into onInput can be further filtered by i...
At first the texture works fine and the video plays as expected, but when VR is entered via VRDisplay.requestPresent it stops. Why is this and how to fix it?...
Has anybody used ThreeJS StereoEffect and Raycaster together for collision detection (in stereo view).  In standard full screen view I can easily check if a Vector2 in the middle of the screen colides with an object in my scene.  When I switch on the...
I don't want a video controller but pause the video and change its current time in JS, what should I do? I have done a lot of research and tried a lot, but it always says" Cannot read property 'pause' of null"....
In my animate() function I have the following code:    if (this.controls.forward) {      // move in direction we look at     var cameraDirectionVector = new THREE.Vector3(0, 0, -1);     cameraDirectionVector.applyQuaternion(this.camera.quaternion);...
i have an 360 degree cinemapicture and i try to make that when you click on something the picture blend from one light cinemapicture to an dark cinemapicture so it looks like the light goes off. Some idea how i code that in a js-function?        <...
I'm relatively new to coding, so please be gentle! I'm working on a project in AFrame for a graphic design class, and need help making part of my concept function.  I'm working on the idea of moving a user through space via checkpoints us...
I am currently developing a tool in my work which will be having augmented reality (AR.js). My problem is that I must display a paragraph of text using A-frame. My question is how to do it?  I am using the <a-text> tag in displaying the text. I...
Following the Minecraft demo. How can I make the blocks not to spawn in the same place? This is the script which spawns the boxes.  There are two approaches which I can think of:    Create a tracking list of the coordinates which I've set up a bo...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.