Alien Runner W.I.P

Started by EgonOlsen, July 18, 2010, 10:16:26 PM

Previous topic - Next topic

raft

i guess so. DIP based or similar..

Thomas.

In OGL 1.0 or 1.1 I can not use shadows and reflection? or just jPCT for android do not support it? If I look on Nova or Need for speed for android, both games use reflections... and Quadrant benchmark have shadows... I found another grafic engine on http://www.imgtec.com/powervr/insider/powervr-demos.asp , but it is very complicated for me...

EgonOlsen

In 1.0/1.1, you can do stencil shadows if the hardware/driver supports it. This is what the Quadrant demo uses (judging from the screen shots, it just crashes on my phone). jPCT-AE (as well as jPCT) doesn't support stencil shadows, because their use is limited, they have several drawbacks and are computational intense, because you have to recalculate the shadow silhouette of each object for each frame (i.e. determine the "edge" where an objects polygons switch from front to back facing and extrude this into the scene). Stencil shadows are hardly used today. Doom 3 was using them as well as F.E.A.R, but i don't know of any other game that does.
Today, shadow mapping is being used most of the time and you can't that in 1.0/1.1

Concerning reflections: All reflections i've seen so far in OpenGL ES 1.0/1.1 were simply flipped geometry approaches. The idea is simple: Just render the same geometry that if above the reflecting surface again below the reflecting in a mirrored way. You are free to do this in jPCT-AE, it's just pretty costly, because you render the whole scene twice into a full blown frame buffer.

EgonOlsen

Quote from: raft on August 26, 2010, 11:02:35 PM
i guess so. DIP based or similar..
Its actually another problem caused by the translation from 2D touch coords into 3d player coords. I tried to improve it, but it's very hard to test on my phone, because it plays like shite when using the touch screen in that manner. Can you give it a try and report back, if it's any better  ???

raft

it's better but it still sometimes vibrates. couldnt find the pattern, just sometimes happens. not too much

EgonOlsen

 I know the reason, i just have to find a proper to fix it... ??? Thanks for testing.

EgonOlsen

Uploaded a new version. Any better now?

raft

yes, definetely. no vibration at all at N1

EgonOlsen

Good, it seems to be fixed then... ;D Thanks again for testing.

raft

no problem at all. it's nice to see how you progress ;)

EgonOlsen

Has some simple sound effects now. I tried to add music too, but it either needed too much memory or was annoying because it looped after a few seconds, so i finally decided against it.

BTW: Use ogg, not wav when using the SoundPool...

EgonOlsen

#56
I've published it in the Android market as a kind of preview version after finishing the third level to see how it goes and to get some feedback.



market://search?q=pname:com.threed.jpct.games.alienrunner




raft

sounds fit very well too. looks and runs quite fine on N1.

how do you display the loading screen? another view or blitting image to frame buffer before anything else is loaded?

EgonOlsen

Yes, it's just blitting something else before the rest is loaded with some sleep time to give the loading thread the cpu power it needs.

EgonOlsen

@anybody with a higher res device: Does the sky look right? Because it actually should as it's scaled according to the framebuffers width. But it doesn't look good in the emulator, hence the question...