Difference between revisions of "Libs3D"

From GiderosMobile
 
Line 4: Line 4:
  
 
=== Description ===
 
=== Description ===
Various ways to 3D Gideros.
+
Gideros can work with 3D, out of the box:
 +
*using built in functions like Application ''configureFrustum'', ''3D Matrix'', the '''Mesh''' class, the '''Viewport''' class, ...
 +
*using '''Library/3dbase''' and '''Library/luashader''' folders available in your Gideros installation folder
 +
*for VR, using the '''Library/oculus''' folder, also available in your Gideros installation folder
  
 
=== Gideros API ===
 
=== Gideros API ===
Gideros can work with 3D out of the box in various ways:
+
To get our feet wet, we will start 3D using Gideros API.
* setting the '''Application''' configureFrustum
 
* using '''3D Matrix'''
 
* setting the '''Matrix Projection''' (orthographic/perspective)
 
* using a '''Mesh'''
 
* setting a '''Viewport''' projection matrix
 
  
Let's explore all this here: '''[[Libs3D_Mesh|Basic Gideros 3D]]'''
+
While this is cool, this can quickly get out of hand building more complex shapes.
  
=== '''WIP''' ===
+
Please head over here:
<del>[[Wavefront (OBJ) Loader]]</del>
+
==== '''[[Libs3D_Mesh|Basic Gideros 3D]]''' ====
  
 +
=== Gideros Library ===
 +
To make more advanced games and applications, you would want to add animation, load complex models, add light and normals, ...
 +
 +
Fortunately, our hero and Gideros maintainer (@'''hgy29''') has parsed many 3D formats: .'''obj''', .'''fbx''', .'''gltf''' and '''magicavoxel'''.
 +
 +
All the parsers are available in the '''Library/3dbase folder'''.
 +
 +
For light, normal mapping, fog, ... we use shaders. All the shaders we need are available in the '''Library/luashader''' folder.
 +
 +
Please head over here:
 +
==== '''[[Libs3D_Library|Gideros Library]]''' ====
 +
 +
=== VR ===
 +
If you are into VR, you would want to use the '''Library/oculus''' folder.
 +
 +
'''TO DO'''
  
 
{{GIDEROS IMPORTANT LINKS}}
 
{{GIDEROS IMPORTANT LINKS}}

Latest revision as of 04:28, 27 January 2026

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.pngPlatform linux.png

Description

Gideros can work with 3D, out of the box:

  • using built in functions like Application configureFrustum, 3D Matrix, the Mesh class, the Viewport class, ...
  • using Library/3dbase and Library/luashader folders available in your Gideros installation folder
  • for VR, using the Library/oculus folder, also available in your Gideros installation folder

Gideros API

To get our feet wet, we will start 3D using Gideros API.

While this is cool, this can quickly get out of hand building more complex shapes.

Please head over here:

Basic Gideros 3D

Gideros Library

To make more advanced games and applications, you would want to add animation, load complex models, add light and normals, ...

Fortunately, our hero and Gideros maintainer (@hgy29) has parsed many 3D formats: .obj, .fbx, .gltf and magicavoxel.

All the parsers are available in the Library/3dbase folder.

For light, normal mapping, fog, ... we use shaders. All the shaders we need are available in the Library/luashader folder.

Please head over here:

Gideros Library

VR

If you are into VR, you would want to use the Library/oculus folder.

TO DO