Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Terminal - A space voxel game  (Read 2067 times)
0 Members and 1 Guest are viewing this topic.
Offline Simn
« Posted 2013-08-17 16:48:32 »

Hello fellows,

So a little history behind this project: I'm a 15 year old high school student who got interested in Java in the beginning of this year. I later decided to try out LWJGL and see what I could make with it, and this is the result.

So, what's the idea?

The idea is, as said, a space voxel game, located far into the future where humans rule the galaxy. The main thought I've been thinking about is some kind of FPS dogfight game, where you've got a mothership with several fighters that you steer in first person perspective. This idea is a 'dream' idea though (as you might even guessed), I've got no faith in my self that I will make something that massive, so I began smaller.

Heavily inspired by 0x10c I decided to make some sort of room editor that you could walk around in and modify with placing blocks. I've also been built a virtual CPU that got it's own assembly-like language.Tongue And that's pretty much where I've got so far:


<a href="http://www.youtube.com/v/Atpn-XiHwLU?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/Atpn-XiHwLU?version=3&amp;hl=en_US&amp;start=</a>


(Sorry for the lags, and bad quality. Shitty QuickTime)

The engine is built on the core profile (> 3.2).


But, there is a big 'but'. Tongue

I'm currently struggling heavily with more advanced linear algebra (picking for example, in the video it just enables if the block is inside the xyz value of the other blocks, no ray at all) and shadows with point lights (got it working with directional lights though). So I'm kinda tempted to scale down to 2D and do some other ideas. All in all, this is my first project, and I think I'm pretty right when I say that I aimed a little too high. Tongue

So what do you guys think, should I go on or do something else?

- Simn
Offline quew8

JGO Coder


Medals: 29



« Reply #1 - Posted 2013-08-18 16:58:32 »

There is a hell of a lot of combined experience on this forum. If you have a problem we can provide the help to get through them. With a little more info on what you do and don't know maths wise, we can easily help. At 15, presumably you're studying maths and know a fair bit of algebra so I suspect the problem lies with your knowledge of the more specific stuff. Like vector maths (dot/scalar and cross/vector products and the like). That is easily remedied.

As for what you should do, I wouldn't advice a newbie to start in 3d, but since you have and seem to be doing okay I wouldn't advice just leaving the project and doing nothing with it.
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #2 - Posted 2013-08-18 18:27:19 »

I would say keep going with this project until you get too frustrated to continue. Then go back learn 2D. I actually started my OpenGL career like this, and it didn't turn out to bad. It gave me a taste of 3D, and then I learned all the functions in a 2D environment. After my next game I plan on making, I want to get back into 3D. Its been since Christmas and I'm interested to see how far I could get in a voxel game now!

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Simn
« Reply #3 - Posted 2013-08-18 19:04:19 »

@quew8 In relative to what's the problem, it's just ray-quad intersection. I've tried many solutions, but it seem to never get really accurate and good (as said, my temporary solution is just to place a block at my cameras look direction and check if that block's position is 'inside' the different faces). Any help would once again be heavily appreciated! Smiley

In relative to my math knowledge, I would say that it's not perfect, but I understand the basics in linear algebra.

- Simn
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #4 - Posted 2013-08-18 19:11:30 »

Here, I don't know if you've seen this, but this topic has a lot of info on developing voxel games. The page I linked you to specifically has info on face picking:
http://www.java-gaming.org/topics/lwjgl-blockworld/28866/150/view.html

Offline Vermeer

JGO Coder


Medals: 16



« Reply #5 - Posted 2013-08-19 13:14:01 »

Hi,

It look very interesting what you are doing. Keep trying on it. I will post the source code for the picking when I get home. There are lots of people who will be able to help too.
Offline quew8

JGO Coder


Medals: 29



« Reply #6 - Posted 2013-08-19 20:32:51 »

Source code is good but perhaps a tutorial is better. Here's one I prepared earlier. http://www.wildbunny.co.uk/blog/vector-maths-a-primer-for-games-programmers/ Purely for the vector maths.

NB: I most certainly did not make this myself in case the previous statement suggested that.
Offline Simn
« Reply #7 - Posted 2013-08-20 13:53:44 »

Thank you so much for the support guys, but after some reflection today, I think I'll just lay this project on ice until further and make something in 2D. Just because I'll make progress much faster and actually enjoy making it, rather than banging my head against the desk because I'm struggling with problems most of the time.

But who knows, I'm only 15, and maybe I'll come back to this when I got some more experience. Anyways, I'm truly grateful for this project, I've learned a ton about OpenGL, Java, vector math and much more that I can take with me in the next projects.

Once again, thanks for providing the support. Smiley

- Simn
Offline Simn
« Reply #8 - Posted 2013-09-08 15:53:48 »

Hello again folks.

I haven't been doing a lot on my 2D-game in the past three weeks. I also started to dislike the ideas. Therefore, I sat down one evening and just said to myself that I was going to fix the picking on Terminal no matter what, because that was an idea I really liked. Some guides and some C++ code later I had it working quite nice. It gave me a huge boost and I've been working a lot on this project since.

The picking isn't pixel-perfect, but it's a hell of a lot better than last update.

Here's the changelog (Pre-alpha 0.0.5):

- Picking.
- BuildCubes (just cubes that you can scale, resize and move around).
- Smoother jumping.
- Importing and exporting shapes.
- A console for commands.
- Lots and lots of refactoring.
- Optimizing.

<a href="http://www.youtube.com/v/nl3CLypzlvA?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/nl3CLypzlvA?version=3&amp;hl=en_US&amp;start=</a>

- Simn
Offline AullenVerch

Senior Newbie




The univertse is vast!!


« Reply #9 - Posted 2013-12-13 06:29:03 »

I like the way you manipulate the cubes in the last video. Rather then simply adding and deleting them, all the transforming faces.  Cheesy
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (29 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (39 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (36 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (49 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!