I have updated some of my Unity3D projects on github, they can be found here: https://github.com/Pixelstudio/
A couple of new projects i have been working on:
A simple statemachine : this allows you to create a statemachine.
An example is included to show a simple menu system.
A render project, contains a photon based renderer and a path tracer.
An example render of the path trace is show at the right. Perhaps some of you have ideas how to speed this up.
For example multithread raycasting (would require you do do you own raycasting.. )
I was calling this from a editorwindow and the weird thing was that i always got a GUILayout error.
After trying to find all possible ways to prevent this from happening i finally figured it out.
use : EditorGUIUtility.ExitGUI(); after the buildplayer command to prevent this error!!!
“Extension methods enable you to “add” methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type. Extension methods are a special kind of static method, but they are called as if they were instance methods on the extended type. For client code written in C# and Visual Basic, there is no apparent difference between calling an extension method and the methods that are actually defined in a type.”
In unity3D this can be very helpfull for allot of things.
a example first, in a static class (i usually call “Extensions”):
Cause of the many request i get here is a new Github project for my skydomescript.
I fixed the script for 3.x, but there could be some errors, im planning to rework some stuff when i have some time.
I’v just uploaded the next version of my terrainpaint script. i released it on github so i hope other people start working on this script and improve it!
I have little time to do it all by myself
Known bugs:
- Previews not correct hight/size
- Preview rotation not correct while painting on normals.
- Preview only takes the first prototype object
- Sometimes previews are missing.
- Size of the brush is wrong when painting on non-planer meshes.
Features:
- Adjusted the shader for the terrain (now supports shadow)
- Added feature : painting objects
- improved the preview