Jump to content


Photo

3d Destructable Terrain Example!


  • Please log in to reply
38 replies to this topic

#1 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 21 August 2008 - 05:12 AM

You can find it here: [Dead Link] - If anybody still has a copy of this, please PM me and I'll re-upload it. Thanks!
Check out my latest project: GameDev Studio
If you use in a game, credit would be appreciated! ;)

~~Brett14

Edited by brett14, 17 May 2012 - 11:53 PM.

  • 0

#2 giggdaw

giggdaw

    GMC Member

  • New Member
  • 38 posts

Posted 21 August 2008 - 08:01 AM

Are you able to walk around in the game? Cant download it now, because my pro edition is on another computer, and the computer is crashed for good xD

Looks like a really nice 3d engine! ;)
  • 0

#3 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 21 August 2008 - 11:45 PM

Are you able to walk around in the game? Cant download it now, because my pro edition is on another computer, and the computer is crashed for good xD

Looks like a really nice 3d engine! :)


yes you can walk around, it is like any heightmap except you can destroy the terrain and blast trees out of the ground!
I'm currently working on a multiplayer 3D fps, and am thinking of implimenting it (it'll need to be modded a little though)


When you get a chance, try it!

You can also easily change the blast size and the damage it does to the terrain (you can have a huge blast with little indent or a little blast with huge indent etc.)

Edited by brett14, 21 August 2008 - 11:47 PM.

  • 0

#4 Syynth

Syynth

    GMC Member

  • GMC Member
  • 434 posts
  • Version:GM:Studio

Posted 22 August 2008 - 01:30 AM

This is awesome! I just might use this :)
  • 0

#5 zbox

zbox

    GMC Member

  • GMC Member
  • 515 posts

Posted 23 August 2008 - 06:12 AM

Wow. this really is cool!!!!!!!!!!!
  • 0

#6 Pinpickle

Pinpickle

    Abscure Programmer

  • GMC Member
  • 1353 posts

Posted 24 August 2008 - 02:43 AM

Not only is this a very good destructable terrain example, it is also a very good 3D example. I think this is very, very, very good. I will probably use this!
  • 0

#7 connor4312

connor4312

    www.connorpeet.com

  • GMC Member
  • 896 posts
  • Version:None

Posted 24 August 2008 - 02:31 PM

SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET SWEET

By the way, it is SWEET!

I lov the twirling motion of the trees when you hit then. Never could get the hang of that. thanks!

9/10!

Edited by connor4312, 24 August 2008 - 02:34 PM.

  • 0

#8 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 24 August 2008 - 07:10 PM

Hey guys, thnx - You'll love the new part that I'm workin on ATM - regioning terrain (creating it with regions)

I have it drawing fine - loading fine (takes about 2-3 secs to init a RANDOM 300,000 x 300,000 world with hills mountains etc.- it is VERY FAST) - BTW that is equal to a 5200x5200 heightmap!

I hoep to have it out within a week (before school starts back up again...)
  • 1

#9 Syynth

Syynth

    GMC Member

  • GMC Member
  • 434 posts
  • Version:GM:Studio

Posted 24 August 2008 - 07:20 PM

i like it, but i have a question, and it seems like it would be simple to fix, but the 2 right-most rows and 2 bottom-most rows of pixels aren't actually included in the level, but they affect the height-map (i.e. they'll raise or lower the edges just a little if there's a large difference the next pixel over, but thats not drawn. how come?

also, is there a way to use multiple textures? would i need to make several terrain models?

Edited by Syynth, 24 August 2008 - 07:29 PM.

  • 0

#10 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 24 August 2008 - 10:09 PM

i like it, but i have a question, and it seems like it would be simple to fix, but the 2 right-most rows and 2 bottom-most rows of pixels aren't actually included in the level, but they affect the height-map (i.e. they'll raise or lower the edges just a little if there's a large difference the next pixel over, but thats not drawn. how come?

also, is there a way to use multiple textures? would i need to make several terrain models?



I have fixed that - yes it was easy to fix (change a number -3 to -1 or something like that, and no atm there is no multi-texture support- HOWEVER I may just add it - good suggestion! - Neither of these can be downloaded yet, as they will be included in the regioning one, coming soon
  • 1

#11 Syynth

Syynth

    GMC Member

  • GMC Member
  • 434 posts
  • Version:GM:Studio

Posted 25 August 2008 - 12:26 AM

glad i could help :D this is really good stuff, i like the looks of it so far
  • 0

#12 zbox

zbox

    GMC Member

  • GMC Member
  • 515 posts

Posted 25 August 2008 - 05:51 AM

I lov the twirling motion of the trees when you hit then

Yes! thats so cool!
  • 0

#13 Syynth

Syynth

    GMC Member

  • GMC Member
  • 434 posts
  • Version:GM:Studio

Posted 25 August 2008 - 11:14 PM

yeah, I'm definetly using the regioning one. especially if it involves multiple textures. I was actually looking at a few terrain engines, but it seems I'm gonna go with this one, if this next one works well :P
  • 0

#14 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 26 August 2008 - 12:24 AM

yeah, I'm definetly using the regioning one. especially if it involves multiple textures. I was actually looking at a few terrain engines, but it seems I'm gonna go with this one, if this next one works well :P



Atm, the regions are working (up to 4x4 to 300x300 regions - equal to a 4800x4800 heightmap XD) , You can edit the terrain and you can do all the other things you can expect in an editor. - Also It is quite fast as with regions they need to be fast - I get 150-200 fps on a 300x300 terrain

I currently am working on the following (prioritised)

#1 - Multitexturing
#2 - Better Interface
#3 - more options


Btw - I may be able to release a demo soon (2 days about) - but it will not have full support
  • 1

#15 Syynth

Syynth

    GMC Member

  • GMC Member
  • 434 posts
  • Version:GM:Studio

Posted 26 August 2008 - 12:42 AM

Atm, the regions are working (up to 4x4 to 300x300 regions - equal to a 4800x4800 heightmap XD) , You can edit the terrain and you can do all the other things you can expect in an editor. - Also It is quite fast as with regions they need to be fast - I get 150-200 fps on a 300x300 terrain

150-200 fps? wow, thats pretty good, especially since my monitor only has a refresh rate of 75 xD

Not that I don't already know :P
but will the regions still have the same level of detail when it comes to having a huge terrain like that?

Sorry for not knowing much about this, but before this thread, I actually had no clue as to how this sort of thing worked.
  • 0

#16 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 26 August 2008 - 01:27 AM

Atm, the regions are working (up to 4x4 to 300x300 regions - equal to a 4800x4800 heightmap XD) , You can edit the terrain and you can do all the other things you can expect in an editor. - Also It is quite fast as with regions they need to be fast - I get 150-200 fps on a 300x300 terrain

150-200 fps? wow, thats pretty good, especially since my monitor only has a refresh rate of 75 xD

Not that I don't already know :P
but will the regions still have the same level of detail when it comes to having a huge terrain like that?

Sorry for not knowing much about this, but before this thread, I actually had no clue as to how this sort of thing worked.


actually... they can have more lol And I'm getting bout 400 fps on a 10x10 grid - I'll try to breifly explain how this works (good luck... ::lmao:: )
And don't worry about the fps.. It's just as efficient as heightmaps... These fps ratings are comming out of a monitor that is a 21 inch widescreen with a resolution of 1650x1080 - with a refresh rate of 60 - And they are editor sided which is slower than the in-game B/c of all the calculations it needs to make

--But this is how it works...--

Pretty much it creates a huge grid containing all the height values - then I store these spots into arrays 16x16 apart (which represent the regions) - and I create a model for each array with the values from within it. Then I draw the models representing the regions around you - So you are actually only drawing a 48x48 heightnmap model around you... It seems... - I kinda lost myself typing this....
  • 1

#17 Syynth

Syynth

    GMC Member

  • GMC Member
  • 434 posts
  • Version:GM:Studio

Posted 26 August 2008 - 01:49 AM

Hah, thats fine, I get the point, but so we're on the same page, by fps you mean frames per second, right? so how are you getting 400 frames per second??
  • 0

#18 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 26 August 2008 - 02:55 AM

Hah, thats fine, I get the point, but so we're on the same page, by fps you mean frames per second, right? so how are you getting 400 frames per second??


I set the room speed to 1000 - then I draw the fps in the top corner... Gm's built in code FPS - The game will be running at 400 fps - but the screen is only refreshing at 60 (or in your case 75)
  • 1

#19 Syynth

Syynth

    GMC Member

  • GMC Member
  • 434 posts
  • Version:GM:Studio

Posted 27 August 2008 - 01:53 AM

ahh, so its simply able to execute the code 400 times a second... impressive ::lmao::
now I'm really anxious so see how this'll turn out :ph34r:
  • 1

#20 brett14

brett14

    GMC Member

  • GMC Member
  • 1150 posts
  • Version:GM8

Posted 27 August 2008 - 08:57 AM

ahh, so its simply able to execute the code 400 times a second... impressive :(
now I'm really anxious so see how this'll turn out ^_^

Wait no more! You will find a link to it at the top of the page - but beware this version is slow at saving and load (really slow...) I'ma gonna use a DLL in the next release - BTW - this version does not have multitextureing support.. I will add it ASAP - I tried to get it into this one but I wanted to post it tonight (as you can see it's 2 in the morning lol)
  • 1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users