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
29
votes
9 answers

What's the best way to calculate a 3D (or n-D) centroid?

As part of a project at work I have to calculate the centroid of a set of points in 3D space. Right now I'm doing it in a way that seems simple but naive -- by taking the average of each set of points, as in: centroid = average(x), average(y),…
Marcel Levy
  • 3,407
  • 1
  • 28
  • 39
29
votes
4 answers

Python - Display 3D Point Cloud

I have a .PLY file that contains a 3D Point Cloud: I want to plot it and visualize it in Python. The .PLY file contains ONLY vertex and NOT faces. Could you indicate me a simple Python library that will take care of plotting the 3D Point Cloud? It…
Employee
  • 3,109
  • 5
  • 31
  • 50
29
votes
4 answers

OpenGL rotating a camera around a point

In OpenGL I'm trying to rotate a camera around a point, with camera being distance r from the point and facing the point when it rotates. In other words, I want the camera to move along the circumference of a circle at a radius r from the center,…
Bryan Denny
  • 27,363
  • 32
  • 109
  • 125
29
votes
1 answer

Warp Image to Appear in Cylindrical Projection

I want to warp a flat image in a way that it appears to be the projection coming from a cylinder. I have a flat image like this: and I want to show it as something like this in 2D image: I'm a bit phased out on geometrical projections. I visited…
Usman.3D
  • 1,791
  • 3
  • 16
  • 27
28
votes
2 answers

python 3D visualization and graphics

I am looking for Python compatible 3D graphics. Mostly I would like to be able to draw lines and view them in 3D. I literally have no experience in this area and am looking for knowledge and tutorials. I learn programming best by experimentation. So…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
27
votes
8 answers

Basic render 3D perspective projection onto 2D screen with camera (without opengl)

Let's say I have a data structure like the following: Camera { double x, y, z /** ideally the camera angle is positioned to aim at the 0,0,0 point */ double angleX, angleY, angleZ; } SomePointIn3DSpace { double x, y, z } ScreenData { …
Berlin Brown
  • 11,504
  • 37
  • 135
  • 203
27
votes
8 answers

Whatever Happened to VRML?

Back in the late 1990s, when I was at grad school VRML was going to take over the world. My peers and I built all manner of useful and interesting things with it by hooking it up to Java and Javascript code. Of course back then computers were many…
immutabl
  • 6,857
  • 13
  • 45
  • 76
27
votes
2 answers

3D Vector defined by 2 angles

So basically I'm looking for a way to calculate the x, y and z component of a vector using 2 angles as shown: Where alpha is the 2D angle and beta is the y angle. What I've been using uptill now for 2D vectors was: x = Math.sin(alpha); z =…
Moff Kalast
  • 1,024
  • 1
  • 12
  • 22
27
votes
1 answer

3D Carousel in Android

I am working on 3D Carousel for android. I am using this code and the following is my current output. I want to develop the following 3D shaped carousel. I refered to the following questions which are already asked in SO. How to do 3d Carousel…
DreamsNeverDie
  • 542
  • 2
  • 6
  • 14
27
votes
4 answers

Three.js: What Is The Exact Difference Between Lambert and Phong?

I understand the difference between Lambert and Phong in general computer graphics. I also understand how we can change and create our own materials using three.js. But I cannot work out the difference between MeshLambertMaterial and…
Shane Hudson
  • 717
  • 1
  • 7
  • 19
26
votes
2 answers

How can I set Z up coordinate system in three.js?

In three.js Y axis represent up and down and Z axis represent forward and backward. But I want Z axis to represent up and down and Y axis to forward and backward. Here is a image showing what I want: I want to change the entire coordinate system in…
Mahmudur Rahman
  • 640
  • 1
  • 6
  • 23
26
votes
7 answers

Java 3D plot library?

Ok so I'm doing a project on visualization of some financial stuff in java, the main objective is to take some input from the stock market, run it through a few equations and then plot the result as a 3D plot. I have almost everything done BUT the…
Zenzen
  • 269
  • 1
  • 3
  • 3
25
votes
6 answers

R: using rgl to generate 3d rotatable plots that can be viewed in a web browser?

In the world of the R statistics package, rgl allows me to generate 3d plots that I can rotate with my mouse. Is there a way I can export these plots in a portable format, load them in a web browser or other third party tool and rotate them there? …
Setjmp
  • 27,279
  • 27
  • 74
  • 92
25
votes
9 answers

Beginner's guide to 3D graphics programming

What are the best guides / tutorials / books / websites for someone with minimal experience (or none) in the world of 3D graphics programming? I realize that the fundamentals of 3D graphics and mathematics apply across platform specific 3D library…
Ash
  • 60,973
  • 31
  • 151
  • 169
25
votes
8 answers

How to create a USDZ file?

I tried to look at the main documentation at http://graphics.pixar.com/usd/docs/index.html and http://graphics.pixar.com/usd/docs/Usdz-File-Format-Specification.html but could not find the details to create a usdz file. I can get some sample USD…
Suren Konathala
  • 3,497
  • 5
  • 43
  • 73