Jump to content


Photo

Marching Cubes


  • Please log in to reply
5 replies to this topic

#1 MichaelH

MichaelH

    Forum Master

  • Full Members
  • PipPipPipPipPip
  • 309 posts

Posted 03 October 2011 - 04:54 AM

I'm working on a little alienshooter for some time and will try to generate landscapes with the Marching Cube algorithmus.
I've startet with dame volumen data from here: scull data

My first test creating a 3d model of that:

mc1.jpg

Another look in Wireframemode:

mc2.jpg

You also see the building time (<1sec) with the marching cube and the number of triangles (>300,000) generated.

Here is another way to build the volumen data, a so called wiffle cube out of a complex formula wiffle cube

WiffleCube.jpg

I will use that for optimizing the mesh later on. I see the results better in that mesh i think :(

Today i tried the first step in texturing that model. I create a textureatlas 128*128*128 by hand (with my graficprogramm)

mc3.jpg

I think i can make better things using Genetica. Lets see how it wiil go on in the future.


Michael

#2 Atlas

Atlas

    Staff

  • Admin
  • PipPipPipPipPipPipPipPip
  • 4,498 posts

Posted 06 October 2011 - 01:45 PM

Interesting images. Will the terrain be randomly generated somehow?

#3 MichaelH

MichaelH

    Forum Master

  • Full Members
  • PipPipPipPipPip
  • 309 posts

Posted 07 October 2011 - 09:37 AM

Yes !
Goal is to came up with something like this http: GPU Gems 3 :P
Not using GeometrieShaders because i'm developping with xna4. xna is limitid to DirectX9 ( GeometrieShaders came up with DirectX10 )
i'm happy when i end up to something like this : Lords of Uberdark

Will se what i can do.

#4 MichaelH

MichaelH

    Forum Master

  • Full Members
  • PipPipPipPipPip
  • 309 posts

Posted 09 November 2011 - 01:56 PM

Here is my first landscape. And all is done with Genetica. The background and the overall texture, but in the main the landscapemesh is done by a simple 3DNoisetexture addet a few times tricky together.
Next thing is to add Multi - and Triplanartexturing and adding some Effecttextures.

Posted Image

Michael

#5 MichaelH

MichaelH

    Forum Master

  • Full Members
  • PipPipPipPipPip
  • 309 posts

Posted 13 November 2011 - 11:22 AM

Addet a shader for triplanartexturing. Dosn't work perefect by now but i like to show a screenshot:

Posted Image

Texture is one of Geneticas presets ;)

#6 Funkdude

Funkdude

    Alien Genius

  • Full Members
  • PipPipPipPipPipPipPipPip
  • 4,676 posts

Posted 13 November 2011 - 12:48 PM

Looks neat, it kind of reminded me of the floating isles in the movie Avatar.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users