Libs3D: Difference between revisions

From GiderosMobile
wip
wip
Line 5: Line 5:
=== Description ===
=== Description ===
Gideros can work with 3D, out of the box:
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 Gideros API like ''configureFrustum'', ''3D Matrix'', the ''Mesh'' class, the ''Viewport'' class, ...
*using '''Library/3dbase''' and '''Library/luashader''' folders available in your Gideros installation folder
*using Gideros Library: ''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
*for VR, using the ''Library/oculus'' folder, also available in your Gideros installation folder


=== Gideros API ===
=== Gideros API ===
To get our feet wet, we will start 3D using 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.
To learn more, please head over here: '''<big>[[Libs3D_Mesh|Basic Gideros 3D]]</big>'''
 
To learn more, please head over here:
==== '''[[Libs3D_Mesh|Basic Gideros 3D]]''' ====


=== Gideros Library ===
=== Gideros Library ===
Line 27: Line 24:


To learn more, please head over here:
To learn more, please head over here:
==== '''[[Libs3D_Library_Shapes|Gideros Library Shapes]]''' ====
*Gideros Library Shapes: '''<big>[[Libs3D_Library_Shapes]]</big>'''
==== '''[[Libs3D_Library_Obj|Gideros Library .obj]]''' ====
*|Gideros Library .obj: '''<big>[[Libs3D_Library_Obj]]</big>'''


=== VR ===
=== VR ===

Revision as of 10:38, 16 July 2026

Supported platforms:

Description

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

  • using Gideros API like configureFrustum, 3D Matrix, the Mesh class, the Viewport class, ...
  • using Gideros Library: 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.

To learn more, 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, fog, ...

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.

To learn more, please head over here:

VR

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

TO DO