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 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 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...
I have an object with a mesh that uses a semi-transparent png texture.  Is there a flag or option for the MeshBasicMaterial so that the back of the object is visible through the front?  Here is some sample code:  var texture = THREE.ImageUtils.loadTe...
I attempted to use the following code I found on Stack Overflow to export an OBJ from geometry in a Three.js scene. The geometry is being displaced by a GLSL shader so the displacement of vertices doesn't seem to export with the geometry. When I...
Following this topic, I am trying to generate a 3D curved triangle as a NURBS surface, but I don't understand how to set up my 3D points to do that.  Here is the current implementation :  var edges = this.getEdges(), // An edge is a line followin...
You can switch from Three.js Orbit Controls to FirstPerson controls without a problem. But when you go from First Person to Orbit the display gets stuck in a 'mousedown' mode.  What do you need to do to go back and forth between First Person...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.