Give a PS1 appearance for your Blender 2.8+ renders !
This script is greatly inspired by Komojo's work from the following thread : https://blenderartists.org/t/playstation-1-jittery-texture-effect-not-for-a-game/1167818
This script has also be
current version : V1.3
- v1.3 Updated to be compatible with newer Blender versions (4.0).
- V1.2 Manages vertex groups.
- V1.1 Handles lights according to Komojo's logic. see 'Lighting' part of Readme for more info.
This Python script rounds all vertex coordinates as seen from camera and creates a whole duplicata of the scene with those new coordinates taken into account.
PS1 is known for its texture distorsion due to lack of precision in perspective, or as a famous French Youtuber said : "The walls that are not yet finished cooking" :
The texture distorsion is obtained by twisting polygons. The solution is to render the scene from perspective to orthographic camera's point of view :
- Copy the content of PSXify.py script, not need to download the repo.
- Backup your Blender file just in case.
- In the 'Script' tab, create a new script and paste the content.
- Some settings are necessary :
- Write the camera name,
- The collection containing all the objects you want to PSXify,
- The resolution of the grid you want vertex to snap to,
- The delays between each objects and frame computing (to prevent glitches),
- The depth relative to PSX camera,
- The PSX camera FOV (you have to set it manually for now).
- Launch the script.
- Hide all the collection but the PSXCollection :
- You can then render your animation. Script will update each frame on its own until the end.
In order to add light sources to your PSXified models, some modifications are necessary.
First, add vertex colors to each mesh you want light to apply :
Then multiply the output of your texture by the Attribute 'Col' :
Vertex will now be affected by light source exposure. However, only the light object orientation count. Light strength is determined by 'sun' and 'shadow' variables in the script. Here are previews of some different values combinations :
I noticed some issues that I'm trying to fix :
- The script was currently tested on Blender 2.91. I mentionned Blender 2.8 to talk about recent versions of Blender.
- Walls, Floor and any long models passing behind the camera need to be subdivided at least a little (For instance, the early test room walls and floor have been tiled).
- Objects must be Modifier free. Mirror, Array and such interfere with number of vertex.
- Ensure to backup your Blender file to prevent any damage.
- Eevee rendering is fast but randomly crashes. Cycles seems more stable but renders a bit slower.
Light sources are not handled yet.- Background textures and skyboxes are not handled.
Soft armatures are not handled properly (see sword trail). It may be due to persistent vertex groups.- This script is made for rendering. Script execution is inappropriate for real time 3D.
I would also be very happy to see if my script works well on other people's work. Contact me via Reddit or GitHub. This is my first hosted project on GitHub, I'll try to use this platform properly for further versions.