Messages - grog

Thanks, Thomas! Replied. For anyone else interested in beta testing, you can send a request to join one of the following:Google GroupGoogle+ CommunityI'll approve you, and then you can follow the link to the opt-in. The link is posted on both the group and the community.

Thanks, guys! Looks like betas in Google Play can only be distributed to members of a Google Group or Google+ Community. If anybody is interested in getting the published beta, I can link to the Google Group. Otherwise, I guess we'll have to wait for the main release!

Oops, missed your reply earlier. Thanks! Might be you're thinking of Metal Gear Solid? It was a heavy inspiration (right down to the PSX graphics). I actually cut up a gameplay video shortly after my original post:

I am trying to port my Android project to PC and getting an exception during Object3D.copy() when invoking the Object3d(Object3D) constructor and Object3D.cloneObject(). Everything is working fine on the Android version. Seems to happen on all of my objects (which are serialized MD2s), although with a different array index of course. Using the latest version from the Download page.

I've been working on this project, on-and-off for about 2 years. It's a stealth action game where you try to sneak by enemies, cameras, and gun turrets undetected. I have a mostly complete beta, and planning to release sometime in the next month or so.

Most of the game is played in third-person, but you can look and shoot from first-person view, as well as stick to walls and peek around corners. The focus is on sneaking, but you can fire assault rifles, shotguns, pistols, throw grenades, and slash throats too.

Some screenshots from the latest beta:AimingSlashing throatEnemies on alertFirst-person view

I'm wondering if anyone has managed to get decent shader performance on Tegra devices. My shader uses all 8 lights provided by jPCT and calculates per-pixel lighting on textured geometry in the fragment shader. It does nothing else and has no conditional statements. On a Galaxy S4, my game (including all game logic etc) gets 50-60fps. No surprises there. Even on my old HTC Evo I get an acceptable framerate (20-30fps). On a Motorola Xoom, it's down to an unplayable 1-3fps.

I tried the default shaders and it runs at a solid 60fps. I tried using a stripped-down version of my shader with just one light and the framerate dropped immediately to 20fps. Am I doing something inefficient? Is per-pixel lighting just a no-go for Tegra 2? My stripped-down 1 light shaders are below:

Is it the case that only one light is passed to the shader when you use multitexturing? Seems like my multitextured faces are only affected by one of the lights in my world.

Edit: OK, by manually assigning the shader to my Object3D instead of just overriding the default shaders, all lights seem to be affecting it,but my shader is also behaving differently in general. The light attenuation seems to be much greater after assigning manually such that the lights affect a much smaller area than they did before and the scene looks way darker overall. I am a shader novice, so I don't really know what to make of this. Would appreciate any help.

Edit2: I think I was just confused about which default shaders I had actually overridden. Everything seems to be in order, so this thread may be disregarded.

I just tried an older version of my code when I used the ellipsoid method to see if I could pull a specific movement vector when the collision didn't register. My ellipsoid was a SimpleVector of (0.5, 0.5, 0.5), and the translation vector was (0.222294,-0.29999998,-1.4834371). With these values, the grenade passed through a plane undetected.

Also failed for translations:(-1.2741067,-0.29999998,-0.79161346)(0.83904916,-0.29999998,-1.2433811)

Hope that is at all useful. I can't really see any consistency between when it works and when it doesn't on my end. Getting those values just consisted of randomly throwing grenades at different spots until one went through a wall, although once I found a spot all subsequent grenades do pass through undetected as well.

Ok, so I adjusted my method to subdivide the translation vector based on the radius of the sphere and make successive calls to checkForCollisionSpherical() until the entire desired movement length is reached. So far, everything seems to be working perfectly.

Ahh, that's good to know about the spherical algorithm. Makes sense now why it's not quite working for me. Hmm, I might have to take another look at ellipsoid, or maybe I can subdivide the translation like you say. Thanks much!

I have a large mesh that I use for a level and multiple smaller meshes representing players that reside within it. The players collide with each other and the map without issue, using a mix of ellipsoid and spherical checks. I also have even smaller meshes that I was using for grenades, but the spherical collision detection is not working consistently for these unless I use a radius that is way too large. Basically, using checkForCollisionSpherical with radius 0.5, sometimes the grenades collide with the walls/floor correctly, but other times they pass straight through without registering a collision. The same things happens with ellipsoid collision at the same size. If I up the radius to 1, every collision is detected, but the result looks bad because the grenade reacts before it visually hits the wall and floats above the floor due to the too-large sphere. If I decrease the radius (say 0.3), no collisions are detected.

I tried checking the docs for some config settings that might help, but I don't see anything that obviously relates to this. Playing with Config.collideOffset didn't seem to make a difference. I would appreciate any help/ideas.