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 created a three.js scene that includes a plane that intersects a mesh. What I would like to do is get an array of points for all locations where an edge of the mesh crosses the plane. I have had a good look for solutions and can't seem t...
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've been trying to implement clicking in my webgl app for the last 6 hours and I can't find anything clear enough about this subject.  What I have came up with so far is, in pseudo code:  screenSpace = mousePosition; normalizedScreenSpace =...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.