Difference between revisions of "Libs3D Library"
(wip) |
|||
| Line 3: | Line 3: | ||
== I am ready == | == I am ready == | ||
As we have seen, when it comes to 3D, Gideros has a bunch of helper files packed in the '''Library''' folder. | As we have seen, when it comes to 3D, Gideros has a bunch of helper files packed in the '''Library''' folder. | ||
| + | |||
| + | I will try to impress you with 3D Gideros ✨. | ||
Here is the plan: | Here is the plan: | ||
| Line 10: | Line 12: | ||
* some .fbx animations | * some .fbx animations | ||
| − | + | Create a new Gideros project and add the two folders in the '''''assets''''' folder: | |
| − | |||
| − | Create a new Gideros project and add | ||
*'''3dbase''' | *'''3dbase''' | ||
*'''luashader''' | *'''luashader''' | ||
You can run your project, you should have a blank screen. | You can run your project, you should have a blank screen. | ||
| + | |||
| + | Please create a '''models''' folder, and in this folder an '''objs''' folder. Copy the '''roadtovostok''' asset pack there. | ||
| + | |||
| + | Your file structure should look something like this:</br> | ||
| + | '''YourProjectName''' | ||
| + | *Plugins | ||
| + | *Files | ||
| + | **3dbase | ||
| + | **luashader | ||
| + | **models | ||
| + | ***objs | ||
| + | ****roadtovostok | ||
| + | **''main''.lua | ||
== Rulez == | == Rulez == | ||
| Line 29: | Line 42: | ||
*'''I believe Gideros also imports the origin of the models, so place the origins accordingly''' | *'''I believe Gideros also imports the origin of the models, so place the origins accordingly''' | ||
| + | |||
| + | '''I personally use this Blender add-on: https://extensions.blender.org/add-ons/act-game-asset-creation-toolset/''' | ||
== The assets: '''.obj''' == | == The assets: '''.obj''' == | ||
Revision as of 08:09, 28 January 2026
I am ready
As we have seen, when it comes to 3D, Gideros has a bunch of helper files packed in the Library folder.
I will try to impress you with 3D Gideros ✨.
Here is the plan:
- start with shapes
- add some .obj models
- maybe some .glb files
- some .fbx animations
Create a new Gideros project and add the two folders in the assets folder:
- 3dbase
- luashader
You can run your project, you should have a blank screen.
Please create a models folder, and in this folder an objs folder. Copy the roadtovostok asset pack there.
Your file structure should look something like this:
YourProjectName
- Plugins
- Files
- 3dbase
- luashader
- models
- objs
- roadtovostok
- objs
- main.lua
Rulez
When you work with 3D, you need to follow some "engine" rulez. In Gideros those are:
- the textures shouldn't be embedded in the models. In Blender, use unpack resources:
- your Blender BSDF shaders should look something like:
- Gideros will import the position of the models, so make sure your models are at location 0, 0, 0
- I believe Gideros also imports the origin of the models, so place the origins accordingly
I personally use this Blender add-on: https://extensions.blender.org/add-ons/act-game-asset-creation-toolset/
The assets: .obj
Currently, Gideros supports Base Color, Texture map and Normal Map for the .obj file format.
I have chosen this asset pack: https://roadtovostok.itch.io/road-to-vostok-assets-vol1.
In 3D, the assets you download from the net, often need some adjustement 🤷♂️
I made those adjustements and will use the pack I uploaded here: https://mokatunprod.itch.io/3dpixel-obj-packs. You can download this pack or use your own models.
The Ground
As we are more learning than making a game, we won't really care if the 3D assets don't match 🤷♂️!
I am out 2
To do.
You are strongly encouraged to mess with the code.
Bye for now!


