Page 1 of 2

Block World Test

Posted: Fri Jul 09, 2010 5:33 am
by Sakar
I've been playing a lot of Minecraft lately, and I wanted to see if I could recreate the block world editing in Unity. It works, but with a couple flaws (one of which I can't fix). The first is that blocks are placed up, not relative to the face you clicked on. The other is that polygons that aren't visible are still drawn, a major problem if the world size increases too much.

[youtube]http://www.youtube.com/watch?v=YG00gbV8t8E[/youtube]

Not sure what more I could do with this, seeing as the limit in the number of blocks will be a major hindrance.

Re: Block World Test

Posted: Fri Jul 09, 2010 7:58 am
by Callan S.
How do other 3d games do it? Do they really calculate what objects are behind another and not draw them? I guess you could quickly draw a line of sight beam to grid positions, only drawing what it's broken upon first.

Or you could go a mind 90's approach and use ALOT of fog, real close up, and manually set the max draw distance to quite close, lol!

But seriously, being able to see a long way in a game? To me, that in itself doesn't make for a fun game.

Re: Block World Test

Posted: Fri Jul 09, 2010 11:28 am
by Noctrine
Raytracing from camera only rendering what is visible, you can do it at a distance completely render whats close and only show whats far. There should be some info on the forums or something about getting that effect.

Re: Block World Test

Posted: Fri Jul 09, 2010 5:11 pm
by Jackolantern
Callan S. wrote:How do other 3d games do it? Do they really calculate what objects are behind another and not draw them? I guess you could quickly draw a line of sight beam to grid positions, only drawing what it's broken upon first.
Now I could be wrong, but don't some modern game engines handle this automatically these days?

Re: Block World Test

Posted: Fri Jul 09, 2010 5:12 pm
by Noctrine
They do, and if I remember correctly Unity can also, see previous post :p

Re: Block World Test

Posted: Fri Jul 09, 2010 8:45 pm
by Jackolantern
Noctrine wrote:They do, and if I remember correctly Unity can also, see previous post :p
Ahh, I thought you meant info about achieving the effect yourself, not finding how to make Unity automatically handle it :)

Re: Block World Test

Posted: Fri Jul 09, 2010 10:36 pm
by Noctrine
Could have sworn it was in there, I'll check when I get some time to work on my unity project.

Re: Block World Test

Posted: Fri Jul 09, 2010 10:37 pm
by Sakar
I've been looking over the Unity documentation as well as the forums, but the only solutions are (AFAIK) only suitable for static scenes, not fully dynamic ones such as this.

If you happen to find something Noc, I'd very much like to see it.

Re: Block World Test

Posted: Sat Jul 10, 2010 2:26 am
by hallsofvallhalla
just wanted to say nice work thus far. Really kewl man.

Re: Block World Test

Posted: Sat Jul 10, 2010 2:27 am
by Sakar
Thanks halls!