traguill / Ezwix-Engine

3D Game Engine
https://traguill.github.io/Ezwix-Engine/
MIT License
1 stars 2 forks source link

-- EZWIX ENGINE --

Author: Guillem Travila

Repository: https://github.com/traguill/Ezwix-Engine

License: https://github.com/traguill/Ezwix-Engine/blob/master/LICENSE.txt

Demo video: https://www.youtube.com/watch?v=dHFYKukKWSc

HOW TO USE IT

Shaders

The last assignment for the engines class was to incorporate shaders in the engine. Here is how it works:

1- Drop the vertex program and/or fragment program to import it. There is a message in the console with the result of the compilation. 2- Go to Window/MaterialCreator 3- Write the path to save the material. Ex: /Assets/test.mat (Must have .mat extension) 4- Choose the vertex and fragment program to use 5- Add all the uniforms that the shader is using. If it's a sampler2D select an imported texture or rendertexture. 6- Click create shader. The result message shows if it has been successful. 7- Select a gameobject with a mesh and material and change the material.

All objects uses the default shader if no material is specified. The default shader uses:

Editor movement

Menu Options

File:

Windows:

Hierarchy

Right mouse click on the window to show the options:

Inspector

Note: all components need to have first a transform component attached. Do NOT try to add a component to a GameObject which it's parent doesn't have a Transform component Do NOT change the position of a static GameObject.

Play/Pause/Next

Press play to start the game simulation. Pause to Stop (and play again to continue). Press stop to end the simulation.

Note: Next button doesn't work yet.

Import New Files

Drag and drop files and/or folders to the application.

Accepted formats:

Assets Window

Left click on a folder/file to show the options. It is possible to modify a texture or mesh and the editor automatically reimports the new files.