Author
Topic: transparency problem (Read 3189 times)

I'm getting a transparency issue where objects calling setTransparency() have a strange see-through effect (see current beta of Run! on the Android Market) against each other. This effect can be seen when a road path is under a tree top (both objects using transparency).Am I using it wrong?

Most likely a sorting issue. Transparent objects need to be rendered in the correct order to be displayed correctly. This sorting is per object and it can't be correct in all cases. If, like in your case, some objects like the roads are always behind all other transparent objects, you can tweak this sorting by applying an offset. The method in Object3D is called setSortOffset or similar.

turns out me playing with the setsortoffset didn't fix the transparency problem :Sthe ground layer is added first to the world, then the trees... in any case, the issue shows up randomly...any hints/details on how that method actually works (values I should set)?in my last attempt, I set -2000 (negative values getting closer to the camera) for the trees and 0 for the ground layerI'm ready for a new release with a few nice details and fixes, but would like to include this... and, while I thought of having opaque leaves, I would still have the same problem with future features.on a side note, I'm using png's with alpha channel...

I thought of it at an early stage of development (adding an arrow for direction) but ditched the idea because this way, having to search around and finding the spot while avoiding the monsters is part of the challenge... it would be too straightforward and easy otherwise. Does this 'lost' factor make it dull, tedious or boring?if it is, I might think of something less obvious and for the easier difficulty levels...

It makes me feel "lost". I've no idea if i'm on the right track or not because there's no feedback and finally, i get caught by the zombies while stumbling around. The main character says stuff like "she's in the cottage" or "maybe in the car" or something like that...so i expect him to have at least a vague idea where these places are. The game should reflect this somehow....

ok, I have made a quick release including directions (N, SE, W, etc.), a bit vague but should be a good balance between lost and too easy search...and I think I am done with the main development. Unless there are bugs reported or other suggestions I will now focus on adding levels for a full release!

thanks for the stack trace, should be fixed for next release (I don't want to update just for one bug, should get a few more ). In the meantime, it should work as long as you don't touch the screen between level success and next level loading (that's the only way I got it).