Questions tagged [3d]

3D computer graphics are graphics that use a three-dimensional representation of geometric data stored in the computer for the purposes of performing calculations and rendering 2D images.

3D could mean 3D graphics. 3D graphics usually involve a lot of matrix manipulation and vector mathematics. These matrices will be both affine transformations for manipulating the objects in 3D space (translation, rotation and scaling) and perspective transformations for generating the 2D image required for display. More information about 3D graphics at Wikipedia page of 3D graphics

3D could also mean Stereoscopy. Stereoscopy (also called stereoscopics or 3D imaging) is a technique for creating or enhancing the illusion of depth in an image by means of stereopsis for binocular vision. To generate stereo images two normal displays are generated offset from each other by the distance between the eyes. These are then combined on the display in one a variety of ways (LCD shutter glasses, polarised projections etc.) to generate the 3D effect.

More information on Stereoscopy at Wikipedia page of Stereoscopy

17108 questions
47
votes
1 answer

Bind Poses, Joint Transforms in Collada

I'm trying to export a custom 3D model format to Collada. I've built the Collada data classes through XSD and now problems come when I try to fill them with data, especially for what concerns matrices. My Skeleton class is basically an array of…
Tommaso Belluzzo
  • 23,232
  • 8
  • 74
  • 98
46
votes
4 answers

Converting World coordinates to Screen coordinates in Three.js using Projection

There are several excellent stack questions (1, 2) about unprojecting in Three.js, that is how to convert (x,y) mouse coordinates in the browser to the (x,y,z) coordinates in Three.js canvas space. Mostly they follow this pattern: var elem =…
BishopZ
  • 6,269
  • 8
  • 45
  • 58
45
votes
6 answers

3D reconstruction -- How to create 3D model from 2D image?

If I take a picture with a camera, so I know the distance from the camera to the object, such as a scale model of a house, I would like to turn this into a 3D model that I can maneuver around so I can comment on different parts of the house. If I…
James Black
  • 41,583
  • 10
  • 86
  • 166
44
votes
12 answers

How to "flatten" or "index" 3D-array in 1D array?

I am trying to flatten 3D array into 1D array for "chunk" system in my game. It's a 3D-block game and basically I want the chunk system to be almost identical to Minecraft's system (however, this isn't Minecraft clone by any measure). In my previous…
user925777
44
votes
2 answers

Projecting 3D points to 2D plane

Let A be a point for which I have the 3D coordinates x, y, z and I want to transform them into 2D coordinates: x, y. The projection shall be orthogonal on a plane defined by a given normal. The trivial case, where the normal is actually one of the…
Lighthink
  • 704
  • 1
  • 7
  • 11
43
votes
2 answers

3D Scene Renderer for Python

I'm looking for an easy to use 3D scene renderer for Python. All I'm looking for is to be able to: Load a 3D scene model Render it using an orthographic camera Export the image so I can perform analysis So far the software I've found is either too…
mkrause
  • 1,370
  • 1
  • 10
  • 11
43
votes
4 answers

3d surface plot with xyz coordinates

I am hoping someone with experience can help in how one prepares the shape files from xyz data. A great example of a well-prepared dataset can be seen here for the comet Churyumov–Gerasimenko, although the preceding steps in creating the shape file…
Marc in the box
  • 11,769
  • 4
  • 47
  • 97
43
votes
4 answers

Three.js Projector and Ray objects

I have been trying to work with the Projector and Ray classes in order to do some collision detection demos. I have started just trying to use the mouse to select objects or to drag them. I have looked at examples that use the objects, but none of…
Cory Gross
  • 36,833
  • 17
  • 68
  • 80
42
votes
3 answers

Hashing 2D, 3D and nD vectors

What are good hashing functions (fast, good distribution, few collisions) for hashing 2d and 3d vectors composed of IEEE 32bit floats. I assume general 3d vectors, but algorithms assuming normals (always in [-1,1]) are also welcome. I also do not…
Christian Rau
  • 45,360
  • 10
  • 108
  • 185
42
votes
9 answers

3D Line-Plane Intersection

If given a line (represented by either a vector or two points on the line) how do I find the point at which the line intersects a plane? I've found loads of resources on this but I can't understand the equations there (they don't seem to be standard…
jt78
  • 906
  • 2
  • 10
  • 22
41
votes
5 answers

interpolate 3D volume with numpy and or scipy

I am extremely frustrated because after several hours I can't seem to be able to do a seemingly easy 3D interpolation in python. In Matlab all I had to do was Vi = interp3(x,y,z,V,xi,yi,zi) What is the exact equivalent of this using scipy's…
user1301295
  • 674
  • 1
  • 6
  • 15
40
votes
6 answers

Set of efficient 3D intersection algorithms

Anyone knows a source, website where I can get some good implementations of 3D intersection algorithms, like intersection of sphere and…
Pythagoras of Samos
  • 3,051
  • 5
  • 29
  • 51
39
votes
2 answers

Best 3D Java Engine

Looking for an easy to use 3D Java Engine API (i.e. not wrapper) that has a good community and good development. Extra features (i.e. audio, input, etc.) are not necessary but nice. List of the most popular Java 3D graphics APIs I found: Wrappers /…
worbel
  • 6,509
  • 13
  • 53
  • 63
39
votes
6 answers

ThreeJS camera.lookAt() has no effect, is there something I'm doing wrong?

In Three.js, I want a camera to be pointed at a point in 3D space. For this purpose, I tried using the camera.lookAt function like so: camera.lookAt(new THREE.Vector3(-100,-100,0)); However, I found out that the call has no effect whatsoever. It…
houbysoft
  • 32,532
  • 24
  • 103
  • 156
38
votes
13 answers

Does PyGame do 3d?

I can't seem to find the answer to this question anywhere. I realize that you have to use PyOpenGL or something similar to do OpenGL stuff, but I was wondering if its possible to do very basic 3D graphics without any other dependencies.
eggbert
  • 3,105
  • 5
  • 30
  • 39