I'm trying to load a 3D model into Three.js with JSONLoader, and that 3D model is in the same directory as the entire website.  I'm getting the "Cross origin requests are only supported for HTTP." error, but I don't know what...
I'm building a boardgame in WebGL. The board can be rotated/zoomed. I need a way to translate a click on the canvas element (x,y) into the relevant point in 3D space (x, y, z). The ultimate result is that I want to know the (x, y, z) coordinate...
In a 3D engine I'm working on I've succesfully managed to draw a cube in 3D. The only method to fill the sides is using either a solid color or gradient as far as I'm concerned. To make things more exciting, I'd really love to imple...
I have quite a few objects in my scene so rotating all of them could be a pain. So what is the most easy way to move camera around origin on mouse click and drag? This way all the lights, objects in the scene are in the same location, so the only thi...
I want to select random points on a given sphere. This page explains it quite well:  http://mathworld.wolfram.com/SpherePointPicking.html ("To obtain points such that any small area on the sphere...")  But I'm not entirely sure if I'm...
I made a canvas with shapes in it...the shapes are draggable. Everything seems to work fine...But now I'm trying to figure out how can I detect what shape was selected/dragged?  this is my code: (Javascript)  var container, stats;             var...
I have two objects in my scene. I am using the     <script src="js/controls/LeapTrackballControls.js"  ></script>   for moving the camera, so it feels like the objects is rotating according to the movement of my hand.  The problem...
I'm playing around with Three.js and WebGL and can't quite get the controls the way I want. I chose to try to "roll my own" controls since Three.js's FirstPersonControls do not use pointer lock.  Anyway, I took most of my code fro...
I was playing around with WEBGL and today and a encountered a problem with my cube's vertex  normals .  I checked my code with a cube mesh from internet and it works great.  The thing is that the cube from internet has 24 vertices (4 for each fac...
What I am looking for  Display a grid within a three.js scene that fills the entire scene. In this case, the scene is the whole window.  This grid represents a surface in 3D and can be moved around with the mouse using THREE.TrackballControls This gr...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.