A 3D engine for Construct 2.
To install extract to this folder on your pc.
* obj file loader.
* load textures from files or sprites.
* directional light with shading and shadows.
* zbuffer, and it is drawn within c2’s renderer, so you can put stuff in front and behind it on the layout.
* ability to let you build meshes with events.
The plugin has its own method of keeping track of objects, meshes and textures via text tags. So you can load any number of textures and meshes, and also have objects share them.
There are three object tags available by default: “”, “camera” and “light”. Those are the world space, the camera and the directional light. “” can’t be changed, and light ignores position but otherwise they are complete objects. You can also create new objects via an action.
Each object has position, scale, orientation, mesh, texture, texture rectangle, color, and some settings to tell if it’s affected by fog, shadows, shading or if it’s transparent or a billboard sprite.
When creating an object you can have it copy another and just modify what you want instead of starting from scratch.
You can set the position, orientation, and scale. You can also modify those things too.
When you do the transformations it lets you do stuff relative to other objects with the “relto” parameters.
Rojo3d: move “camera” by (0,0,100) relto:””
Would move the camera’s z by 100 in its world position. But if you wanted more of a move at angle feature you’d do:
Rojo3d: move “camera” by (0,0,100) relto:”camera”
Would move the camera forward relative to its own orientation.
You can also utilize the relto feature to have one object copy the orientation of another:
Rojo3d: set Euler orientation of “obj1” to (0,0,0) relto: “obj2”
The idea is you can mostly get the transformation you want without touching trig or complex math.
Be sure to look at the examples, and check out the actions and expressions. I didn’t cover everything here.