Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am working on a basic isometric game, and am struggling to find the correct mirrors.

Mirror can be any form of transform.

I have managed to get SE out of SW, by scaling the sprite on X axis by -1. Same applies for NE angle.

Something is bugging me, that I should be able to also mirror N to S, but I cannot manage to pull this one off.

Am I just too sleepy and trying to do the impossible, or a basic -1 scale on Y axis is not enough?

What are the common used mirror table for optimizing 8 angle (N, NE, E, SE, S, SW, W, NW) isometric sprites?

share|improve this question
3  
Care to share a screenshot? –  Zehelvion Oct 2 '12 at 22:11
add comment

2 Answers 2

up vote 4 down vote accepted

With standard player sprites you really only have 3 mirrors. NW/NE, W/E, and SW/SE. You can't mirror north and south because you're looking at the "back" of the avatar in one direction and the "front" in another. This means you need 5 directions authored and you can extrapolate 8 total.

This is assuming that the sprites are mirrorable, of course. Namely, that they're symmetrical along the vertical axis. Or that you don't care about the mirroring artifacts.

share|improve this answer
add comment

I will dare say that you should not do this. I have two main reasons for this.

1) Most objects cannot be mirrored. A person cannot. Maybe if the person is just standing. But if the person is holding something in its hand, if you mirror it, it will seems that he has changed hands, which in many cases is not what you want.

2) Isometric projection is meant to be pseudo 3D. This usually means that nicely drawn sprites will have some shadows, accents etc. To maintain the appearance, all sprites need to seem like they are lit from the same direction. If you start mirroring, then the shadows will switch sides as well, and it will all look out of whack.

I suppose there are situations where above points are not of concern, but most modern hardware can very easily handle thousands of sprites, and rendering each many thousands of times, so you are probably better off concentrating on general performance and not mirroring optimization.

share|improve this answer
    
He may be dealing with a mobile platform with a restrictive memory limit. –  Tetrad Oct 3 '12 at 15:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.