Difference between revisions of "User:Michelinux/3DGlasses"
(←Created page with '{{Infobox homebrew | title = 3DGlasses | type = library | author = Michelinux | license = LGPL }} == Description == 3DGlasses is a C...') |
|||
Line 1: | Line 1: | ||
− | {{Infobox | + | {{Infobox development tools |
| title = 3DGlasses | | title = 3DGlasses | ||
| type = library | | type = library | ||
| author = [[User:Michelinux|Michelinux]] | | author = [[User:Michelinux|Michelinux]] | ||
− | |||
}} | }} | ||
== Description == | == Description == | ||
3DGlasses is a C library to develop applications that can be seen wearing 3D glasses. | 3DGlasses is a C library to develop applications that can be seen wearing 3D glasses. | ||
+ | |||
+ | This is not a full featured 3D library: is't your responsability to draw objects in correct z-order. | ||
== Development status == | == Development status == | ||
Line 13: | Line 14: | ||
== Supported glasses == | == Supported glasses == | ||
− | Different kind of 3D glasses exists, this library supports the old ones with each lens of a different color; these glasses are called ''anaglyphs''. Most common anaglyphs have a red lens for left eye, and a cyan lens for the right one, also exists glasses with green - magenta and very rare ones with yellow - blue lenses; | + | Different kind of 3D glasses exists, this library supports the old ones with each lens of a different color; these glasses are called ''anaglyphs''. Most common anaglyphs have a red lens for left eye, and a cyan lens for the right one, also exists glasses with green - magenta and very rare ones with yellow - blue lenses; 3DGlasses library supports all of them. |
− | Nowadays 3D films at the cinema are watched with different kind of glasses that require special hardware but anaglyphs are still given with some DVDs (see [http://www.3dmovielist.com/3ddvds.html]) or can be bought for few euros/dollars at eBay. | + | Nowadays 3D films at the cinema are watched with different kind of glasses that require special hardware but anaglyphs are still given with some DVDs (see [http://www.3dmovielist.com/3ddvds.html]) or can be bought for few euros/dollars at eBay or some online store. |
== Geometry == | == Geometry == | ||
Origin of the axis is set at the center of the screen, with x incresing towards right, y increasing towards botton and z increasing towards "internal" of screen. For negative values of z the object appears outside the tv, inside the screen for positive values. | Origin of the axis is set at the center of the screen, with x incresing towards right, y increasing towards botton and z increasing towards "internal" of screen. For negative values of z the object appears outside the tv, inside the screen for positive values. | ||
− | For z = 0, x goes from -320 to 320; perspective makes the range narrower for z < 0 and wider for z > 0. Y scale | + | For z = 0, x goes from -320 to 320; perspective makes the range narrower for z < 0 and wider for z > 0. Y scale may change because the library tryes to keep 1:1 aspect ratio between axis. |
== Configuration file == | == Configuration file == | ||
Line 28: | Line 29: | ||
*distance between viewer and tv | *distance between viewer and tv | ||
Probably this file is created the first time you run an application using 3DGlasses. If you change tv or glasses just delete this file. | Probably this file is created the first time you run an application using 3DGlasses. If you change tv or glasses just delete this file. | ||
+ | |||
+ | == Use of colors == | ||
+ | Since the two eyes see different colors of the image you must avoid pure colors in your applications: if you draw a monochromatic red object it will be seen only by left eye with no 3D effect at all. | ||
== Contacts == | == Contacts == |
Revision as of 16:12, 30 December 2009
3DGlasses | |
General | |
---|---|
Author(s) | Michelinux |
Type | Library |
Description
3DGlasses is a C library to develop applications that can be seen wearing 3D glasses.
This is not a full featured 3D library: is't your responsability to draw objects in correct z-order.
Development status
Early stage
Supported glasses
Different kind of 3D glasses exists, this library supports the old ones with each lens of a different color; these glasses are called anaglyphs. Most common anaglyphs have a red lens for left eye, and a cyan lens for the right one, also exists glasses with green - magenta and very rare ones with yellow - blue lenses; 3DGlasses library supports all of them.
Nowadays 3D films at the cinema are watched with different kind of glasses that require special hardware but anaglyphs are still given with some DVDs (see [1]) or can be bought for few euros/dollars at eBay or some online store.
Geometry
Origin of the axis is set at the center of the screen, with x incresing towards right, y increasing towards botton and z increasing towards "internal" of screen. For negative values of z the object appears outside the tv, inside the screen for positive values.
For z = 0, x goes from -320 to 320; perspective makes the range narrower for z < 0 and wider for z > 0. Y scale may change because the library tryes to keep 1:1 aspect ratio between axis.
Configuration file
The configuration file 3DGlasses.cfg, inside the main directory of your SD, is shared among all applications using this library; this file contains:
- kind of anaglyph in use
- tv size information
- distance between viewer and tv
Probably this file is created the first time you run an application using 3DGlasses. If you change tv or glasses just delete this file.
Use of colors
Since the two eyes see different colors of the image you must avoid pure colors in your applications: if you draw a monochromatic red object it will be seen only by left eye with no 3D effect at all.
Contacts
michelinux AT gmail DOT com