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
18 views

Determine if a mesh is visible on the viewport according to current camera

I have been developing an app with three.js but I have encountered this problem and I cannot seem to find any solution to it. I want to determine which meshes are visible right now according to where ...
0
votes
0answers
12 views

three.js trackball control and planes orientation

I'm quite newbie with three.js technology. I have a problem with trackball control. I have one sphere and pictures (PlaneGeometry mesh) positioned in the surface of the sphere I use this to orient ...
0
votes
0answers
8 views

inka3d export loading in three.js

is it possible to load an with inka3d exported project from maya in three.js? i tried the export from three.js for maya but that didn't work. When i export with Inka3d and open the created html file ...
1
vote
1answer
23 views

Shadows are not being casted right on imported OBJ

I am trying to make this object cast a shadow. But there are strange shadows on the edges. I think the object is casting a shadow onto another component of "itself" Is there a way to remove that? ...
0
votes
0answers
7 views

Orthographic camera positioning

I've created a scene of a huge spherical star field using units of lightyears and I want an orthographic camera positioned so it is looking at the origin and is viewing only 15 lightyears accross. I'm ...
0
votes
1answer
13 views

Raycasting against 'subscenes' in three.js

So I am working with the webgl_interactive_cubes.html in the three.js examples, and I have a relatively simple question: Is it possible to test for intersection of a ray with the children of an ...
1
vote
0answers
24 views

three.js object is black before texture loads - can I change this behavior?

I am very new to three.js. In my project you can move through a series of planes with cross section images of an object. The problem is that the material doesn't load right away and moving up and down ...
0
votes
0answers
13 views

How to draw simple square using BufferGeometry?

How can I draw simple square using BufferGeometry? For example BufferGeometry draws 120000 triangles and I want to knock it down to two that form a simple square. <html> <head> ...
0
votes
1answer
28 views

Randomly Generating Low-Poly Terrain

I'm trying to randomly generate terrain in a low-poly style similar to the terrain seen in Cube Slam and this video. I tried experimenting with the webgl_geometry_terrain.html example, but it still ...
1
vote
0answers
19 views

Thee.js - Creating a perpendicular-parallel opacity falloff material

I need some help creating a material in Three.js. What I need is a material with a perpendicular-parallel opacity falloff to the camera viewing direction. So when the viewing direction is ...
1
vote
1answer
20 views

Convert three.js model(s) to svg

I am trying to build a tool which allows the designers to import 3d models (created in 3ds max and converted to three.js json) of parts of furniture and assemble the furniture using these parts by ...
0
votes
1answer
25 views

Three.js CanvasRenderer Artifacts

I am trying to load a collada file using Threejs. All works well, but if I make the object spin I can see that the rendering is not right. Check the image: Here is the code (which was partially ...
0
votes
1answer
26 views

converting script shader to js shader

got the uniforms in e.g uniforms: { "time": { type: "f", value: 0.0 } }, where does e.g. attribute float customFrequency; attribute vec3 customColor; go? tia (just added code I am trying to ...
0
votes
1answer
17 views

Passing in a three.js object into javascript

So basically, I am making a robot object in javascript using Three.js and am passing in the three.js scene variable object I am using to draw the robot parts through the array- for some reason, ...
0
votes
0answers
25 views

Three.js animation not working

Im trying to animate a cube in Three.js, and its not working. It worked before I added the animation, but now it doesn't show up. Theres no errors in the console. I need help. Heres my code: ...

1 2 3 4 5 148
15 30 50 per page