Author Topic: Auto-rounded 3D block landscapes  (Read 6132 times)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10711
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Auto-rounded 3D block landscapes
« on: 2011-Dec-23 »
Well, I thought this might be some cool idea to easily produce levels for games like:


But it turned out to be cooler than sliced awesome.


So, you only need a 3D array of sprite indices, and it creates you rounded cubes that also merge together if they have neighbours. The only "tiny" trouble so far are the tiny holes you get at L-shaped connections. So fra - don't use them :P


Attached the source.

[attachment deleted by admin]

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: Auto-rounded 3D block landscapes
« Reply #1 on: 2011-Dec-23 »
Nice :)
I came. I saw. I played.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4212
    • View Profile
    • Portfolio
Re: Auto-rounded 3D block landscapes
« Reply #2 on: 2011-Dec-23 »
wonderful! can we set the amount of roundness on the blocks?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10711
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Auto-rounded 3D block landscapes
« Reply #3 on: 2011-Dec-23 »
Yes. But its one face. Not really "rounded".

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3366
  • Integrated Brain
    • View Profile
Re: Auto-rounded 3D block landscapes
« Reply #4 on: 2011-Dec-23 »
For me crashes when I start the program , some sttange?¿, don´t needed nothing, no?¿...

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: Auto-rounded 3D block landscapes
« Reply #5 on: 2011-Dec-24 »
Quote
For me crashes when I start the program
same here. I get a black screen for a few seconds and then it exits. :(

Win 7 64Bit. GLB V10.209
I came. I saw. I played.

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3366
  • Integrated Brain
    • View Profile
Re: Auto-rounded 3D block landscapes
« Reply #6 on: 2011-Dec-24 »
HI it´s the same error in my computer...

Well I leave you this 2 simple box models, a box a little reounded, it´s very brusc, and another more smooth, but have very few polygons, I think make a lot of instances can works in mobile devices whitout troubles...

I put the 2 textures , and the template of each box, you can paint what do you want whit PS, paint, or anything can paint textures...



[attachment deleted by admin]

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10711
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Auto-rounded 3D block landscapes
« Reply #7 on: 2011-Dec-24 »
It creates a terrain.ddd in media. Open with samples/_projects_/dddview

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3366
  • Integrated Brain
    • View Profile
Re: Auto-rounded 3D block landscapes
« Reply #8 on: 2011-Dec-24 »
Perfect, now.... it´s looks very nice...

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10711
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Auto-rounded 3D block landscapes
« Reply #9 on: 2011-Dec-29 »
I started adding billboard sprites. How does that look? I see a great advantage of this technique - a SEUCK/GACK type gamemaker might be easy to do with this technique and does not look too bad.




Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4147
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: Auto-rounded 3D block landscapes
« Reply #10 on: 2011-Dec-29 »
That is a brilliant idea :)
I came. I saw. I played.

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5020
  • O Rly?
    • View Profile
Re: Auto-rounded 3D block landscapes
« Reply #11 on: 2011-Dec-29 »
yes, cool idea so far :D
InfinityMario   :good:
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2627
    • View Profile
Re: Auto-rounded 3D block landscapes
« Reply #12 on: 2011-Dec-29 »
Looks great, I never saw it personally but didn't Paper Mario have a similar engine to this?
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4212
    • View Profile
    • Portfolio
Re: Auto-rounded 3D block landscapes
« Reply #13 on: 2011-Dec-30 »
damn it, I can´t test yet, only my laptop here and it has a wonderful sis 672 mirage 3 onboard that hardly can cope with 2d, 3d never mind.... :giveup:

even my currently going 2d game displays 60 fps on original size, scaled it drops to 12fps :(

back on subject,
this sure has a great potential...it may be a little too much for me to cope with on doing something on my own.
but if anything needed count me in.

It does not remind me of mario couse I never played any, but it does remind me of FEZ:
http://www.youtube.com/watch?v=FrVVIVyLx-Y

but I just have a hunch this system can get to a whole lot more.

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3366
  • Integrated Brain
    • View Profile
Re: Auto-rounded 3D block landscapes
« Reply #14 on: 2012-Jan-05 »
Genot this it´s cool.

The billboards, are 3D or will be the add of rotation in X-Sprite, I think can be maravellous, have an X_Sprite rotating, in depth...