Java-Gaming.org Hi !
 Featured games (83) games approved by the League of Dukes Games in Showcase (522) Games in Android Showcase (127) games submitted by our members Games in WIP (590) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
 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 rowRefusing column offset read data1D 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 camerafloat 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 clippingcamera.far = maxDistancecamera.near = -maxDistancecamera.update();// get screen coordVector3 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 Quote from: Roquen on 2014-04-29 07:56:50Exactly.  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.
 5 Discussions / Miscellaneous Topics / Re: Is our Universe Simulatable? on: 2014-04-29 07:11:52 Quote from: Roquen on 2014-04-28 19:24:59Quote from: ikovrigin on 2014-04-24 15:19:24Why all off you think we are not in simulator? 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 from: Drenius on 2014-04-24 15:25:16QuoteWhy 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...)QuoteAnd you can't simulate university from inside of it. Interesting  Its 'universe' <- only ment to be helpful.sorry for my english 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? 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" .
 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 not bad ... i like it!
 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.
 trollwarrior1 (34 views) 2014-11-22 12:13:56 xFryIx (73 views) 2014-11-13 12:34:49 digdugdiggy (52 views) 2014-11-12 21:11:50 digdugdiggy (46 views) 2014-11-12 21:10:15 digdugdiggy (40 views) 2014-11-12 21:09:33 kovacsa (66 views) 2014-11-07 19:57:14 TehJavaDev (70 views) 2014-11-03 22:04:50 BurntPizza (68 views) 2014-11-03 18:54:52 moogie (83 views) 2014-11-03 06:22:04 CopyableCougar4 (82 views) 2014-11-01 23:36:41
 basil_ 29x theagentd 28x HeroesGraveDev 25x BurntPizza 20x Riven 19x Spasi 18x KevinWorkman 15x princec 15x SHC 12x Gibbo3771 11x gouessej 11x CopyableCougar4 10x Grunnt 10x kpars 10x LiquidNitrogen 10x Nate 9x
 Understanding relations between setOrigin, setScale and setPosition in libGdx2014-10-09 22:35:00Definite guide to supporting multiple device resolutions on Android (2014)2014-10-02 22:36:02List of Learning Resources2014-08-16 10:40:00List of Learning Resources2014-08-05 19:33:27Resources for WIP games2014-08-01 16:20:17Resources for WIP games2014-08-01 16:19:50List of Learning Resources2014-07-31 16:29:50List of Learning Resources2014-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