More actions
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
|download=https://dlhb.gamebrew.org/dshomebrew/3dsloadertas.7z | |download=https://dlhb.gamebrew.org/dshomebrew/3dsloadertas.7z | ||
|website=https://tassup.itch.io/nds | |website=https://tassup.itch.io/nds | ||
|source=https://dlhb.gamebrew.org/dshomebrew/3dsloadertas.7z | |||
}} | }} | ||
3DS loader + a very simple platform game example. | 3DS loader + a very simple platform game example. |
Revision as of 03:51, 21 Haziran 2023
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/