How to pick blocks in minecraft?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

How to pick blocks in minecraft?

Post by 804 »

Hey experts, i'm progrmming an minecraft like terrain and it looks pretty good so far...(i just have the basic terrain)
But I don't klow how to pick the cursor-pointed block and make some kind of frame around it(or get its position).

Something like this:
Image

PS: Sorry for my bad english, but i'm an german...
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: How to pick blocks in minecraft?

Post by Cube_ »

looks like those are minecraft textures, is that a screenshot from minecraft?
"this is not the bottleneck you are looking for"
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: How to pick blocks in minecraft?

Post by 804 »

Yes it is, and i don't know how to clone this for my game (how to point on objects and make a frame around it or get its position).
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: How to pick blocks in minecraft?

Post by Radikalizm »

Ever heard of bounding boxes?

Let me ask you something, is this one of your first game programming projects?
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: How to pick blocks in minecraft?

Post by 804 »

No , i have made some Games with darkgdk (a very easy game Engine)
For Example i have made an egoshooter and Started Programming my minecraft clone
But it was too slow, so Herr i am:)
I never heard anything of bounding boxes!
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: How to pick blocks in minecraft?

Post by randomMesh »

Then i really suggest to start with something easier, like a Pong or Tetris clone. Making a Minecraft clone requires a lot of experience in game and 3d programming.
"Whoops..."
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: How to pick blocks in minecraft?

Post by Radikalizm »

randomMesh wrote:Then i really suggest to start with something easier, like a Pong or Tetris clone. Making a Minecraft clone requires a lot of experience in game and 3d programming.

Exactly!
I've said this like a million times on these forums, but even though minecraft might look simple, it isn't simple at all
You need very strong knowledge on 3D graphics, general game development, advanced culling mechanisms, sorting algorithms, noise functions, etc.

A minecraft clone is not a good choice for a beginner project, trust me

What's up with all the minecraft clones on here anyway? Seems like we get at least 1 every week
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: How to pick blocks in minecraft?

Post by hendu »

They should add a blinking header on the front page "Top 1 Minecraft clone engine", heh ;)
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: How to pick blocks in minecraft?

Post by Cube_ »

804 wrote:Yes it is, and i don't know how to clone this for my game (how to point on objects and make a frame around it or get its position).

ok, never ask these kinds of questions unless you actually have a project to apply it too.....
"this is not the bottleneck you are looking for"
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: How to pick blocks in minecraft?

Post by 804 »

But i want to Start with a minecraft clone and not somesthing Boeing like Pong.
So just Tell how to convert the 2D position of the crosshair to the 3Dposition of my Blocks!

Ps: i don't want to make a minecraft clone, it will Be an egoshooter in a minecraft like World
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: How to pick blocks in minecraft?

Post by Radikalizm »

804 wrote:But i want to Start with a minecraft clone and not somesthing Boeing like Pong.
So just Tell how to convert the 2D position of the crosshair to the 3Dposition of my Blocks!

Ps: i don't want to make a minecraft clone, it will Be an egoshooter in a minecraft like World
And I want to build the next killer game on my own with super awesome graphics, gameplay and complete immersion, and it should make me filthy filthy filthy rich. I don't want to bother with simpler games to learn the ropes, because who needs learning anyway right?

You are obviously not ready to deal with a project like this, so if you really want to do this you'll have to learn how by building simpler games first, that's just how it goes and there's absolutely no way around that fact
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: How to pick blocks in minecraft?

Post by 804 »

OK, i think you are right!
I will make a pong-game to learn the basics of irrlicht...
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: How to pick blocks in minecraft?

Post by serengeor »

804 wrote:OK, i think you are right!
I will make a pong-game to learn the basics of irrlicht...
Pong might not be enough, believe me! :wink:
*Yes I have made pong myself and bigger projects I tried still didn't come to life*
Working on game: Marrbles (Currently stopped).
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: How to pick blocks in minecraft?

Post by 804 »

Or maybe somesthing like Mario-card ;)
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: How to pick blocks in minecraft?

Post by 804 »

But i still don't Know the anser of my First question :(
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
Post Reply