More actions
m (Text replacement - "|download=https://dlhb.gamebrew.org/dshomebrew/" to "|download=https://dlhb.gamebrew.org/dshomebrew2/") |
No edit summary |
||
Line 8: | Line 8: | ||
|version=2006 | |version=2006 | ||
|license=Mixed | |license=Mixed | ||
|download=https://dlhb.gamebrew.org/dshomebrew2/ | |download=https://dlhb.gamebrew.org/dshomebrew2/3dsloader.zip | ||
|website=https://tassup.itch.io/nds | |website=https://tassup.itch.io/nds | ||
|source=https://dlhb.gamebrew.org/dshomebrew2/ | |source=https://dlhb.gamebrew.org/dshomebrew2/3dsloader.zip | ||
}} | }} | ||
3DS loader + a very simple platform game example. | 3DS loader + a very simple platform game example. |
Latest revision as of 11:15, 20 August 2024
3DS Loader Example | |
---|---|
General | |
Author | Tapio Pyrhönen (Tassu) |
Type | Demos |
Version | 2006 |
License | Mixed |
Last Updated | 2006/03/26 |
Links | |
Download | |
Website | |
Source | |
3DS loader + a very simple platform game example.
No keyframe animations supported yet. Only loads vertexes, normals and texture coordinates.
User guide
At this point the 3ds loader is only good for static objects. No animations supported yet. This program just loads a 3ds-files and generates a function that draws them. Its not the best way to load models, but its very easy.
To use the 3DS loader:
- Copy your 3ds-files to the folder /source/3ds.
- Write a list of them to 3dsLoader.ini.
- Run the 3dsConverter.exe. That should output two files. 3dsLoader.h and 3dsData.h.
- Include the 3dsLoader.h to your project. (#include "3ds/3dsLoader.h")
- Use the function "void Draw3DS(int obj_id);" to draw your objects.
- To find out what obj_id is what object, open the file 3dsLoader.h. Theres a list of the id's.
When making the objects, scale them very small. For some reason they turn out as a big mess if the object is too big. Keep them something between about -5 to 5 units high/wide/deep.
External links
- itch.io - https://tassup.itch.io/nds
- Author's website - http://www.sivullinen.fi/nds/