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
60
votes
4 answers

What to use? Tao, SharpGL, OpenTK, DirectX P/Invoke, XNA, MDX, SlimDX, Windows API Codec Pack

Back in the day it was easy; You made your own 3D stuff, then came DirectX, then came OpenGL. For .Net developers MDX was nice. Then XNA took over for MDX, but it its not the same. XNA seems to be very game-centric with all the content pipelining…
Tedd Hansen
  • 12,074
  • 14
  • 61
  • 97
59
votes
5 answers

Improved Area Lighting in WebGL & ThreeJS

I have been working on an area lighting implementation in WebGL similar to this demo: http://threejs.org/examples/webgldeferred_arealights.html The above implementation in three.js was ported from the work of ArKano22 over on…
wagerfield
  • 900
  • 2
  • 8
  • 11
58
votes
6 answers

Is there a way to import a 3D model into Android?

Is it possible to create a simple 3D model (for example in 3DS MAX) and then import it to Android?
Maciej Gryka
  • 8,181
  • 4
  • 34
  • 30
58
votes
6 answers

How does 3D collision / object detection work?

I'v always wondered this. In a game like GTA where there are 10s of thousands of objects, how does the game know as soon as you're on a health pack? There can't possibly be an event listener for each object? Iterating isn't good either? I'm just…
jmasterx
  • 52,639
  • 96
  • 311
  • 557
57
votes
5 answers

Plot 3D data in R

I have a 3D dataset: data = data.frame( x = rep( c(0.1, 0.2, 0.3, 0.4, 0.5), each=5), y = rep( c(1, 2, 3, 4, 5), 5) ) data$z = runif( 25, min = (data$x*data$y - 0.1 * (data$x*data$y)), max = (data$x*data$y + 0.1 *…
R_User
  • 10,682
  • 25
  • 79
  • 120
57
votes
4 answers

In OpenGL is there a way to get a list of all uniforms & attribs used by a shader program?

I'd like to get a list of all the uniforms & attribs used by a shader program object. glGetAttribLocation() & glGetUniformLocation() can be used to map a string to a location, but what I would really like is the list of strings without having to…
hyperlogic
  • 7,525
  • 7
  • 39
  • 32
54
votes
3 answers

why are draw calls expensive?

assuming the texture, vertex, and shader data are already on the graphics card, you don't need to send much data to the card. there's a few bytes to identify the data, and presumably a 4x4 matrix, and some assorted other parameters. so where is all…
notallama
  • 1,069
  • 1
  • 8
  • 11
53
votes
5 answers

Is WPF 3D good alternate of DirectX and OpenGL for complex applications?

I have used WPF's 3D capabilities for learning, and for a few implementations, and I have found it to be very capable, and I am also learning DirectX 11, and it is very tricky compared to using 3D classes in WPF. I have only used WPF 3D for very…
SpeedBirdNine
  • 4,610
  • 11
  • 49
  • 67
53
votes
7 answers

3 dimension (X, Y and Z) graph using D3.js

I am searching for a graph which has 3 dimensions (x, y, and z) and uses D3.js. Please let me know if there are any data visualization site where I can find such graph or if there is one on d3js.org that I have missed out somehow.
Kish
  • 619
  • 1
  • 7
  • 8
52
votes
8 answers

Calculating a LookAt matrix

I'm in the midst of writing a 3d engine and I've come across the LookAt algorithm described in the DirectX documentation: zaxis = normal(At - Eye) xaxis = normal(cross(Up, zaxis)) yaxis = cross(zaxis, xaxis) xaxis.x yaxis.x …
Dominik Grabiec
  • 10,315
  • 5
  • 39
  • 45
51
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,231
  • 5
  • 25
  • 35
51
votes
10 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
  • 521
  • 1
  • 5
  • 5
50
votes
4 answers

Preferred 3d model format of THREE.JS

What is the preferred 3d model format of THREE.JS which is widely used by 3d modelling softwares (can export to that format). I ask this, because I have my 3d models in an own unique format, and would like to use them in THREE.JS. While I could…
balazs
  • 5,698
  • 7
  • 37
  • 45
49
votes
4 answers

How to calculate Tangent and Binormal?

Talking about bump mapping, specular highlight and these kind of things in OpenGL Shading Language (GLSL) I have: An array of vertices (e.g. {0.2,0.5,0.1, 0.2,0.4,0.5, ...}) An array of normals (e.g. {0.0,0.0,1.0, 0.0,1.0,0.0, ...}) The position of…
user464230
  • 876
  • 2
  • 11
  • 21
49
votes
3 answers

Mesh generation from points with x, y and z coordinates

Problem: Mesh generation from 3D points (with x, y and z coordinates). What I have is points in 3D space (with x, y and z coordinates) you can see it in image 1. What would be the output is image 2 or image 3, or image 4. In short it would be…
Pritesh
  • 3,208
  • 9
  • 51
  • 70