3D Engine - HD Variant

20,058
0
Published 2016-09-05
This is an optimised spin-off from the 3D renderer, designed for showcasing complex objects imported from .obj files.

TO IMPORT YOUR OWN .OBJ FILE:
See inside and go to the objects sprite and follow the instructions there.

More complex objects can be displayed than the one shown here. However, Scratch has difficulty saving them. Therefore, I have created this forum to share complex objects:
https://scratch.mit.edu/discuss/topic/216701

Several features have been removed from the original renderer:
- Vector text displays (to support phosphorous)
- Filled surfaces
- Spheres and lines
- Shadows
- Background objects
- Full near z clipping
- Delta time (FPS independence)
- Velocity
All these cut-offs mean we managed to reduce the number of scripts in the engine by one half!

One addition in this is tools to help reduce the size of the project. This includes clearing temporary data and optimising the obj file to only include useful data.

Due to the longer loading process, I have also added a status to the loading screen :)

CREDITS:
I used @TheLogFather's in-place sort script:
https://scratch.mit.edu/projects/48447854/

The 3D boy obj file is from http://tf3dm.com/