25
2012
Fake Shadow Ideas: Using Particles as Light Photons?
This is quite an early test.. what if you use particles as “light photons” ? Then no need to do raycasting?
Current features: (main screenshot)
– Shuriken particle system, Shape: Cone, angle:90
– Collision planes on those white boxes (uh..shuriken doesnt support “world collisions”, only infinity planes that you need to manually pick/add..Oo?)
– Take each particle position, draw a light mesh there, currently shown as boxes..code taken from ChunkRenderer
Ideas:
– optimize: only draw outer edges of the light mesh? how to build closed hull from random points in unity?
– particles can bounce, lose strengh = less light? if 1 area has many particles = brighter?
– draw particle location on lowres texture with setpixel instead? and use that as a light or projector mask?
– particles could stop moving after they hit the wall? (then you have outer edges of the light? triangulate that and draw mesh?)
Webplayer:
coming later..
Download source:
coming later..
Related Posts
Leave a comment
Recent posts
- [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
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- 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
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on