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'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 want to achieve is a camera rotation like http://www.keithclark.co.uk/labs/3dcss/demo/ . It's not perfect and sometimes the camera breaks, but that's the idea.   I like the rotation to be similar like a human view, but I only managed t...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.