461 reputation
211
bio website imagine-random.blogspot.pt
location Portugal
age 23
visits member for 2 years, 1 month
seen 5 hours ago

I'm taking a masters degree in informatics engineering, specifically in the areas of computer graphics and applications engineering at University of Minho, Portugal. I like digital arts and graphic design - http://cargocollective.com/joxnas - and I play guitar in my spare time. Occasionally I write a post in my blog too: http://imagine-random.blogspot.pt


Oct
28
comment Are there any comprehensive resources for learning Google's PlayN framework?
+1 I never heard about playN.!
Oct
26
comment Setting density for Android game
I never used canvas so I can't probably help you. In opengl you normally just need to care about the coordinates of things in the 'opengl world' . But one more thing, are you trying to achieve the same speed in terms of real world measures in all screens? Like 1inch per second? Cause its the only reason I see for using dpi here... If that's what you want its a little strange... Why would you need that instead of using the more common pixels per second, or even better, coordinates on which you abstract the notion of pixel..?
Oct
25
comment Setting density for Android game
Just to make it completely clear, you aren't using opengl are you? And, when you talk about different performance, you mean different speed right? Cause it's not the same thing...
Oct
23
comment Panning a 3d viewport in 2d direction with rotated camera
The illustration explaining my reasoning is done, I updated my answer :)
Oct
23
comment Panning a 3d viewport in 2d direction with rotated camera
Your camera rotates around 1 or 2 axis? My answer only takes into account rotation around a single axis. I'll create an illustration of it.
Oct
22
comment Predicting enemy position in order to have an object lead its target
Hah, forget about this solution. Now that this question has been merged, the first answer's links seam to contain better answers.
Oct
22
comment Predicting enemy position in order to have an object lead its target
@Larolaro I've added a graphical demonstration to my answer so you can understand it a little better.
Oct
22
comment Panning a 3d viewport in 2d direction with rotated camera
If you need help with my answer just say anything....
Oct
20
comment Predicting enemy position in order to have an object lead its target
I can provide the conditions and solutions with the multiplication sign (*) so it is easier for you to port them to your programming language (Then you would only need to replace the ArcTan[...],Sin[...],Cos[...],Sqrt[...] and eventually the power sign (^).
Oct
20
comment How does 20Q work internally?
hehe, love it when this happens xD .
Oct
20
comment Panning a 3d viewport in 2d direction with rotated camera
@NoobGameDeveloper To know what the code above calculates see: people.sinclair.edu/nickreeder/eet155/PageArt/vector.gif
Oct
20
comment Panning a 3d viewport in 2d direction with rotated camera
In actionscript I think the atan2 function does exactly the same... try it. Anyway, if it doesnt work , use this: public static float vector2dAngle(float[] vector){ if(vector[0] != 0){ return (float) (vector[0] > 0 ? Math.atan(vector[1]/vector[0]) : Math.atan(vector[1]/vector[0]) - Math.PI);} else{ return (float) (vector[1] > 0 ? Math.PI/2 : -Math.PI/2);} }
Oct
19
comment Can I randomly generate an endless road?
So we are in a tile and we see the 8 tiles around us which can be walkable or non walkable. When we go to one of the walkable ones, are the 8 around it regenerated randomly (Meaning the tile we were previously can change) ? Or are the tiles we never saw the only ones that are generated? Cause if it is the first option the question doesn't make much sense.. You need to explain yourself better
Sep
30
comment Implementing fog of war in opengl es 2.0 game
@Gajoo You would need to draw some kind of shadow shape in black immediately after drawing units vision mask
Sep
30
comment Why does my game loop speed vary on different platforms with the same hardware?
You should also measure your game performance in render time instead of fps,since fps is not a linear measure. E.g, a drop from 600 fps to 300 fps (+1.67 ms of render time) is not as bad as a drop from 30 fps to 28 fps (+2.38 ms of render time). In your case its a diference of 1.33ms between windows and linux which is not too Much if you ask me. If your game runned at around 30fps you wouldnt even notice the difference. See this: mvps.org/directx/articles/fps_versus_frame_time.htm
Sep
30
comment Why does my game loop speed vary on different platforms with the same hardware?
The fact that the question title changed makes this answer look like it doesn't belong here...
Sep
30
comment Why does my game loop speed vary on different platforms with the same hardware?
I added an answer, thought I'm not really sure if it is what you wanted. About different FPS in different platforms, it probably has to do with the drivers being more optimized in different platforms, and also the way each OS deals with memory / threads / etc.
Sep
30
comment Why does my game loop speed vary on different platforms with the same hardware?
when you say faster, are you refering to the game logic or the FPS ?
Sep
30
comment Why does my game loop speed vary on different platforms with the same hardware?
I don't get it...You say the speed of the game is not stable, but your functions receive the elapsed time... So for instance, if animal A walks 1 unit per second, and you run update(2), it walks 2 units. It walked 2 units in 2 seconds which makes it walk 1 unit per second. If you give update function the argument 3, the speed would be the same, so what Am I missing here? The game logic shouldn't be running at a constant speed?
Sep
22
comment How to handle loading and keeping many bitmaps in an Android 2D game
@TheMaster42 about your first comment... see this: stackoverflow.com/questions/12428493/… !