Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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  
  Poss-Engine - (Windows, Mac, Linux)  (Read 1960 times)
0 Members and 1 Guest are viewing this topic.
Offline Spacebeans

JGO Knight


Medals: 18
Projects: 2
Exp: 4 years


Bye everyone!


« Posted 2014-04-13 21:17:16 »



Poss Engine is a game about destruction and creation. I call it an engine because your gonna spend more time creating things to play with than actually using them.

The game has a custom entity engine that makes it easy for the player to make entities in-game, and use them to their will. This is also for lights, blocks, items, and buildings. Then, when they are done, the entity, block, item or building can be exported into a file format for other players to download and use however they want.

Destruction and physics is a big part of this game. It uses JBox2D for most of everything, and I am slowly implementing it into the engine.

Facebook: https://www.facebook.com/pages/PossEngine/640473439357065
GitHub: https://github.com/Spacebeans-/poss-engine
Youtube: https://www.youtube.com/user/passagearchive
Twitter: https://www.twitter.com/Spacebeans_

Demo: http://youtu.be/Vtab9CHEMCA

This is a dead account. Goodbye everyone!
Offline Drenius
« Reply #1 - Posted 2014-04-13 21:24:37 »

Sooo ... what is it?
A game or an engine?
A modifiable game is still a game!
Offline Spacebeans

JGO Knight


Medals: 18
Projects: 2
Exp: 4 years


Bye everyone!


« Reply #2 - Posted 2014-04-13 21:28:13 »

Sooo ... what is it?
A game or an engine?
A modifiable game is still a game!
I mean it doesn't really have a story, or a theme. Everthing in it and how it plays is determined by the player. All the game really does is give the player the tools to create ANYTHING they want. Then the game engine adds physics, works entities, lights, and all the hard stuff.

I'm slowly adding details to the post. And a youtube demo is uploading with 98 minuets remaining Cheesy

This is a dead account. Goodbye everyone!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Drenius
« Reply #3 - Posted 2014-04-13 21:31:39 »

So ... it is basically a sandbox game or - lets called a game sandbox. Right?
Offline Spacebeans

JGO Knight


Medals: 18
Projects: 2
Exp: 4 years


Bye everyone!


« Reply #4 - Posted 2014-04-13 21:34:54 »

So ... it is basically a sandbox game or - lets called a game sandbox. Right?
I guess you could call it a sandbox game. But I'm still working out how everything plays for now. The final product could be allot different than the original idea.

This is a dead account. Goodbye everyone!
Offline Spacebeans

JGO Knight


Medals: 18
Projects: 2
Exp: 4 years


Bye everyone!


« Reply #5 - Posted 2014-04-13 23:24:21 »

I added a video demo here: http://youtu.be/Vtab9CHEMCA

This is a dead account. Goodbye everyone!
Offline LiquidNitrogen
« Reply #6 - Posted 2014-04-14 04:12:41 »

nice shadow Smiley
Offline Spacebeans

JGO Knight


Medals: 18
Projects: 2
Exp: 4 years


Bye everyone!


« Reply #7 - Posted 2014-04-14 04:21:35 »

Yeah, its actually a quad. See every mesh in the lighting world has a vertex array. I do a for loop for all the meshes, get their vertices and draw points from the two facing the outer-most.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
for (int i = 0; i < vertices.length; i++) {
                 
               Vector2f currentVertex = vertices[i];
               Vector2f nextVertex = vertices[(i + 1) % vertices.length];
               Vector2f edge = Vector2f.sub(nextVertex, currentVertex, null);
                    Vector2f normal = new Vector2f(edge.getY(), -edge.getX());
               Vector2f lightToCurrent = Vector2f.sub(currentVertex, light.location, null);
                 
               if (Vector2f.dot(normal, lightToCurrent) > 0) {
               
               Vector2f point1 = Vector2f.add(currentVertex, (Vector2f) Vector2f.sub(currentVertex, light.location, null).scale(800), null);
               Vector2f point2 = Vector2f.add(nextVertex, (Vector2f) Vector2f.sub(nextVertex, light.location, null).scale(800), null);
                     
               glBegin(GL_QUADS); {
                  glVertex2f(currentVertex.getX(), currentVertex.getY());
                  glVertex2f(point1.getX(), point1.getY());
                  glVertex2f(point2.getX(), point2.getY());
                  glVertex2f(nextVertex.getX(), nextVertex.getY());
               } glEnd();
            }
      }

This is a dead account. Goodbye everyone!
Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #8 - Posted 2014-04-14 04:22:31 »

That immediate mode rendering... yeah.

Offline Spacebeans

JGO Knight


Medals: 18
Projects: 2
Exp: 4 years


Bye everyone!


« Reply #9 - Posted 2014-04-14 04:23:57 »

I had to. The quads vertexes were ALWAYS changing in real time. So I used something that constantly sends vertexes to the card. VBOs are interleaved, so you cant change their data. But the actual blocks are VBOs.

This is a dead account. Goodbye everyone!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #10 - Posted 2014-04-14 04:26:09 »

Thats where vertex arrays come into play. Come on, do you really think that modern engines use immediate mode rendering styles because their vertices change constantly? Nope. They use modern rendering techniques because that's what the "new" OpenGL is based around. The fixed function pipeline is pretty much dead, I wouldn't suggest using it anymore for anything besides maybe quick testing.

Also, vertices, not vertexes.

Also, also.
Quote
But the actual blocks are VBOs.
VBOs (vertex buffer objects) are just containers for raw data that your graphics card can interpret. VBOs are not "blocks" or anything of the sort, they are simply containers of data. I see many people make that mistake.

Offline Spacebeans

JGO Knight


Medals: 18
Projects: 2
Exp: 4 years


Bye everyone!


« Reply #11 - Posted 2014-04-14 04:34:52 »

Thats where vertex arrays come into play. Come on, do you really think that modern engines use immediate mode rendering styles because their vertices change constantly? Nope. They use modern rendering techniques because that's what the "new" OpenGL is based around. The fixed function pipeline is pretty much dead, I wouldn't suggest using it anymore for anything besides maybe quick testing.

Also, vertices, not vertexes.

Also, also.
Quote
But the actual blocks are VBOs.
VBOs (vertex buffer objects) are just containers for raw data that your graphics card can interpret. VBOs are not "blocks" or anything of the sort, they are simply containers of data. I see many people make that mistake.

Thanks for the advice, really. Also, I mean't the block engine in game is using VBOs as their main way of rendering. I will try to implement a new way of editing the float buffers from my sprite batches. Then implement it through that.

EDIT: I should have mentioned the framework for the lighting was actually made by the LWJGL.org user, DrArgonmoray
github: https://github.com/DrAgonmoray/BasicLighting/

This is a dead account. Goodbye everyone!
Offline Jacob Pickens
« Reply #12 - Posted 2014-04-19 01:55:15 »

And the tweening is by the one and only Jacob Pickens!!! (I was recruited into this project. I have done nothing since Tongue)
Offline Longarmx
« Reply #13 - Posted 2014-04-19 15:49:54 »

And the tweening is by the one and only Jacob Pickens!!! (I was recruited into this project. I have done nothing since Tongue)

Just to let you know, there are over a dozen Jacob Pickens in this world...

@Spacebeans  if you have a float array cache, and you put your blocks into the array in a certain order, then modifying the vertices should be relatively easy

Offline Spacebeans

JGO Knight


Medals: 18
Projects: 2
Exp: 4 years


Bye everyone!


« Reply #14 - Posted 2014-04-19 22:19:34 »

@Spacebeans  if you have a float array cache, and you put your blocks into the array in a certain order, then modifying the vertices should be relatively easy

I'm actually re-programming the engine (due to the sloppiest code in the world), I'm working out the sprite batches now actually, thanks for the advice.

This is a dead account. Goodbye everyone!
Pages: [1]
  ignore  |  Print  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (15 views)
2014-08-01 22:53:16

CogWheelz (15 views)
2014-08-01 22:51:43

CopyableCougar4 (18 views)
2014-08-01 19:37:19

CogWheelz (19 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (35 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36
Resources for WIP games
by CogWheelz
2014-08-01 18:20:17

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

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

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

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

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22
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!