Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 24
1  Games Center / Featured Games / Re: Daedalus - no escape on: 2014-09-19 23:25:53
It's finally coming!
2  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-19 04:21:04
I played around with FBOs, trying to figure out how to use them.

I also added textures and obj loading to my game engine. Now I'm trying to get shadow mapping to work  Pointing
3  Discussions / General Discussions / Re: FlipFlop - Examn f(CLK) on: 2014-09-18 11:46:52
Ok. I understand now. For some reason I was thinking getting very confused by the uneven duty cycle.. 5Hz is correct
4  Discussions / General Discussions / Re: FlipFlop - Examn f(CLK) on: 2014-09-18 01:58:06
Since the NAND will trigger the clear whenever Q3 and Q2 become 1, the last 4 truth table conditions will never happen. Thus, you only have 12 possible states of the flip-flops. This shouldn't affect the frequency though...
5  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-17 01:52:32

It's what I do already, and I'm anything but rich.  Cheesy
6  Discussions / Miscellaneous Topics / Re: What other programming languages do you use & why? on: 2014-09-16 00:13:02
(ps: is it weird that my first language was C++ but then I found Java and totally abandoned C++?)

My first language was obj-c, but I haven't touched it in 4 years...
7  Discussions / General Discussions / Re: FlipFlop - Examn f(CLK) on: 2014-09-16 00:01:35
3.75 ( from flip flops ) + 1.25 of NAND = 5

Is that it?

It's asking for the output from Q3, so the NAND shouldn't affect it. The NAND is just there to reset all the flip-flops.
8  Discussions / General Discussions / Re: FlipFlop - Examn f(CLK) on: 2014-09-15 03:52:06
High would be 5V, low is 0V. This is frequency.

Also, high and low can reverse whether you're talking about common anode or common cathode.
9  Discussions / General Discussions / Re: FlipFlop - Examn f(CLK) on: 2014-09-15 03:43:18
Yep, I just looked at the question. So it should be 3.75Hz (60 / 2^4), but maybe they just rounded up??
10  Discussions / General Discussions / Re: FlipFlop - Examn f(CLK) on: 2014-09-15 03:36:06
I'm a little bit rusty, and don't know entirely what the question is asking, but since it is a frequency divider, then the frequency will halve after each flip-flop.

So you have 3 flips-flops, the frequency should be 15/2Hz shouldn't it?

Clock (60Hz) -> JK -> Q (30Hz) ->JK -> Q (15Hz) -> JK -> (15/2Hz)

Maybe its something like an off by one that I don't know about, so you only have to flip-flops. In that case, it would be 15 Hz.

Phased: You're thinking of voltage  Wink
11  Game Development / Game Mechanics / Re: Camera Rotation Problem on: 2014-09-15 03:28:48
Thanks, I finally got it working Grin Now I can enjoy my triangles in peace...

12  Game Development / Game Mechanics / Re: Camera Rotation Problem on: 2014-09-13 23:07:47
Thanks for the reply! I did not know that cameras were a part of those awesome tutorials of yours!

One question though: In the matrix picture you provided, cell(0, 2) (column 0, row 2) is defined as s * (qz * qz - qw * qy). From your code I assume that it's supposed to say s * (qx * qz - qw * qy).

I implemented the code, and there is progress. Unfortunately, now I have a camera that rotates around the origin of the world (like I'm always calling lookAt(0, 0, 0)). Also, directional controls are messed up, like the vectors aren't rotating enough.

I've checked through all the code on your website, and mine matches up.

If you need me to post code (or anything else), I can.
13  Games Center / WIP games, tools & toy projects / Re: Asteroid Fight [MMO-RTS-RPG genre mix] on: 2014-09-12 02:47:53
Wow, really good work! Everything is nice and smooth, and the art-style is consistent. I also like the mix of tower defense elements and a way to macro and micro manage your units.

Keep up the good work! (Reminds me of SPAZ btw!)
14  Discussions / General Discussions / Re: great article on good coding practice on: 2014-09-11 04:14:33
Wonderful! I was already doing most of these, but there's always a few that I forget.
15  Java Game APIs & Engines / OpenGL Development / Re: VBOs my worst nightmare on: 2014-09-08 21:32:49
Am I correct that VBOs are created and saved in the GPU

Yes

then used whenever it is rendered?

It will use whatever VBO is currently bound.

So if I had a triangle or any other shape with different verticies, I would just do this?
1  
glDrawArrays(GL_TRIANGLES, 0, amountOfVertices2);


Essentially, yes. Just however many vertices you want to draw with the currently bound buffer. I like to keep something like an ArrayList (or an array if you already know all the vertices) that stores the vertex data. Then, I can just call
vertices.size() / vertexSize
(because there are 3 values per vertex) to get the number of vertices.

You already have an array that you is being uploaded, so just make an object that you can reference (
float[] vertices
) and use that to get the number of vertices.

Also, besides clarifying myself, I got lost when videos would talk about an ID? What's this ID as well as a VBO stored in a VAO?

An ID is how you access the buffers. Opengl gives you a pointer to the buffer, instead of the actual object. You use this ID to access the buffer.
16  Game Development / Newbie & Debugging Questions / Re: Game Ideas for someone who understands, but wants to improve, collision? on: 2014-09-07 05:05:35
Lunar Lander should help you get to know generic convex polygon collisions (probably using the separating-axis theorem).
17  Game Development / Game Mechanics / Camera Rotation Problem on: 2014-09-07 01:13:54
I am attempting to create a 3d game from scratch; and in my effort, I have come across a slight problem with my Camera.

Camera rotation is defined with
Quaternion rotation
. The quaternion is rotated around the up and right vectors of the camera using delta mouse position as the angle. A rotation matrix is created and multiplied to a projection matrix for the final MVP.

The problem is that the camera is not rotating around itself. I don't know what it's rotating around, but the object never leaves the view. Instead, it just folds over the edge and comes back (probably a result of sin and cos in the quaternion rotation).

Here is a video demonstrating the problem:
<a href="http://www.youtube.com/v/RXWv2YC-rxs?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/RXWv2YC-rxs?version=3&amp;hl=en_US&amp;start=</a>

Here is the
Camera
class: http://pastebin.java-gaming.org/3cac7586f0b12
Here is the
Quaternion
class: http://pastebin.java-gaming.org/cac786f6b0213
Here is the
Quaternion
to
Matrix4f
conversion: http://pastebin.java-gaming.org/ac78f7b620310
(Sorry for the formatting problems)

I am using this page for Quaternion reference and math: http://www.cprogramming.com/tutorial/3d/quaternions.html
18  Game Development / Newbie & Debugging Questions / Re: Return int from Method on: 2014-09-06 18:56:42
I'll just be nice and, Recommend you work on your spelling.

I'll just be nice, and recommend you get rid of your ignorant attitude. Cylab's point was perfectly valid, and you should follow his advice.
19  Game Development / Newbie & Debugging Questions / Re: Inheritance and arrays on: 2014-09-06 16:39:17
If you're interested in a reason, it's polymorphism. If you don't know about polymorphism, here's a quick explanation: https://www.youtube.com/watch?v=0xw06loTm1k
20  Discussions / General Discussions / Re: Bouncing a game idea around. on: 2014-09-03 04:05:12
Have you had a look at Daedalus? It fits pretty well with the idea you're describing.
21  Game Development / Newbie & Debugging Questions / Re: Toggling Swing Anti-Aliasing on the fly on: 2014-08-31 02:17:22
But I chose the sexiest swing theme evar D:<

JavaFX > Swing
22  Game Development / Newbie & Debugging Questions / Re: Where should a Java noob learn game programming? on: 2014-08-31 01:42:07
Just like to add: Cave of Programming on YouTube. The guy, John is a software development trainer and has amazing in detail videos and even responds to messages if you need any help. He has some paid courses on his website (I own a few as he is awesome!) and he is where I learned to code Smiley

Even if you are trying to learn more advanced topics, he is a great resource!
23  Games Center / Contests / Re: Ludum Dare 30 (Connected Worlds) on: 2014-08-25 01:00:40
You are all awesome. I only managed to make a prototype, not a full game. I thought the mechanics would be cool but in the end they didn't. Tongue

I think that it is pretty cool.  Pointing

Finished my entry: http://www.ludumdare.com/compo/ludum-dare-30/?action=preview&uid=12688

Yeah, it looks a lot like my warmup, but I swear I didn't copy any code. Everything was made from scratch. This one even includes a cheap story, strange graphics, and mediocre main menu. Wink
24  Game Development / Newbie & Debugging Questions / Re: Solved - Need advice/guidance on path finding - A* on: 2014-08-24 14:33:12
If you haven't already, you should check out this playlist. He explains graphs, Dijkstra's, and A*.
25  Games Center / Contests / Re: Ludum Dare 30 (Connected Worlds) on: 2014-08-24 14:02:04
Same here. I feel like this is mostly because I wrote down a plan from the beginning, and I underestimated my abilities so that I wouldn't try to create too large of a game.
26  Java Game APIs & Engines / OpenGL Development / Re: [Lwjgl] Partial transparent texture on Voxel don't render correcty on: 2014-08-23 21:47:44
In addition to separating transparent blocks from opaque blocks, you will also have to sort from back-to-front, so that the blocks farther away get rendered first.
27  Games Center / Contests / Re: Ludum Dare 30 (Connected Worlds) on: 2014-08-23 01:06:19
Well, I guess I already have a head start... Muahahaha  Wink
28  Discussions / Miscellaneous Topics / Re: Programmer Radio Station on: 2014-08-22 01:10:45
If you're talking about music instead of something like a podcast, then we already have a thread for that: What music do you listen to while you code? Just browse through the thread, and you'll find something that you like.  Wink
29  Games Center / Contests / Re: Ludum Dare 30 (Theme Voting Open) on: 2014-08-21 22:11:19
The game is amazing Cheesy

Wow! Thank you!  Cheesy
30  Discussions / Miscellaneous Topics / Re: League of Legends ;D on: 2014-08-21 03:18:14
I haven't lost a single game. Tongue
Me neither. Spoiler: That's because I don't play the game.
Dota 2 all the way. Tongue No really, all the MOBAs have terrible communities, with infuriating gameplay (exactly because of the bad community), still whenever I feel like torturing myself I play a few games of Dota 2. Smiley

That's why I (used to) play Starcraft II. I never got above silver, and I was perfectly fine with that. Most of the people that I played with were pretty cool people, with the occasional troll to spice things up. Rarely did I get someone who was an actual jerk that made me quit early.

Edit: I know, not a true MOBA, but I think it can still fall into the category.
Pages: [1] 2 3 ... 24
 

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

The first screenshot will be displayed as a thumbnail.

BurntPizza (7 views)
2014-09-21 02:42:18

BurntPizza (8 views)
2014-09-21 01:30:30

BurntPizza (11 views)
2014-09-21 00:34:41

moogie (11 views)
2014-09-21 00:26:15

UprightPath (23 views)
2014-09-20 20:14:06

BurntPizza (27 views)
2014-09-19 03:14:18

Dwinin (40 views)
2014-09-12 09:08:26

Norakomi (70 views)
2014-09-10 13:57:51

TehJavaDev (96 views)
2014-09-10 06:39:09

Tekkerue (49 views)
2014-09-09 02:24:56
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!