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
37
votes
5 answers

R: Plotting a 3D surface from x, y, z

imagine I have a 3 columns matrix x, y, z where z is a function of x and y. I know how to plot a "scatter plot" of these points with plot3d(x,y,z) But if I want a surface instead I must use other commands such as surface3d The problem is that it…
skan
  • 7,423
  • 14
  • 59
  • 96
37
votes
1 answer

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 clear and logical to me, but in mathematical…
Tschallacka
  • 27,901
  • 14
  • 88
  • 133
36
votes
4 answers

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 3D movement). Unfortunately, all of the examples…
Darren Enns
  • 463
  • 1
  • 5
  • 6
36
votes
7 answers

Are there any good Javascript graphics libraries?

After staring at this 3D cube and these triangles for a while I started wondering if there's any good reliable Javascript graphics library with basic 3D support. Any suggestion?
JohnIdol
  • 48,899
  • 61
  • 158
  • 242
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
  • 9,228
  • 18
  • 84
  • 134
34
votes
4 answers

Three.JS rotate projection so that the y axis becomes the z-axis

Traditionally, in 3D projections, the Y-axis is the axis that represents "up and down". I learned to think of it, with other engines, as that axis being the Z-axis. What I was wondering was whether there is a way in Three.JS to make the Z-axis the…
Alex Turpin
  • 46,743
  • 23
  • 113
  • 145
34
votes
17 answers

Unity, Torque3D, Google O3D, WebGl....which to choose?

for development of interactive 3d web applications, which engine is recommended? I am aware that WebGL has been anounced to become standarized for all browsers in the near future (1~2 years). I am afraid that by investing time into a proprietary…
gpwjg
  • 365
  • 1
  • 3
  • 3
34
votes
12 answers

Perpendicular on a line segment from a given point

I want to calculate a point on a given line that is perpendicular from a given point. I have a line segment AB and have a point C outside line segment. I want to calculate a point D on AB such that CD is perpendicular to AB. I have to find point…
Mohit Vashistha
  • 1,824
  • 3
  • 22
  • 49
33
votes
30 answers

What's the best alternative to C++ for real-time graphics programming?

C++ just sucks too much of my time by making me micro-manage my own memory, making me type far too much (hello std::vector::const_iterator it = lotsOfThingys.begin()), and boring me with long compile times. What's the single best…
Baxissimo
  • 2,629
  • 2
  • 25
  • 23
33
votes
1 answer

Custom WP7 Silverlight control with dynamic 3D content

Ideally I need to implement a WP7 control that can be added to any XAML and which displays a dynamic, interactive 3D scene. Currently I have this implemented via XNA in shared mode, and the UI is rendered on top of the scene using UIElementRenderer.…
SnakE
  • 2,355
  • 23
  • 31
33
votes
8 answers

How can I implement a FPS view with WebGL inside a browser?

I'm using Copperlicht, and I want to create a usable FPS. The demo controls shows why the browser environment makes this a pain. In order to implement FPS camera control, you need to track the relative mouse position - in other words, its motion,…
JRowe
  • 363
  • 4
  • 7
33
votes
5 answers

procedurally generate a sphere mesh

i am looking for an algorithm ( in pseudo code) that generates the 3d coordinates of a sphere mesh like this: the number of horizontal and lateral slices should be configurable
clamp
  • 33,000
  • 75
  • 203
  • 299
33
votes
2 answers

Android OpenGL .OBJ file loader

There seem to be quite a number of OBJ mesh file loaders out there that people have developed for use on the Android platform. I'm wondering if anyone has any experience with these and can offer a recommendation on which one seems to work best for…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
32
votes
4 answers

canvas vs. webGL vs. CSS 3d -> which to choose?

For basic 3d web application i.e. a few cubes, rotation and translation in 3d space - which is better to choose? CSS 3d seems the easiest, but is not supported on IE9 or on the roadmap for IE10, and offers less control than the other options. Canvas…
Elad Katz
  • 7,483
  • 5
  • 35
  • 66
32
votes
5 answers

OpenGL, How to create a "bumpy Polygon"?

I am unsure of how to describe what I'm after, so I drew a picture to help: My question, is it possible within OpenGL to create the illusion of those pixel looking bumps on a single polygon, without having to resort to using many polygons? And if…
Anne Quinn
  • 12,609
  • 8
  • 54
  • 101