Proof of concept: 3DFaceLight addon



If you want to support further light experiments, etc. please consider:

Buy Me a Coffee at ko-fi.com

3DFaceLight - this is a proof of concept addon to light some of the C3 native objects like 3D Shape and Meshes. 

Warning!

3DFaceLight addon may never progress further from this current implementation. It involves patching the C3 runtime during runtime (specifically the 3DQuad*() functions.) That means it could break at any update of C3 or even cause problems with the current version. It does not update the C3 runtime unless included, in the project, so if it causes problems, it can always be removed from the project.

With a larger number of 3DShapes or Meshes the addon can really chew up CPU perf quickly!

What it does - similar to the new 3DObject light ACEs, this addon adds 3D Face world lighting for C3 3DShapes and Meshes. The lighting system is _separate_ from the 3DObject lighting. To enable it, you also need to include the 3DObject addon in the project. It does not need to be in the layout, but it does need to be included in the project. If you get a crash when running, check that 3DObject is loaded.

It does not support baking and may never support baking.

It really is here to show what could be possible. Perhaps Scirra will investigate once they can see if there is demand or what is possible in different use cases. It is not simple to implement in a performant way (would require changes to vertex shaders, fragment shaders, and C3, baking would be another complication) - so it would be a challenge - they may not want to focus on it.

Please leave pics of what you do with it.

Files

3DShapeFaceLight-1-4-0.c3p 3.3 MB
Apr 27, 2023
3DFaceLight-1-3-0.c3addon 31 kB
Apr 27, 2023
Foggy3DFaceLight-1-0-0.c3p 6.5 MB
Apr 27, 2023

Get Construct 3 3DObject Plugin

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.