Minecraft remake- Crafter

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: Minecraft remake- Crafter

Post by GroundUpEngine »

N64vSNES wrote:Hooray for building things!




...

This building looks sweet! Culling is a pain aha :)
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Re: Minecraft remake- Crafter

Post by N64vSNES »

GroundUpEngine wrote:
N64vSNES wrote:Hooray for building things!




...

This building looks sweet! Culling is a pain aha :)
Thanks man. I actually found culling pretty easy :shock: I looked back at a tutorial on culling and it turns out that the counter clockwise vertex arrangement was for culling not transparency. You have to arrange your drawing order for transparencies but since I drew the entire map as a huge mesh then it didn't matter. ( Not the whole map obviously that would kill any PC )
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Minecraft remake- Crafter

Post by dandymcgee »

GroundUpEngine wrote:Culling is a pain aha :)
Not when the only shape in your entire game in a cube. :P
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Re: Minecraft remake- Crafter

Post by N64vSNES »

dandymcgee wrote:
GroundUpEngine wrote:Culling is a pain aha :)
Not when the only shape in your entire game in a cube. :P
Hooray for simply masterpieces! :)

With a bit of luck Crafter will have more than that later ;)
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: Minecraft remake- Crafter

Post by Ginto8 »

For the "draw as one whole mesh", do you go through the blocks, check to see if it's in line of sight, then render it? Or do you do something else to prevent having the whole map render at once?
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

Re: Minecraft remake- Crafter

Post by MadPumpkin »

Ginto8 wrote:For the "draw as one whole mesh", do you go through the blocks, check to see if it's in line of sight, then render it? Or do you do something else to prevent having the whole map render at once?
are you referring to occlusion culling(figuring hidden surfaces), or loading only visible chunks? for example, not the building 12 feet to the left of you (because you can't see it).
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Re: Minecraft remake- Crafter

Post by N64vSNES »

Ginto8 wrote:For the "draw as one whole mesh", do you go through the blocks, check to see if it's in line of sight, then render it? Or do you do something else to prevent having the whole map render at once?
ROFL, Even I wouldn't render a 512x512x128 map all at once. Can you imagine how slow that would be?

I just render a chunk of the map within 30 blocks of distance from the camera and use fog to hide anything further from that (so you wouldn't see it even if it were being rendered).

If something is beside you or behind you etc then at this time I just let backface culling do it's best with that stuff.
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

Re: Minecraft remake- Crafter

Post by MadPumpkin »

back face culling is god. Yea usually culling does the trick but definitely 30 blocks render distance sounds reasonable. When I wasn't thinking and just started copying code from another project I worked on a long time ago my game ran for shit and I couldn't figure out why for DAYS. Till finally I realized even though I was rendering a reasonable distance horizontally, I was rendering the god damn caves and NPC's that were under me and not even accessible, like 300 feet down!
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Minecraft remake- Crafter

Post by dandymcgee »

MadPumpkin wrote:Till finally I realized even though I was rendering a reasonable distance horizontally, I was rendering the god damn caves and NPC's that were under me and not even accessible, like 300 feet down!
Haha! Oops.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
Van-B
Chaos Rift Regular
Chaos Rift Regular
Posts: 125
Joined: Tue Aug 10, 2010 7:17 am
Current Project: iPhone puzzle game
Favorite Gaming Platforms: All - Except Amiga
Programming Language of Choice: DBPro, ObjC++
Location: Scotland

Re: Minecraft remake- Crafter

Post by Van-B »

Looking sweet, your clearly making some great progress with this.

How are you factoring lighting?

Just wondering, because I've found that just a vertex lightmap can make things look great. Like take the 3D position of each vertex, add a little adjustment for the vertex normal so you get a position that you can project your light source to - then if there's a collision between those points, set the vertex diffuse colour to nothing, otherwise base it on the light colour, strength and direction. I'm making a mining game a little like Minecraft, and that's all I'm doing - it's all underground so that sort of lighting suits it... like no moving lights, each block could be lightmapped on-the-fly and that sort of thing. The reason that I like this method though, is that you don't have to worry too much about normals and dot products and stuff - the vertexes could just be lit, or not, and it tends to look better than standard normal vector lighting - allows for shadows and stuff.
Health, ammo.... and bacon and eggs.
D-e-X
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 39
Joined: Tue Dec 28, 2010 6:49 pm

Re: Minecraft remake- Crafter

Post by D-e-X »

Van-B wrote:Looking sweet, your clearly making some great progress with this.

How are you factoring lighting?

Just wondering, because I've found that just a vertex lightmap can make things look great. Like take the 3D position of each vertex, add a little adjustment for the vertex normal so you get a position that you can project your light source to - then if there's a collision between those points, set the vertex diffuse colour to nothing, otherwise base it on the light colour, strength and direction. I'm making a mining game a little like Minecraft, and that's all I'm doing - it's all underground so that sort of lighting suits it... like no moving lights, each block could be lightmapped on-the-fly and that sort of thing. The reason that I like this method though, is that you don't have to worry too much about normals and dot products and stuff - the vertexes could just be lit, or not, and it tends to look better than standard normal vector lighting - allows for shadows and stuff.
To get the initial Minecraft kind of lighting deal, you'd want to be doing emissive lighting, such that you might have values [0,10] which says something about how much light it emits. Let's say that a block has a emission value of 10, then the next block would have 9, and then 8 asf; which gives that blocky kind of feel to the lighting as well.
I remember when I used to be into nostalgia.
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Re: Minecraft remake- Crafter

Post by N64vSNES »

Van-B wrote:Looking sweet, your clearly making some great progress with this.

How are you factoring lighting?

Just wondering, because I've found that just a vertex lightmap can make things look great. Like take the 3D position of each vertex, add a little adjustment for the vertex normal so you get a position that you can project your light source to - then if there's a collision between those points, set the vertex diffuse colour to nothing, otherwise base it on the light colour, strength and direction. I'm making a mining game a little like Minecraft, and that's all I'm doing - it's all underground so that sort of lighting suits it... like no moving lights, each block could be lightmapped on-the-fly and that sort of thing. The reason that I like this method though, is that you don't have to worry too much about normals and dot products and stuff - the vertexes could just be lit, or not, and it tends to look better than standard normal vector lighting - allows for shadows and stuff.
Thanks for the kind words :)

At the minute lighting is nothing special I'm initializing some ambient, diffuse and specular lighting and setting it at the top right corner of the camera.

However I know in the original Minecraft there is a square for the sun, but I'm not going to be a total rip-off ;)

I do like your idea for lighting though and lighting definitely isn't finished yet, for things such as torches I'll need to figure out how to give blocks an attribute so they can produce light etc.
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Re: Minecraft remake- Crafter

Post by N64vSNES »

-yawn-

Too tired to put text so I'll just leave the pretty pictures :lol: :

Da super awesome title screen that says Alpha 0.6 even though it says 0.8 in game ;)
Image

Da super awesome settings menu, nothing of anything works other than continue and quit.
Image

And a screenshot of the map with the rendering distance set to far (my computer doesn't like this one):
Image
User avatar
superLED
Chaos Rift Junior
Chaos Rift Junior
Posts: 303
Joined: Sun Nov 21, 2010 10:56 am
Current Project: Engine
Favorite Gaming Platforms: N64
Programming Language of Choice: C++, PHP
Location: Norway

Re: Minecraft remake- Crafter

Post by superLED »

Nice work, man! You are getting some progress - that's a good sign ^^
Keep up the good work!
User avatar
Milch
Chaos Rift Junior
Chaos Rift Junior
Posts: 241
Joined: Sat Jul 11, 2009 5:55 am
Programming Language of Choice: C++
Location: Austria, Vienna

Re: Minecraft remake- Crafter

Post by Milch »

Looks great! :D
Follow me on twitter!
Post Reply