More actions
(Created page with "{{Infobox DS Homebrews |title=3DS Loader Example |image=3dsloadertas.png |description=3DS Loader with a simple platform game example |author=Tapio Pyrhönen (Tassu) |lastupdated=2006/03/26 |type=Demo |version=2006 |license=Mixed |download=https://dlhb.gamebrew.org/dshomebrew/3dsloadertas.7z |website=https://tassup.itch.io/nds }} 3DS loader + a very simple platform game example. No keyframe animations supported yet. Only loads vertexes, normals and texture coordinates....") |
No edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|title=3DS Loader Example | |title=3DS Loader Example | ||
|image=3dsloadertas.png | |image=3dsloadertas.png | ||
|description=3DS Loader with a simple platform game example | |description=3DS Loader with a simple platform game example. | ||
|author=Tapio Pyrhönen (Tassu) | |author=Tapio Pyrhönen (Tassu) | ||
|lastupdated=2006/03/26 | |lastupdated=2006/03/26 | ||
|type= | |type=Demos | ||
|version=2006 | |version=2006 | ||
|license=Mixed | |license=Mixed | ||
|download=https://dlhb.gamebrew.org/ | |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/3dsloader.zip | |||
}} | }} | ||
3DS loader + a very simple platform game example. | 3DS loader + a very simple platform game example. | ||
Line 19: | Line 20: | ||
To use the 3DS loader: | To use the 3DS loader: | ||
* Copy your 3ds-files to the folder /source/3ds | * Copy your 3ds-files to the folder /source/3ds. | ||
* Write a list of them to 3dsLoader.ini | * Write a list of them to 3dsLoader.ini. | ||
* Run the 3dsConverter.exe. That should output two files. 3dsLoader.h and 3dsData.h. | * 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") | * Include the 3dsLoader.h to your project. (#include "3ds/3dsLoader.h") | ||
Line 31: | Line 32: | ||
* itch.io - https://tassup.itch.io/nds | * itch.io - https://tassup.itch.io/nds | ||
* Author's website - http://www.sivullinen.fi/nds/ | * Author's website - http://www.sivullinen.fi/nds/ | ||
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/