OZONE Asylum
Forums
DHTML/Javascript
3D Procedural Landscape using Canvas
This page's ID:
31012
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
So this is why I was playing with Perlin Noise... http://lonelypinkelephants.com/random/landscape.html It requires a browser that supports get/putImageData, though I'll be working on removing that requirement (eventually... using drawImage to make Perlin noise is so elegant). I was surprised that this wasn't hard to do. I'm not much of a 3D guy, but smart people have already done all the math for me, so putting all the pieces together wasn't actually too bad. The hardest parts were figuring out how to distribute polygons efficiently and trying to remember how to scan-convert a polygon. (My implementation of that, by the way, is a complete and utter mess. There has got to be a much cleaner way of doing it.) The main thing that's killing me are those pesky cracks between polygons. My current plan of attack is to extend the vertex of each triangle away from it's centroid by half a pixel... any better suggestions?
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »