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

15601 questions
42
votes
3 answers

three.js - How can I dynamically change object's opacity?

This is my object: var object = new THREE.Mesh( geometry, new THREE.MeshLambertMaterial( { map: THREE.ImageUtils.loadTexture( "image.png" ) } ) ); object.position.set(2, 3, 1.5); now after I've created this object in init(); function, I can…
BorisD
  • 2,023
  • 5
  • 23
  • 35
42
votes
3 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
  • 10,579
  • 4
  • 40
  • 87
41
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…
Patryk Czachurski
  • 2,981
  • 5
  • 26
  • 49
40
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
  • 40,548
  • 9
  • 79
  • 153
39
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
  • 43,206
  • 10
  • 106
  • 177
39
votes
2 answers

matplotlib 3d axes ticks, labels, and LaTeX

I am running this sample script, with the following modifications: import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D import numpy as np import matplotlib.pyplot as plt mpl.rcParams['legend.fontsize'] = 10 fig = plt.figure() ax =…
Forklift17
  • 1,477
  • 2
  • 14
  • 24
38
votes
7 answers

Adjust label positioning in Axes3D of matplotlib

I am having trouble with axes labels overlapping ticks labels in matplotlib. I've tried to reposition the labels "manually" by applying transforms or by calling set_y(), but no avail. Here's a snippet that reproduces the problem: import…
38
votes
9 answers

calculating distance between a point and a rectangular box (nearest point)

is there a easy formula to calculate this? i've been working on some math but i can only find a way to calculate the distance directed to the center of the box, not directed to the nearest point.. are there some resources on this problem?
Daniel
  • 391
  • 1
  • 4
  • 5
38
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
  • 35,372
  • 16
  • 60
  • 77
37
votes
8 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
  • 822
  • 2
  • 10
  • 19
37
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 /…
Venus
  • 6,390
  • 12
  • 48
  • 62
36
votes
10 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
36
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,170
  • 1
  • 9
  • 10
36
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
  • 614
  • 1
  • 6
  • 11
35
votes
4 answers

How to calculate inverse kinematics

I want to know how to calculate rotation angles using inverse kinematics. I am planning on using this for real time 3d animation. Anyone know of some good literature that details a specific solution?
Mr Bell
  • 8,864
  • 18
  • 77
  • 124