Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
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 ... 9
1  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-15 19:52:10
Finished the GUI in my Sandbox-game, and some other things...

(listing of commits)
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
Removed 'U' ("Reset World") keybinding.
Finished up GUI-Work and a bunch of other things.
Added a wireframe-box to show how big the world is.
Added wraparound to camera Y rotation.
Sphere rendering now actually uses textures (for real this time!).
Added 3 new methods to GUIRenderer.
Added texturing to sphere drawing, and reduced polycount for spheres.
Fixed bug that the mouse-pos is inverted.
Added method to set color before drawing a string.
Added normals to sphere rendering.
Added methods to draw gradients to BasicGeometry2D.
Refactoring, optimization and bug-fixes. Added controls.txt file. Added source-metrics.


(Also, screenshot)
2  Discussions / General Discussions / Re: Microsoft to buy Mojang for $2 billion? on: 2014-09-15 15:20:41
I may have just lost pretty much all motivation to update my Minecraft mods.
Oh well... I have my own projects to work on (even though that mod is my favorite project).
3  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-15 13:41:27
What I did today (expressed in commits):
-snip-

Looks awesome
Is the repo public? I would love to see the source!

Yes, its public (I just made it public).
But mind that:
  • The code has badly designed code everywhere in it.
  • Lots of dependencies.
https://bitbucket.org/longor1996/sandbox
4  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-14 22:56:57
What I did today (expressed in commits):
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
Added TimeWasteThread to increase System-Time precision.
Added Key/MouseEvent to GUIPanel.
Added transparent grid to the world, and changed deletionDepth-Grid to use the same system.
Working on GUI-System.
Scripting derpiness.
BugFix: NullPointerException if too many objects get deleted too fast.
BugFix: Weird micro-stuttering in camera interpolation.
BugFix: Removal of objects can corrupt the Artemis-ECS.
BugFix: System.GC() after init() to free post-startup memory and reduce initial frame-lag.
Marked some colors for easier color-search.
Added vsync.
Added EntityComponentSystem (ARTEMIS).
Changed Debug-Rendering.
Added TimerTask-class.
Scripting derpiness ensued.
Work on GUI.
Made the FlyCamera use interpolation, results in a smoother movement/rotation.
Added code to allow the XPNG-system to use any kind of OpenGL texture-filtering.
Worked on the BasicGeometry?D classes.
Added sphere RigidBody/Shape creation and caching to BulletUtil.


And a picture, because pictures:


Also, note that the application eats up less than 10 megabyte. Yay for correct memory management!
5  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-13 20:22:42
Today I added Python-scripting to my sandbox.
Why did nobody ever tell me that Python can be fun?!

(Also, more boxes, now of different scale and color) EDIT: replaced image with better example


This picture was made with this script:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
s = 32

for x in range(-s,+s):
   for z in range(-s,+s):
      fx = x * 16.0
      fz = z * 16.0
     
      w = mathutil.random(0.1, 8.0)
      l = mathutil.random(0.1, 8.0)
      h = mathutil.random(0.1, 8.0)
     
      datbox = bulletutil.mkBox(fx,0,fz, 0.0, 0.0, 0.0, w, h, l, 0.0, False)
      world.addRigidBody(datbox)


Edit:
Have a prototype.
  • Not guaranteed to work!
  • 18 MB RAR
6  Game Development / Game Play & Game Design / Re: Lighting on: 2014-09-10 22:52:18
Yes, that would work.
7  Java Game APIs & Engines / OpenGL Development / Re: How to structure texture loading? on: 2014-09-10 12:45:07
Lets say you have a UV for your mesh that is already normalized into the range of 0..1, and you have a spritesheet which contains that texture.
To transform the Mesh-UV so it takes its texture from a given spritesheet-piece, do this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
vec2f[] meshUV = ...?; // The UV of your Mesh.
rectangle spriteUV = ...?; // Section of the spritesheet you want to use

// make a copy of your Mesh-UV (you dont have to, but its better in some cases to not override your original data)
vc2f finalUV = copy(meshUV);

// Transform the UV
for(int i = 0; i < meshUV.length; i++)
{
    finalUV[i].x = linearInterpolation(spriteUV.minX, spriteUV.maxX, meshUV[i].x);
    finalUV[i].y = linearInterpolation(spriteUV.minY, spriteUV.maxY, meshUV[i].y);
}

// done!


I hope this helps.

Have a nice day!

- Longor1996
8  Games Center / Cube World Projects / Re: Open source cube world projects on: 2014-09-10 12:37:50
I really should go and write a tutorial for voxel-engine's.
Having ~4 years knowledge of how voxel-engine's work, this could be a really good idea.
Too bad I don't know how to start with writing a tutorial.

Have a nice day.

- Longor1996
9  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-09 21:47:28
You drew: geometry shader → vertex shader → fragment shader,
while it is: vertex shader → geometry shader → fragment shader.

Let me explain my reaction upon reading your post: ARGH!!
I knew something was off in the image...
10  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-09 21:24:01
I was bored and made a something.
Its absolutely not correct, but enough to explain the basics of how a GPU works.
(There are also a few tiny mistakes in there)

11  Games Center / Cube World Projects / Re: Open source cube world projects on: 2014-09-08 10:06:40
The Spout-Project (Or Flow-Project), ArdorCraft, and many more: http://www.reddit.com/r/voxelgamedev
12  Game Development / Game Mechanics / Re: Rendering pixel data from array in lwjgl on: 2014-09-03 16:18:53
You have a ByteBuffer that contains the RGBA/R8G8B8A8 pixels of your image, and upload that (whenever it changes, and only when it changes) with glTexSubImage2D(...) to the GPU.
13  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-03 00:29:08
Today I wrote a silly program that scans Minecraft-Servers and dumps the query into a CSV-table.
God dammit I have no life...

(1500 scanned of 8020 listed!)
14  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-01 20:05:51
So... even more cubes.

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

And mouse-picking which didn't make it into the video.
(Note that the 'pointer'-box is not in the middle of the screen, but is where the mouse is at.)

15  Game Development / Newbie & Debugging Questions / Re: Noob questions: Bitwise operators in screen movement on: 2014-09-01 14:02:12
Hmm I just thought of this so , depending on which endian you use if I were to shift 00000001 >>1 would it be 00000000 or 10000000?

In the case of Java, you dont have to care about endianness when working with numbers, except when you are doing I/O.
16  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-09-01 01:04:51
Physics, Mip-Mapping, and a Performance-Graph!



Also, its raining cubes.


And there is a lot of cubes...
17  Discussions / General Discussions / Re: Icebucket challenge ??? on: 2014-08-29 15:44:27
ALS is not that deadly of a disease , it only really effects people who are already at an age when its difficult to perform normal tasks anyway.

?

ALS can begin at any age as far as I am aware, and it most certainly IS deadly as your chance of a fatal hearth-failure is very high.
At least thats what my mother told me about ALS and what it does.
(And she should know what it does because some of her patients have it)

Or am I (and my mother) wrong?

- Longor1996
18  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-08-27 00:36:30
I've kinda wanted an RPi just to mess around with it, or better yet one of these: https://developer.nvidia.com/jetson-tk1
~160 GFLOPS on a 5W board. Super nifty. Problem is, I don't have a actual project that I would need it for  Sad

I am going to use my RaspberryPI as a File-Server at home, and trough a encrypted connection over the internet.
Its pretty darn useful, like your own little google-drive/dropbox/mediafire.

Now I only need to strap my 1,5 Tb harddrive to the RaspberryPI...



I also just managed to run a Minecraft-Server on it, but the server is WAY too slow in low-power mode.
If you get a RaspberryPI, get a cable (power-cable?) that can support the full required power.

Also, if you have a big television screen (I have a 2,? meter screen!), try connecting the RaspberryPI to it.
Its awesome seeing a terminal on a giant TV screen!


Now I have a reason to learn how linux works!

Have a nice day!

- Longor1996
19  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-08-26 23:54:05
Today I got a RaspberryPI, and it was awesome.
Then I spent 9 hours in a row playing around with it,
or in other words:

"Oh my gawd, SO MUCH FUN with this cute tiny box!"


I also wrote myself a new Wavefront OBJ file loader.
Which you can look at here.

Have a nice day!

- Longor1996
20  Discussions / Miscellaneous Topics / Re: How often do you code on: 2014-08-18 14:48:42
Whenever I feel like it.
21  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-08-15 13:31:19
Lookin good, one crit I might consider reducing the head sway a tad. Watching the video made my eyes feel a little weird, but I'm sure when at the controls it feels different so idk. Just some friendly advise  Cheesy

All values (/calibration values) in the 'engine' are not final, so you can change them at runtime without any problems.
The headbobbing effect is just 5 variables, three for calculations, two for calibration.

I will need to open up a thread with a demo of the 'engine' at some point... probably at the end of the holydays.

Have a nice day!
22  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-08-14 18:59:57
I actually got around to make a small video showing my 3D FP-Prototype. (Note: The 'FP' is just 'FPS' without the 'S')

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

What a great day!
23  Discussions / Miscellaneous Topics / Re: A rant on OpenGL's future on: 2014-08-13 19:31:42
Basically a useless driver update though. The whole OpenGL model is f**ked. Until I can distribute the latest drivers with my game I'm stuck with using the lowest common denominator I'm willing to support.

Cas Smiley

Just wondering... what is the lowest common denominator for OpenGL right now?
24  Game Development / Game Mechanics / Re: Player data files on: 2014-08-05 18:11:29
The following may not be exactly how you should do it, but it should help.

Writing:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
CompoundTag root = new CompoundTag("root");
NBTOutputStream out = null;
try
{
    out = new NBTOutputStream(new FileOutputStream(new File("player.dat"));
    out.writeTag(root);
}
catch(IOException e)
{
    e.printStackTrace();
}
finally
{
    out.close();
}



Reading:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
NBTInputStream in = null;
CompoundTag root = null;
try
{
    in = new NBTInputStream(new FileInputStream(new File("player.dat"));
    root = in.readTag();
}
catch(IOException e)
{
    e.printStackTrace();
}
finally
{
    in.close();
}


CompoundTag's getValue method gives you access to a 'Map', in that Map you can put all your data by putting it into other Tag's.
25  Game Development / Game Mechanics / Re: Player data files on: 2014-08-05 15:09:38
how do i use this to save data is there any tutorials i cant find any?

Have you ever heard of something called Javadocs?
JNBT has them here:
http://jnbt.sourceforge.net/doc/

Go and read them, using the JNBT library is extremely easy.
The most important classes are NBTInputStream, NBTOutputStream, and CompoundTag.
26  Game Development / Game Mechanics / Re: Player data files on: 2014-08-05 12:06:55
I would recommend JNBT for saving things, but thats just my personal opinion.
Have a nice day.

- Longor1996
27  Java Game APIs & Engines / Java 2D / Re: my game i'm making is taking up all my RAM. on: 2014-08-04 09:11:44
I have learned a little about variables,operators,casting,user input,objects,and if,else,and,or.Most of the time i'm learning as i go.

Don't learn the basics of Java 'as you go' by trying to make games.
This will bite you in the ass later on, and it will bite (very) hard.


Learn the basics of Java by making things like a Calculator, or a Text-Adventure.
Then go and make 2D games.

Have a nice day.

- Longor1996
28  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-08-01 14:31:25
Making a actual working Graph logic/rendering system seems pretty hard.
Nice. Did you get the inspiration from Blender's node editor system? Smiley

From Blender, but mainly from the Unreal-Development-Kit.
29  Discussions / Miscellaneous Topics / Re: What I did today on: 2014-07-31 21:17:44
Making a actual working Graph logic/rendering system seems pretty hard.



I think it looks nice. Now on to making even more logic!
30  Discussions / Jobs and Resumes / Re: Skill set for an average Java Job on: 2014-07-30 19:04:18

How bad could it be?
 

Have you ever read stories from http://thedailywtf.com/ ?
After you read some of these stories, you will know how bad it can be.
(Be aware that some stories are fake/untrue/overdone-jokes)
Pages: [1] 2 3 ... 9
 

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

The first screenshot will be displayed as a thumbnail.

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

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

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

Tekkerue (34 views)
2014-09-09 02:24:56

mitcheeb (56 views)
2014-09-08 06:06:29

BurntPizza (40 views)
2014-09-07 01:13:42

Longarmx (26 views)
2014-09-07 01:12:14

Longarmx (33 views)
2014-09-07 01:11:22

Longarmx (31 views)
2014-09-07 01:10:19

mitcheeb (39 views)
2014-09-04 23:08:59
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!