Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
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 / Performance Tuning / Re: Is there a logical reason to stuff 2D array data into one? on: 2014-05-05 05:17:31
1D vs 2D is not about memorty consumation but about access time (reads count).
2D case:
using row offset read rowRef
using column offset read data

1D case:
calculate offset and read
2  Game Development / Game Mechanics / Re: World to screen coordinates on: 2014-04-30 06:08:17
Think you can do it using PerspectiveCamera
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
// setup camera
float fieldOfView = 90;
float w = Gdx.graphics.getWidth();
float h = Gdx.graphics.getHeight();
PerspectiveCamera camera = new PerspectiveCamera(fieldOfView, w, h);
camera.rotate(yRot,0,0,1);
camera.translate(xCam,yCam,zCam);
// setup clipping
camera.far = maxDistance
camera.near = -maxDistance
camera.update();

// get screen coord
Vector3 screenCoords = camera.project(new Vector3(x,y,z))
3  Game Development / Newbie & Debugging Questions / Re: Only show overlapping portion of shape (LibGDX) on: 2014-04-30 05:05:49
This can be done using shader. Just use center and R of sonar as a parameter. This is if you want use precise calculation. In other hand if it is your first game just simplify this problem.
1. You can calculate distance for each vertex and interpolate values inside triangle.
2. You can draw cave spike if it's center inside a sonar circle.
4  Discussions / Miscellaneous Topics / Re: Is our Universe Simulatable? on: 2014-04-29 13:08:56
Exactly.  You're description is drastically more complex therefore is drastically less likely to be correct.

I'm being a "bump on a log" here because science fiction (light on science & very heavy on fiction) is fine for amusement.  However as computer scientist it's quite important to grasp the scale of thing before attempting a find a solution.

So you think generate data for AI is more complex than universe? Did i missed something? You even no need to generate random events. AI can think he is decide by himself, but "we all know" this is only simulation. Smiley
5  Discussions / Miscellaneous Topics / Re: Is our Universe Simulatable? on: 2014-04-29 07:11:52
Why all off you think we are not in simulator? Smiley the only point is you can't check if you in sumulator or not from inside of it.
Because the numbers are impossible large and the only solution to that problem is a massively more complex universe than our own. Occam's razor.

May be there is no "our universe", other guys and other stuff ^))) ... only your AI and lazy computation of all you see or think about at that time. This is much more simple than big "our universe". Occam's razor.
6  Discussions / Miscellaneous Topics / Re: Is our Universe Simulatable? on: 2014-04-28 09:21:26
Quote
Why all off you think we are not in simulator?

Depends on definition whats 'real' so... We are but the same time we are not. (completely new concept...)

Quote
And you can't simulate university from inside of it.
Interesting  Roll Eyes
Its 'universe' <- only ment to be helpful.

sorry for my english Smiley you right i mean you can't fully simulate universe from inside of it.
7  Discussions / Miscellaneous Topics / Re: Is our Universe Simulatable? on: 2014-04-24 15:19:24
Why all off you think we are not in simulator? Smiley the only point is you can't check if you in sumulator or not from inside of it. And you can't simulate university from inside of it. So to simulate the university first step is "stop the world i want to get off" Smiley.
8  Discussions / Miscellaneous Topics / Re: Is our Universe Simulatable? on: 2014-04-24 11:03:55
There are too many problems. To simulate something (with 100% precission) you need too have 100% valid state at the begining of simulation. So you need to mesure all values without time lag and with 100% precission (all at the same time). All values in universe ? %). You need to simulate quickly than process (universe) is running. You can't stop universe. If you calculate slower than you can't predict. This is meaningless question. You need to decide what you want to simulate and with what precission. For ex. Newton's laws is simulation and many many other known laws of nature.
9  Discussions / Miscellaneous Topics / Re: Is our Universe Simulatable? on: 2014-04-24 08:31:49
Can you build a simulator not in our universe? If so may be yes in other case simulator will be the part of the universe and need to simulate itself %).
10  Game Development / Game Mechanics / Re: A* pathfinding how to prefer a nicer path on: 2014-04-24 08:25:18
It looks like you can simply change A-B pathfinging to B-A and reverse the path.
11  Game Development / Newbie & Debugging Questions / Re: Noise Problem on: 2013-04-30 05:56:32
You need to use not integer coordinates something like (i/30) perlin noise is 0 at integer values:
http://libnoise.sourceforge.net/glossary/images/coherentnoise.png
12  Games Center / Archived Projects / Re: Homunculus - my first game on: 2013-04-17 05:22:18
Old Good Dr.Mario Smiley not bad ... i like it! Grin
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.

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (43 views)
2014-10-16 15:22:06

Norakomi (33 views)
2014-10-16 15:20:20

lcass (37 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (67 views)
2014-10-14 00:35:47

TehJavaDev (60 views)
2014-10-14 00:32:37

BurntPizza (73 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45

BurntPizza (86 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!