I have a problem stacking up visually....

Started by
0 comments, last by alvaro 13 years, 9 months ago
Hello,

I have a problem and that is a graphics glitch when I plot on the map. When I have an object to be plotted on top of another object the second object suppose to stack on top of the first object, raising it a level little higher. The code that determines the height and the code that raises it higher little bit works and everything, however the graphics glitch it shows that nothing happens. When it truth it raised a little bit but I am seeing it from top, top view angel. The intention is to see it like this angel: http://exult.sourceforge.net/images/screenshots/stage.png. If you notice how each wall is a tiny object when plotted on top of each other they raise up and form this height of a wall in the building. So far the mathematical equation and formula and Z coordinate that does all of that works but it doesn't show graphically. I want it something like "" move top object pixel left and top ". Does that mean I need the camera angel at a 134 degree or something?

Here is a sample of a graphics shape I am using to test on my program: http://img248.imageshack.us/img248/1493/bookf.png see that gray book? When I plotted on my program it doesn't show anything on the graphics side because the top book covers the bottom book so it doesn't show it raised a single bit on the program. However I do want it to plot like I said earlier a little bit on the "left-top" pixel so people can see it stacking like this screenshot http://exult.sourceforge.net/images/screenshots/stage.png. Any help would be greatly appreciate it.

P.S "The intention is to plot "fake" 2d-isometric."
Advertisement
What you want is called oblique projection. Perhaps that helps. If it's not enough, what API are you using to draw?

This topic is closed to new replies.

Advertisement