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   
  Show Posts
Pages: [1]
1  Game Development / Game Mechanics / Re: [3D] rotate camera around an object up and down from my perspective on: 2014-02-07 14:39:32
ehm, could you take that 2nd paragraph and make it easier. I've only done opengl for a maximum of a month (with the help from YT videos mostly). I didn't quite understand the thing with FloatBuffers (I've never used them). And what exactly do I need to have stored in the Float Buffer (how?). When do I do the glMatrixMode(), loadMatrix,store matrix and loadMatrix(), while I'm rotating or when I'm done rotating?
2  Game Development / Game Mechanics / Re: [3D] rotate camera around an object up and down from my perspective on: 2014-02-06 19:41:39
Yes, I'm using opengl (LWJGL) and from what I understand I'm using fixed function pipeline, I haven't implemented any shaders (for now I don't really know what they are, but I can find that out myself)

Woah, that's a long article Tongue. I will read through that when I have the time
3  Game Development / Game Mechanics / Re: [3D] rotate camera around an object up and down from my perspective on: 2014-02-06 17:29:34
So I read through the Vectors, Rotation and Matrices, but I had a really hard time understanding matrices and the world space object space thing. So what I'm saying is that I still have no idea on how I could fix the camera problem I had before I'm feeling like I'm not even close to understanding the camera thing. And it doesn't help that I don't understand a lot of mathematical words since English isn't my native language. The only thing I didn't really get in the vector article was the perpendicular operation. Any advice on how I can understand this more or should I just give up on this 3D thing?
4  Game Development / Game Mechanics / [3D] rotate camera around an object up and down from my perspective on: 2014-02-05 20:54:50
So, I'm right now in the making of a model creating program for my future game/s, where I'd like to rotate my camera around an object (I know I can use 3d programs out there like blender but whats the fun in that?). Not that I think it matters but I'm just going to have voxel models.

But the problem I'm facing is making the camera rotate around a certain point in my program. So here is how I'm doing stuff for now:

First off all, I press the mouse wheel button and move up,down, left or right with the mouse. This should give the camera a rotation value. When I move the mouse in the X axis (in 2D space) I call the method Camera.rotateX(rotateAmount); and the same for the Y axis. The problem lies inside the rotateX method, how do I calculate the direction of the camera (rx,ry,rz) when I want to rotate (from my perspective) the x axis by an amount of degrees. If you didn't catch what I'm trying to do, I'm trying to rotate a camera around a point like they do in solid-works or blender, except I don't change the point where I'm rotating around (It's always 0,0,0).

I'm in 11th grade (2nd year of high school?) so I haven't really learned anything about 3d vectors (actually barely about 2D vectors, though I think I can handle them pretty easy)

Btw, I've tried finding an article, forum thread that brings up my kind of rotation but I can't find one.

Do you need more info just ask instead of ignoring my problem, please Cheesy

Hope you could help and thanks in advance.
5  Game Development / Newbie & Debugging Questions / Re: Sound Problem in my Game on: 2013-07-15 10:02:30
just do
1  
2  
3  
4  
 public void init() {
      Musik.musik1.play();
      System.out.println("test");
}

If the console prints out test the init method is running and if not you didn't call the method.
6  Game Development / Game Mechanics / Re: Swinging a sword hitbox - ideas? on: 2013-07-15 08:51:03
Okay, thanks everyone for your tips. I will try to implement the idea from Oskuro.
7  Game Development / Newbie & Debugging Questions / Re: Sound Problem in my Game on: 2013-07-15 08:44:41
Okay, 3 questions
1. What is your code right now?
2. Did you see if the init method is actually running?
3. Do you get any errors when you are running the code?
8  Game Development / Newbie & Debugging Questions / Re: Sound Problem in my Game on: 2013-07-14 18:49:32
Do you have a class called Sound?

1. you typed
1  
clip = Applet.newAudioClip(Sound.class.getResource(filename));

with Sound.class. Try typing Musik.class instead since that is the class you are inside.
2. If that doesn't help have you tried printing test in the init method so that you know that it is running?

Hope it helps Tongue
9  Game Development / Game Mechanics / Swinging a sword hitbox - ideas? on: 2013-07-14 17:17:36
I've started to create a combat system in my game and I'm having problem with my sword hitbox. The way I'm swinging the sword is like this:
 
Any ideas on how would I go about creating a hitbox for this attack?
10  Game Development / Artificial Intelligence / Re: Enemy moving towards player with low friction on: 2013-07-09 14:06:20
okay, thanks for the help Cheesy
11  Game Development / Artificial Intelligence / Re: Enemy moving towards player with low friction on: 2013-07-09 13:49:22
then ddx = (6-2)2 = 2


which 2 is which? Also (6-2)*2 = 8 right?
12  Game Development / Artificial Intelligence / Re: Enemy moving towards player with low friction on: 2013-07-09 13:29:53
But how can I get the xAcceleration and yAcceleration so that the enemy will get to the player from both axis at the same time?
13  Game Development / Artificial Intelligence / Re: Enemy moving towards player with low friction on: 2013-07-09 13:19:24
okay, thanks. Just one more thing. How can I calculate the acceleration in x and y if I have a set acceleration for the diagonal movement?
14  Game Development / Artificial Intelligence / Re: Enemy moving towards player with low friction on: 2013-07-09 12:54:52
What I have right now is kinda like that I think. I have a position (x,y) and two speeds (speedX,speedY). But the problem isn't to implement the friction, it is how to calculate the speed in x and y that the enemy is going to slow down with each frame.
15  Game Development / Artificial Intelligence / Enemy moving towards player with low friction on: 2013-07-09 12:40:33
So, I've just started working on my AI in my game and I just got stuck with one simple thing, making a enemy move towards me with barely any friction.

To explain it a little bit more I want the enemy move towards the player. If the player moves away from the "attack" of the moving enemy, the enemy will slowly speed down and change direction and aim for the player again.

Kinda similar to the Demon Eye in Terraria.

I do know how to make the enemy move towards me without taking the friction into account.

Hope you understood the question and thanks for answers.

If you need further information or code, just ask.
Pages: [1]
 

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 (32 views)
2014-08-22 19:31:30

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

Tekkerue (40 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 (37 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!