Browsing articles tagged with " grid"
Aug
5
2013

FOV Using Recursive Shadowcasting

Converted this script to unity: FOV Using Recursive Shadowcasting, for a quick test.. Instructions: – Attach the script to a plane – use Unlit/Texture shader as material (then no need lights..) – Move main camera so that it sees the plane TODO: – Use this […]

Aug
3
2013

2D Grid Fake Shadow

Using the same code from previous 2D Raycasting Visibility Voxel Travelsal, but added dynamic grid array update (using screenshots..), so now the walls (obstacles) are updated realtime on the 2D grid. FEATURES: – Converted the whole thing to C# – Any object visible to camera can […]

Apr
14
2013

Heightmap Chunk

Saw this in the forums (simpleminecraft), sounds interesting!. Havent looked at their sources yet, but made own test version first.. Current version: – Single chunk.. – Chunk creator (random or perlin) – 2D array for grid heights – 3D array for grid cell types – […]

Apr
8
2013

Eulerian Water Simulation C#

Converted one 2D water simulation to Unity, see original code & video (youtube) – source link at description (by Matthew Bettcher) Check the old test also: 2D Fluids with Cellular Automata TODO: – Erosion? – Floating objects? – Different types of fluids? Webplayer: http://unitycoder.com/upload/demos/WaterSim2/ (texture […]

Nov
13
2012

Place Objects on Space With Mouse

If you want to instantiate objects on empty space, you cannot use Raycasts (no colliders to hit). But you can use ScreenToWorldPoint() with adjustable distance from camera. (Or you could put invisible collider there..and if you need to adjust distance, move the collider..) Webplayer: http://unitycoder.com/upload/demos/PlaceObjectsOnSpace/ […]

Oct
29
2012

2D Raycasting Visibility – Voxel Travelsal

Converted this AS3 2D raycast (by Lee Grey) to Unity javascript. (Image: raycast is coming from the middle, hits a wall..) Next: – Use grid array instead of reading pixels from image.. (done) – Try if this is faster compared to the old Raycast visibility […]

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.