Three.js is a lightweight cross-browser JavaScript library/API used to create and display animated 3D computer graphics on a Web browser. Three.js scripts may be used in conjunction with the HTML5 canvas element, SVG or WebGL.

learn more… | top users | synonyms

0
votes
0answers
4 views

Three.js limit pan in OrbitControls

In Three.js, wow do I add or put limits on how far left/right/up/down a user can pan when using OrbitControls? I'd prefer not to be able to pan so far away that you are unable to see the objects in ...
1
vote
1answer
17 views

Can someone suggest how to - JS World Map/First Person Game Project

I am planning a project for a game where the user can free roam a world in a number of different vehicles etc. The world model needs to be relatively simple but I am trying to research the best way ...
0
votes
0answers
7 views

Hit detection on a Collada object?

I have looked through the examples on http://threejs.org. I have not seen any hit detection related to ColladaLoader objects. Everything there is related to basic mesh shapes. Is hit detection on ...
0
votes
0answers
8 views

ThreeJS geometry flipping

I am facing a problem with geometry flipping, I tried flipping using the negative scale technique but it fails. What is the technique that I can use to flip a 3d object across specific access? By ...
1
vote
0answers
9 views

Using three.js JSONloader to load file at specified url (Django)

I am trying to load a model in Three.js, but am having trouble. I think the issue is that the loader is unable to find the model file, but I am not sure. The following is my file hierarchy: Static ...
0
votes
0answers
13 views

THREE.js Exception when using sceneLoader to load scene created by THREE.js Editor

The error is Uncaught TypeError: Cannot read property 'opacity' of undefined on three.js:12917 The scene file I'm using is: Click to View Scene File(File too big). I've checked and it does load ...
0
votes
0answers
10 views

three.js limit fps (or other way to improve performance) for static object

i'am kind of new to three.js and the whole 3d graphic thing, so the question maybe a bit stupid, but I tried googling it with almost no results. I need to display 3d object, for static scene. It is ...
0
votes
0answers
12 views

javascript three.js raycaster wont pick clones

I'm simply trying to apply raycasting to objects placed on the screen, except theses models are clones of each other: I got two boxes obj files cloned 5 times each in a loop and inserted into an ...
0
votes
0answers
16 views

ThreeJS: Text Sprite's font size difference between WebGL renderer and Canvas renderer

I am using Three JS to develop a 3d graph. I want to show units of a graph as THREE.SPRITE. For creating SPRITE, I have first created a canvas element and added text to it. Then I have created ...
-1
votes
2answers
12 views

How to add shader to THREE.Object3D loaded from STLLoader

I have a model loaded using THREE.STLLoader. var loader = new THREE.STLLoader(); loader.addEventListener('load', function(event) { var mesh = event.content; scene.add(mesh); }); ...
0
votes
0answers
8 views

Generate faces from multiple vectors / existing mesh

is it possible to automatically generate faces from list of vectors ? I have complicated mesh object and i want one of his sides to be automatically generated/closed. Imagine that you have house but ...
0
votes
0answers
14 views

Triangle Grid with Three js and webgl

I am new to webgl. I get how to build single triangles and shapes but what would be the best way of making a whole grid of them similar(and more simple) to this: http://crowquills.com/4601608 Here is ...
0
votes
1answer
13 views

Three.js mesh based on BufferGeometry not appearing

I'm working on a WebGL game using Three.js & I've decided to switch to a BufferGeometry implementation from my (working) regular geometry solution. I'm messing something up, because the mesh does ...
0
votes
0answers
11 views

Threejs shader that that render TMX Layer - tile tearing

I'm trying to follow this solution: TMX-solution But my tiles are tearing at the edges: Any idea on how to solve this issue? Please advise, thanks!
0
votes
0answers
18 views

WebGL - three.js splash-screen / scene-loading issue

I'm new to SOF, so sorry for running out of local habits. // Intro: I'm trying to create a 3d model with kind of splash screen and firstpersonmovement via three.js and it's examples. // Source: ...

15 30 50 per page