I’m trying to draw a 10×10 grid with Actionscript 3 with a vanishing point behind – so each square looks like it’s coming towards the screen (each from its own relative perspective).
I’ve found many tutorials for 3D perspective cubes, but they all revolve around movement. Surely static shapes must be easier, but I’m yet to find any help regarding them.
Is there some way I can use PerspectiveProjection() in my case where it doesn’t involve movement? It looks to be exactly what I want, yet seems reliant on movement.
Or are there any other methods for 3D perspective object creation?
I’d prefer to use internal AS3 functions if possible.
The closest I’ve got was this tutorial , which I could likely apply to my situation, but I want to make sure there’s not an easier/cleaner way before attempting it.
Thanks.
Here’s the fastest and probably most recommended way to achieve what you’re after:
Once you’ve done this, create a document class and paste inside it this code that I’ve created for you to get you started:
The majority of the code is pretty self explanatory and there are
uint.MAX_VALUEtutorials around for this particular framework.Enjoy!