Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

Reply
 
Thread Tools Display Modes
Terrain with collision detection using heightmap!!!!
Old
zenteo
Senior Member
 
Status: Offline
Posts: 110
Join Date: Dec 2006
Location: Earth
Talking Terrain with collision detection using heightmap!!!! - 03-20-2010, 09:57 PM

Finally I got this thing to work : D

I've used the whole day on trying to make a terrian generator for Alice, still there are some "invisible" parts left, but here is the result so far.

I'll maybe give you the terrainbuilder when it's finished ^^

Hope you like it

Btw, use your mouse to rotate the camera, just click n drag.

Edit:
Added a new smoother version. Removed the walking prop for speedup.
Added a new map which is a little more detailed and better texured. Still the texture resolution is too low and the map get's kind of blury.

Realistic Terrain with water [Scroll down to bottom and click Download]:
http://www.sendspace.com/file/gwdvas

~Zenteo
Attached Images
File Type: jpg Terrain2.jpg (11.0 KB, 177 views)
File Type: jpg capture00.jpg (11.1 KB, 168 views)
Attached Files
File Type: a2w Alice Terrain.a2w (1.38 MB, 57 views)
File Type: a2w Alice Terrain Smooth Edition.a2w (720.9 KB, 43 views)
File Type: a2w Realistic Terrain.a2w (606.2 KB, 38 views)

Last edited by zenteo; 03-22-2010 at 03:35 AM.
  Send a message via MSN to zenteo  
Reply With Quote
Old
shaydon
Senior Member
 
Status: Offline
Posts: 445
Join Date: Dec 2009
Location: Caspian Border
Default 03-20-2010, 10:29 PM

awsome keep it up can't wait for terrian builder!
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 03-21-2010, 12:14 AM

Fascinating! Now THIS could be seriously useful, thanks zenteo!


(')>
   
Reply With Quote
Old
wongwanchap
Guest
 
Status:
Posts: n/a
Default 03-21-2010, 12:36 AM

I know your trick.

You record the height of each point on the terrain into a matrix.

Cool, how can you mange to build the "heightmap"?
   
Reply With Quote
Old
shaydon
Senior Member
 
Status: Offline
Posts: 445
Join Date: Dec 2009
Location: Caspian Border
Default 03-21-2010, 01:07 AM

how did you create the terrain?
   
Reply With Quote
Old
Niteshifter
Guest
 
Status:
Posts: n/a
Default 03-21-2010, 01:36 AM

I was actually trying to create a random terrain generator using the diamond-square algorithm, but was never able to do it because I couldn't create nodes .

Did you put in all 5041 numbers in the "heightmap" list, or did you have a program do it for you?

It looks really nice btw. I really like the idea of how you made a 2D array into a single list.

Last edited by Niteshifter; 03-21-2010 at 01:51 AM.
   
Reply With Quote
Old
zenteo
Senior Member
 
Status: Offline
Posts: 110
Join Date: Dec 2006
Location: Earth
Default 03-21-2010, 08:21 AM

Thanks
Actually I created a little program in vb.net.
It translates the heightmap data from an image into an alice object.
It will automatically add the heigthvalues to the list.

At the moment, there are some problems calculating the normals for the terrain mesh, ect...

I'll release it when it's done.

~Zenteo

Last edited by zenteo; 03-21-2010 at 08:50 AM.
  Send a message via MSN to zenteo  
Reply With Quote
Old
zarfang8
Guest
 
Status:
Posts: n/a
Default 03-21-2010, 04:44 PM

Wow! I like this a lot. That was a cool world.
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 03-21-2010, 05:04 PM

This is incredible except I'm not sure if this could easily be incorporated into a game. Maybe I can make it randomly generate terrain at the start of the game somehow.
   
Reply With Quote
Old
zenteo
Senior Member
 
Status: Offline
Posts: 110
Join Date: Dec 2006
Location: Earth
Default 03-22-2010, 02:08 AM

Quote:
Originally Posted by dubastot View Post
This is incredible except I'm not sure if this could easily be incorporated into a game. Maybe I can make it randomly generate terrain at the start of the game somehow.
Creating random terrain in the start of the game would be nearly impossible, at least if you couln'd do it in alice scripting.

I'm sure that it'll get easly integrated into a game, since I made this for the rpg I'm currently developing on.
  Send a message via MSN to zenteo  
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.