Alternative as3isolib?

I am working on a flash game that includes isometric space. I have been using as3isolib for a while, and I'm less impressed with how easy it is to use. Regardless of whether I approach it incorrectly or just not so well to use, this is a question for another post.

In any case, I was thinking of a different way of approaching the problem of isometric positions, and I think I have an idea that might work. In fact, each object that should be displayed in iso-space maintains a position with three coordinates. Then these objects are registered by a camera that predicts the coordinate of a 3-coordinate position to a 2-coordinate point on the screen according to the mathematician in this Wikipedia article . Then a MovieClip is added to the scene (or, possibly, in MovieClip) at that point, and to the child index of the y-value point. Thus, I draw objects that are closer to the camera, will be β€œabove” the objects further and will be visualized above them.

So my question is twofold:

  • Do you think this idea will work the way I think?

  • Are there any existing 3D matrices / vector packages that I should look at? I know that in Flex 3 the class is Matrix3, but we do not use Flex for this game.

Thanks!

+4
source share
4 answers

You can achieve the same using another 3D library such as Papervision3D and Away3D. All you have to do is apply an orthogonal lens to the camera.

See Doc here and also Tutorial

+2
source

Hi Tedw4rd and any other potential as3isolib users

I am a developer as3isolib.v1 (currently working on v2). Sorry this answer was so late, but thought it would be helpful to see the answer from the developer.

Yes, as3isolib.v1 is a little slow and knowing HOW to implement it for better performance is not enough. If you accidentally still try to work with the library, there is an official user group where I try to solve every question http://bit.ly/jTlf18

Knowing how to build your iso world is the key to getting the best performance from the v1 engine.

+2
source

Rotate your view 45 degrees and apply a scale of 0.5 y. it makes flash math for you. then you just need to solve the depth problem. for this i suggest you read this .

0
source

I'm not sure what exactly you are trying to accomplish, but yes, your idea of ​​using the y value to determine the z-depth will work.

To answer your second question, here is a link that may give you some options for other AS3 isometric packages. This guy is a great developer.

http://www.emanueleferonato.com/2010/02/23/11-flash-isometric-engines-you-can-use-in-your-games/

0
source

Source: https://habr.com/ru/post/1313192/


All Articles