00:00
00:00
View Profile Maxwelldoggums

Age 31, Male

Joined on 3/23/08

Level:
8
Exp Points:
550 / 710
Exp Rank:
> 100,000
Vote Power:
4.98 votes
Rank:
Town Watch
Global Rank:
48,476
Blams:
76
Saves:
99
B/P Bonus:
2%
Whistle:
Normal
Trophies:
2
Medals:
775

Unity3d

Posted by Maxwelldoggums - May 22nd, 2009


So I started messing with Unity3d today, and I wrote a nice procedural terrain generation program. It basically creates a 2D array of floats, then subdivides them in a fractal pattern with noise, and then procedurally generates a mesh based on that.

Then I made a lightmap script that will perform a specified number of raycasts on the land, finding the general slope and rendering that to a lightmap.

And lastly, I made a function and a custom shader to compute texture blending based on altitude, render a black and white map of texture transparencies, and use that to combine two different tiling textures seamlessly over the landscape.

I'm working on creating an orthographic projection system so that I can render the shadows of the terrain on objects efficiently. that would basically work by using a multiply shader and altering the vertex color of the geometry of objects in the map. There are a few problems with this however... if an object is airborne, the shadows might still appear. You can see on the top left corner of the picture some error with the lightmap. That part should'nt be shadowed, but it is. I'm still working on it =)

sorry, I just thought it was cool...

Unity3d


Comments

It's kind of like Anim8or.

actually, it's not at all like anim8or. It's a fully functional game creation package including asset importing, coding, and project compiling. I too have just tried it out, and I'm impressed with how intuitive it is!

With the ability to publish web content, and the newly released windows and linux version, I long to see the day when newgrounds has a Unity portal XD