3dcam-headers/README.md

53 lines
2.1 KiB
Markdown
Raw Normal View History

2021-06-22 17:49:56 +02:00
# 3dcam PSX engine
This a WIP PSX 3d engine. Use this with the [companion blender exporter](https://github.com/ABelliqueux/blender_io_export_psx_mesh) to create levels for the engine.
2021-06-22 20:28:09 +02:00
![3d scene](https://wiki.arthus.net/assets/3d.gif)
![pre-rendered BGs](https://wiki.arthus.net/assets/precalc.gif)
![Push things](https://wiki.arthus.net/assets/push.gif)
![Sprite](https://wiki.arthus.net/assets/sprite.gif)
![Vertex animation](https://wiki.arthus.net/assets/vertexanim.gif)
2021-06-22 17:49:56 +02:00
2021-06-22 17:56:23 +02:00
More video samples [here.](https://tube.fdn.fr/video-channels/psxdev/videos)
2021-06-22 17:49:56 +02:00
## Features
**Be warned this is WIP** !
2021-06-22 20:28:09 +02:00
![comparison](https://wiki.arthus.net/assets/rt-8b-4b.gif)
2021-06-22 17:49:56 +02:00
Real-time 3D / 8bpp background / 4bpp background
### "Engine"
2021-06-22 18:33:47 +02:00
* UV textured models
* Vertex painted models
* Multiple camera modes
* Vertex animations
* Up to 3 light sources
* Use pre-rendered backgrounds (8bpp and 4bpp)
* Basic collisions
2021-06-22 17:49:56 +02:00
## Planned
* Fix and improve all the things !
* Wall collisions
# Compiling
You need to install [mkpsxiso](https://github.com/Lameguy64/mkpsxiso) and the [pcsx-redux emulator and Nugget+PsyQ SDK](https://github.com/ABelliqueux/nolibgs_hello_worlds#setting-up-the-sdk--modern-gcc--psyq-aka-nuggetpsyq) before
you can build the engine. Put `mkpsxiso` and `pcsx-redux` in your $PATH and you should be good to go.
1. Clone this repo in `(...)/pcsx-redux/src/mips/`
2. Navigate to that folder in a terminal :
```bash
cd /pcsx-redux/src/mips/3dcam-headers
```
3. Type `./isotest.sh`. This should compile the example, build an iso with `mkpsxiso` and launch it with `pcsx-redux`.
4. Install the [blender extension](https://github.com/ABelliqueux/blender_io_export_psx_mesh) to create your own levels.
# Credits
PSX code based on [example](http://psx.arthus.net/code/primdraw.7z) by [Lameguy64](https://github.com/Lameguy64)
2021-06-22 18:20:31 +02:00
An incredible amount of help from the good fellows at the [psxdev discord](https://discord.com/invite/EnaNgrqJ?utm_source=Discord%20Widget&utm_medium=Connect),
Including but not limited to @NicolasNoble, @Lameguy64, @Impiaa, @paul, @sickle, @danhans42...