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
32
votes
12 answers

Find if point lies on line segment

I have line segment defined by these two points: A(x1,y1,z1) and B(x2,y2,z2). I have point p(x,y,z). How can I check if the point lies on the line segment?
AMH
  • 6,363
  • 27
  • 84
  • 135
32
votes
7 answers

Circular rotation around an arbitrary axis

I am programming Starcraft 2 custom maps and got some proglems with math in 3D. Currently I am trying to create and rotate a point around an arbitrary axis, given by x,y and z (the xyz vector is normalized). I've been trying around a lot and read…
Alexander
  • 321
  • 1
  • 3
  • 3
32
votes
6 answers

Which 3D Model format should I be using?

Im writing a game engine and I'm wondering what 3D model format should I use/load/export? Obj seems universal and easy but it also appears to be unreliable in that most models out there contain errors and it doesn't store anywhere near as much as…
Tom J Nowell
  • 9,588
  • 17
  • 63
  • 91
32
votes
2 answers

three.js outer glow for sphere object?

I'm building some sort of planetary system in three.js and I spent couple of hours looking for a decent solution to get an outer glow on one planet - a sphere object with a texture. I came across this example…
Kyeno
  • 592
  • 2
  • 7
  • 16
31
votes
8 answers

Creating a 3D flip animation in Android using XML

I have created a 3D flip of a view using this android tutorial However, I have done it programmatically and I would like to do it all in xml, if possible. I am not talking about simply shrinking a view to the middle and then back out, but an…
Swifty McSwifterton
  • 2,637
  • 1
  • 30
  • 37
31
votes
11 answers

3D modeling for programmers

I'm studying Computer Graphics as part of my curriculum at my university. The course focuses on scene modeling, rather than rendering or other aspects of computer graphics. We're learning the math behind it and OpenSceneGraph to actually run…
Asaf R
  • 6,880
  • 9
  • 47
  • 69
31
votes
6 answers

Suggestion to which C++ 3D engine is better between Ogre, Irrlicht and OpenSceneGraph

I'm quite familiar with 3d graphics (I developed a little and simple 3d game engine for an academic project). But now I have to develop an audio/video tool in C++ that requires also some 3d features inside it, so I can't rely on my little program…
Heisenbug
  • 38,762
  • 28
  • 132
  • 190
31
votes
7 answers

Move camera to fit 3D scene

I'm looking for an algorithm to fit a bounding box inside a viewport (in my case a DirectX scene). I know about algorithms for centering a bounding sphere in a orthographic camera but would need the same for a bounding box and a perspective camera.…
Burre
  • 1,144
  • 2
  • 10
  • 14
31
votes
6 answers

2D outline algorithm for projected 3D mesh

Given: A 3D mesh defined with a set of vertices and triangles building up the mesh with these points. Problem: Find the 2d outline of the projected arbitrarily rotated mesh on an arbitrary plane. The projection is easy. The challenge lies in finding…
rtn
  • 127,556
  • 20
  • 111
  • 121
30
votes
2 answers

Plotting a point on the edge of a sphere

So coming from a flash background I have an OK understanding of some simple 2D trig. In 2d with I circle, I know the math to place an item on the edge given an angle and a radius using. x = cos(a) * r; y = sin(a) * r; Now if i have a point in 3d…
James Hay
  • 12,580
  • 8
  • 44
  • 67
30
votes
1 answer

Embed Unity3D app inside WPF application

I want to develop a new CAD software in WPF and instead of using WPF 3D, is it possible to use Unity3D as my graphic engine that is capable of rotate, pan, zoom and view 3D graphic objects based on my data objects in WPF? The reason I am asking this…
30
votes
3 answers

Recommended file formats and graphics libraries for importing 3D model into OpenGL/C++ project?

If you wanted to: model an object in a 3D editor, e.g. Blender, Maya, etc export the model into a data/file format import the model into an project using OpenGL and C/C++ Then: What file format would you recommend exporting to, i.e. in…
Simone
  • 333
  • 1
  • 3
  • 4
30
votes
1 answer

Three.js - Change Material on Runtime

I have some .js files exported from Blender and load them with THREE.JSONLoader(); my callback: var callback = function( geometry ) { createMesh(geometry); my loading: loader.load( "Models/sculp.js", callback ); my create method: function…
Phipps
  • 355
  • 1
  • 3
  • 10
30
votes
4 answers

Displaying a 3D model in JavaScript/HTML5

I am looking at rendering a 3D model in a browser. What tools should I use/what places should I look at? I don't know what data format the model will be, I can likely request that data to formatted in any way I want. I am looking at three.js but it…
Goro
  • 9,919
  • 22
  • 74
  • 108
29
votes
2 answers

How do I find the orthogonal projection of a point onto a plane

Lets say I have point (x,y,z) and plane with point (a,b,c) and normal (d,e,f). I want to find the point that is the result of the orthogonal projection of the first point onto the plane. I am using this in 3d graphics programming. I want to…
DogDog
  • 4,820
  • 12
  • 44
  • 66