All Questions

510
votes
16answers
725543 views

"Cross origin requests are only supported for HTTP." error when loading a local file

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." err...
12
votes
1answers
2797 views

How do I compose a rotation matrix with human readable angles from scratch?

The one thing that has always hindered me from doing 3D programming is failing to understand how math works. I can go along with math fine in programming flow using methods and functions, then its all...
3
votes
2answers
1053 views

Mathematically compute a simple graphics pipeline

I am trying to do / understand all the basic mathematical computations needed in the graphics pipeline to render a simple 2D image from a 3D scene description like VRML. Is there a good example of the...
3
votes
2answers
1938 views

OpenGL - Index buffers difficulties

I have a custom file format that has all the needed information for a 3D mesh (exported from 3ds Max). I've extracted the data for vertices, vertex indices and normals. I pass to OpenGL the vertex da...
10
votes
3answers
22491 views

Three.js - Orthographic camera

I've working on an app wich displays some 3D models. We load the models, create the meshes, add them to the scene...standard procedure. After the last mesh is added, we compute the bounding box in ord...
9
votes
2answers
4441 views

OpenGL ES2 Alpha test problems

I am rendering in 3D multiple objects with textures that have alpha. All the textures load fine but when I try to render them in front of each other I get the following: Left is what I have. Right ...
3
votes
1answers
1032 views

Turning a cylinder into a sphere without pinching at the poles

I'm working on generating a planet made out of a hexagon grid. The poles aren't needed - making this a bit easier. Is there a better way to turn the cylinder into a sphere that would have uniform hexa...
50
votes
2answers
54168 views

Python/matplotlib : plotting a 3d cube, a sphere and a vector?

I search how to plot something with less instruction as possible with matplotlib but I don't find any help for this in the documentation. I want to plot the following things: a wireframe cube cente...
20
votes
3answers
17108 views

Converting 3D position to 2d screen position [r69!]

I need Three.js code to convert 3D object coordinates to 2d ones in a 'div' element so that I can place text labels where they need to be (without those labels scaling/moving/rotating along with the 3...
5
votes
1answers
1076 views

Plotting volumetric data in MATLAB

I am working in Matlab and I have a 3d matrix with dimensions 384x512x160, which is made of 384x512 slices. How can I plot data like that?

Previous Next