27
2012
Simple Shadow Casting Algorithm
Converted part of this code into Unity(js) : A Simple Algorithm For Casting Shadows Screenshot info: – Red lines = from camera to vertex – Green lines = from vertex to ground – Blue lines = shadow plane vertices (no plane on this version yet, […]
24
2012
Ray Tracing & Photon Mapping (Unity3D C#)
Converting some ray tracing code from java/processing (original source by Grant Schindler/2007) 1st version works fine already, just missing the user interactions.. (and its quite slow at the moment) Current progress: v1.0 – 512×512 render: time 23.65258s (got it down to 16.54801s, if disable preview […]
20
2012
Wipe transition (Shader)
Wipe shader test.. Modified unity version from the original glsl shader “postpro” by iq (2009) Webplayer: http://unitycoder.com/upload/demos/mWipeShader/ Source: (shader)
19
2012
Bresenham’s line algorithm (Unity javascript)
* image from wikipedia, public domain Converted this function to Unity javascript: http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm Notes:It works.. Webplayer:http://unitycoder.com/upload/demos/Bresenhamline/ Download webplayer source:Bresenham.unitypackage old unityscript sourcehttps://gist.github.com/unitycoder/90f0f1896e38a13d98e3d0c84ea45789
15
2012
Xiaolin Wu’s line algorithm to Unity Javascript
Converted this function to Unity3D Javascript : http://en.wikipedia.org/wiki/Xiaolin_Wu%27s_line_algorithm (Still has few bugs left..see that vertical line in screenshot..) Webplayer: coming later Can anyone find the error in this code? Why doesnt it draw vertical lines..? !note, couple lines are commented out, swapping x<>y, if I […]
14
2012
2D Fluids with Cellular Automata
2D Fluids test.. Trying to make water like this (see forum link), but in 2D (like the original java link there) First version works.. but using SetPixel, which is slow.. *Updated screenshot, added webplayer Currently its drawing those boxes with setpixel.. *Check also the newer […]
14
2012
Walking Block Rotation
Testing rotating / walking block code.. (as seen in many puzzle games) Current progress: – Screenshot: Step.1 and Step.2 (going towards right direction) – Can walk one direction.. – Need to add smooth movement (now it rotates 90 degrees instantly) *This one failed.. not going […]
8
2012
Object placement & pickup with mouse
Testing.. related to this topic: http://forum.unity3d.com/threads/118581-Placing-object-on-mouse-down Controls: Left mouse button, place object While placing object, hold mousebutton down to keep moving the object With left mouse button, you can pick previously added objects (hold button down to move them) Webplayer: (flash) http://unitycoder.com/upload/demos/mMousePlacementPick1/ Download example scene: […]
7
2012
Deflector (proto)
Delfector concept demo..(kind of) Play the original game here > http://c64s.com/game/809/deflektor/ Webplayer: (flash) http://unitycoder.com/upload/demos/mDeflectorProto1/ *Lens flare seems to be bugged in flash player.. Download source: coming later..
6
2012
Noob Triangulator (js)
Testing mesh (triangle) generation.. (screenshot: random mesh plane) The REAL Triangulator is here: http://wiki.unity3d.com/index.php/Triangulator (it can handle complex shapes etc.) My javascript triangulator works by adding 1 vertex in the middle, and every triangle will point to it. I was thinking could use this for drawing […]
Recent posts
- MotionVector Effect: Object “disappears” when paused
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
Recent Comments
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on