Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (724)
Games in Android Showcase (216)
games submitted by our members
Games in WIP (791)
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 5611 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=";hl=en_US&amp;start=" target="_blank">;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 Knight

Medals: 53

« 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 Opiop
« 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 Opiop
« 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:
Offline Vermeer

JGO Coder

Medals: 16

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


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 Knight

Medals: 53

« 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. 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=";hl=en_US&amp;start=" target="_blank">;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.

Archive (35 views)
2017-04-27 17:45:51

buddyBro (244 views)
2017-04-05 03:38:00

CopyableCougar4 (668 views)
2017-03-24 15:39:42

theagentd (666 views)
2017-03-24 15:32:08

Rule (715 views)
2017-03-19 12:43:22

Rule (689 views)
2017-03-19 12:42:17

Rule (691 views)
2017-03-19 12:36:21

theagentd (705 views)
2017-03-16 05:07:07

theagentd (637 views)
2017-03-15 22:37:06

theagentd (478 views)
2017-03-15 22:32:18
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 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‑
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!