LWJGL BlockWorld

If you wan’t to make an axe, then you might want to create some code to load .obj files, because putting the vertex data manually is going to be a pain. Also, this is a trivial problem you are asking. It is clear that you have no idea what this code is doing. I would suggest starting at the basics. Follow this wiki article and learn how to develop games. Also, if you take a look at the lwjgl wiki, you would know that this renders a cube using what looks like a combo of display lists and immediate mode (correct me if I’m wrong).

Anyways, progress through the steps. Go console->2d->3d. Learn useful concepts on the way.

If you wan’t to make an axe, then you might want to create some code to load .obj files, because putting the vertex data manually is going to be a pain. Also, this is a trivial problem you are asking. It is clear that you have no idea what this code is doing. I would suggest starting at the basics. Follow this wiki article and learn how to develop games. Also, if you take a look at the lwjgl wiki, you would know that this renders a cube using what looks like a combo of display lists and immediate mode (correct me if I’m wrong).

Anyways, progress through the steps. Go console->2d->3d. Learn useful concepts on the way.

Exactly. Copying others’ code is never going to get you anywhere, especially when its large sections such as this.

Exactly. Copying others’ code is never going to get you anywhere, especially when its large sections such as this.

so you still dont understand why i use others code?
I dont use this to make my own game and publish it somwhere.For now i am learnigng how all this is coded and slowly impliment new things to so in final i could make my own game.
This what Vermeer has done so far and i am taiing his code to study thats why i am asking to just explain me this code by just adding coments to those lines which i addded in my previous post?is it that hard?I dont even ask you to write code just //Comments about what some of thouse line do.
And looks like you dont even want to help me.

I doubt you will learn anything from that code section other then some specific addition to this game.
You really should follow some simple tutorials to learn programming (the internet and this forum got plenty).
Also you could try editing some simple games like space invaders (LWJGL demo game).
http://lwjgl.org/wiki/index.php?title=Space_Invaders_Example_Game

Starting here will take a lot of frustration for you and others, also you will learn a lot of stuff the wrong way like this:


GL11.glColor3f(1f,1f, 1f);
GL11.glNormal3f(0.0f, i, 0.0f); // Normal Pointing Up
GL11.glTexCoord2f(Hoffset, Voffset + size);   GL11.glVertex3f(-0.08f, i, -0.05f); // Top Left Of The Texture and Quad

Programming is a very self taught skill. Thing is, if you do not understand very basic OpenGL stuff, we cannot cram hours of reading into a few comments. This site is not for people to get spoon fed everything nor for private tutoring. We do not get paid here.

Also, please use paste bin or something for huge chunks of code.

I strongly recommend, like everyone else here, to start with rendering a quad, then triangles, then basic 2d, the a 3d cube and move on. THEN look at the code you posted. You will find it much more understandable. We can’t put information in your head. It is not that we or at least I wouldn’t want to help you but no one is entitled to have people here do anything for them which is how you came across in your last post. :-\

yea but thing is i am learning from code which i see which i can edit and play around to see what happens.
In same way i learned php in there i learned how to code in object oriented programing (oop) and stuff like that.I learned alitle bit from tutorials actualy basics then i got some workings codes and started to play around with them.After a month or so i learned how to make my own codes and now can mak fully working website with html css and php.
So i came acros Java and started to learn i can make simple 2d or 3d game in pure java but i realised that with lwjgl i can make my game better smoother fps and things like that.
But if people just poimt me to shity places where i will learn basics whichs i alredy know its ussless.
I dont ask you or anybody else to code for me i just asked simple task to just comment some lines in that code with what they do and maybe a litle but about why.Is that realy hard? and for those who said that i need obj loader i alredy have that.my game works fine but i want to add some tools as i said i only have this axe (in pickaxe form :D).
Anyway.If you cant help me dont post bullcrap about learning stuff which isnt realy needed.But if somebody can just add those comments to that code so i can take a look on them and then make my own tool i will apriciate that.If nobody can help me then i guess i will try to contact code author as he said he will anwer to questions.
Thank you anyway.

This gives me the impression that you’re goal is to just make a Minecraft clone like most other people who have a voxel project. If you really wanted to be a game developer, you’d focus on learning step by step and understanding how the code you write works. By reading, copying and making minor modifications to code, all you’re going to do is learn what to write. That will lead to problems if/when you want to create a different sort of game.

Notch thought up of a unique idea and created it. If you want to be the next Notch, do something unique.

By the way there’s no need to be immature about it and to become abusive. StumpyStrust was only giving you advice. Have a nice day and I wish you all the best. :slight_smile:

Actualy i am not making another minecraft clone.And i stoped play minecraft long time ago because its booring when you play it again and again.If i would want to make a minecraft clone i would write it in c++ because its more powerfull than java and for rendering it gives much more fps than java.but as i said i am not making minecraft clone.I want to make game so understand how all that works.And step by step is good way to do that but in my case as i said i learn from code not from wiki’s i take finished code and edit it make some changes in it and i i go and look what have been fucked up or improved.I cant realy understand thisone thing that why i camed here and asked.
But hey if you cant even help me with litle explanation then i asume that you dont even understand that code which i gave.Because if have alredy learnded that it would take from your time about 5min to add some litle comments to it so somebody could actualy understand it to.
Its like in dictionarie you see other Language word and a english translation and after that you see some explenation about it but it in there that word have been puted in sentence.(I am sorry my english is bad i know but i hope you got my idea).
So can you please help me?Just add some litle comments in that code like this one which alredy are there.[quote]// Normal Pointing Up
[/quote]
only diference would be that you a litle bit explain me what it does.I dont ask to code whole thing because i want to do that on my own as i am learning.

I do not have to help you. I tried to give you some constructive advice, but your attitude is awful. As a matter of fact I can’t be bothered reading 408 lines of badly written, badly organised, slow, deprecated code. Do your own research. You shouldn’t post a whole file of code on a forum and then expect people to add comments in it for you.

You obviously have no clue what you’re saying.

DreamHacker please please for the love of God reread your posts and do a little bit of editing to make them more readable. I am not talking about anything huge just make sure you proper spacing and maybe check spelling a bit. I is hard to understand you right now.

I think it is safe to say that people may not comment things for you. Instead of asking for comments in the code, post what concept you do not understand.

Here, I will take the first step.

The two methods you posted do not seem to have anything to do with one another. One is filling a floatbuffer with data to most likely render with a VBO while the other uses immediate mode to render. The first seems to be simply filling a floatbuffer with a cube based on “offsets”, and a color or tint. Now you take the next step. :smiley:

so you still dont understand why i use others code?
I dont use this to make my own game and publish it somwhere.For now i am learnigng how all this is coded and slowly impliment new things to so in final i could make my own game.
This what Vermeer has done so far and i am taiing his code to study thats why i am asking to just explain me this code by just adding coments to those lines which i addded in my previous post?is it that hard?I dont even ask you to write code just //Comments about what some of thouse line do.
And looks like you dont even want to help me.

I doubt you will learn anything from that code section other then some specific addition to this game.
You really should follow some simple tutorials to learn programming (the internet and this forum got plenty).
Also you could try editing some simple games like space invaders (LWJGL demo game).
http://lwjgl.org/wiki/index.php?title=Space_Invaders_Example_Game

Starting here will take a lot of frustration for you and others, also you will learn a lot of stuff the wrong way like this:


GL11.glColor3f(1f,1f, 1f);
GL11.glNormal3f(0.0f, i, 0.0f); // Normal Pointing Up
GL11.glTexCoord2f(Hoffset, Voffset + size);   GL11.glVertex3f(-0.08f, i, -0.05f); // Top Left Of The Texture and Quad

Programming is a very self taught skill. Thing is, if you do not understand very basic OpenGL stuff, we cannot cram hours of reading into a few comments. This site is not for people to get spoon fed everything nor for private tutoring. We do not get paid here.

Also, please use paste bin or something for huge chunks of code.

I strongly recommend, like everyone else here, to start with rendering a quad, then triangles, then basic 2d, the a 3d cube and move on. THEN look at the code you posted. You will find it much more understandable. We can’t put information in your head. It is not that we or at least I wouldn’t want to help you but no one is entitled to have people here do anything for them which is how you came across in your last post. :-\

yea but thing is i am learning from code which i see which i can edit and play around to see what happens.
In same way i learned php in there i learned how to code in object oriented programing (oop) and stuff like that.I learned alitle bit from tutorials actualy basics then i got some workings codes and started to play around with them.After a month or so i learned how to make my own codes and now can mak fully working website with html css and php.
So i came acros Java and started to learn i can make simple 2d or 3d game in pure java but i realised that with lwjgl i can make my game better smoother fps and things like that.
But if people just poimt me to shity places where i will learn basics whichs i alredy know its ussless.
I dont ask you or anybody else to code for me i just asked simple task to just comment some lines in that code with what they do and maybe a litle but about why.Is that realy hard? and for those who said that i need obj loader i alredy have that.my game works fine but i want to add some tools as i said i only have this axe (in pickaxe form :D).
Anyway.If you cant help me dont post bullcrap about learning stuff which isnt realy needed.But if somebody can just add those comments to that code so i can take a look on them and then make my own tool i will apriciate that.If nobody can help me then i guess i will try to contact code author as he said he will anwer to questions.
Thank you anyway.

This gives me the impression that you’re goal is to just make a Minecraft clone like most other people who have a voxel project. If you really wanted to be a game developer, you’d focus on learning step by step and understanding how the code you write works. By reading, copying and making minor modifications to code, all you’re going to do is learn what to write. That will lead to problems if/when you want to create a different sort of game.

Notch thought up of a unique idea and created it. If you want to be the next Notch, do something unique.

By the way there’s no need to be immature about it and to become abusive. StumpyStrust was only giving you advice. Have a nice day and I wish you all the best. :slight_smile:

StumpyStrust actualy you made some sense to me i am starting to understand that.And about that speling i will have a look and edit them.
Thank you :slight_smile:

Actualy i am not making another minecraft clone.And i stoped play minecraft long time ago because its booring when you play it again and again.If i would want to make a minecraft clone i would write it in c++ because its more powerfull than java and for rendering it gives much more fps than java.but as i said i am not making minecraft clone.I want to make game so understand how all that works.And step by step is good way to do that but in my case as i said i learn from code not from wiki’s i take finished code and edit it make some changes in it and i i go and look what have been fucked up or improved.I cant realy understand thisone thing that why i camed here and asked.
But hey if you cant even help me with litle explanation then i asume that you dont even understand that code which i gave.Because if have alredy learnded that it would take from your time about 5min to add some litle comments to it so somebody could actualy understand it to.
Its like in dictionarie you see other Language word and a english translation and after that you see some explenation about it but it in there that word have been puted in sentence.(I am sorry my english is bad i know but i hope you got my idea).
So can you please help me?Just add some litle comments in that code like this one which alredy are there.[quote]// Normal Pointing Up
[/quote]
only diference would be that you a litle bit explain me what it does.I dont ask to code whole thing because i want to do that on my own as i am learning.

I do not have to help you. I tried to give you some constructive advice, but your attitude is awful. As a matter of fact I can’t be bothered reading 408 lines of badly written, badly organised, slow, deprecated code. Do your own research. You shouldn’t post a whole file of code on a forum and then expect people to add comments in it for you.

You obviously have no clue what you’re saying.