Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7672413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:16:46+00:00 2026-05-31T16:16:46+00:00

I’m trying to draw a 10×10 grid with Actionscript 3 with a vanishing point

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:16:48+00:00Added an answer on May 31, 2026 at 4:16 pm

    Here’s the fastest and probably most recommended way to achieve what you’re after:

    • Download the Papervision3D library for AS3.

    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:

    package
    {
        import org.papervision3d.view.BasicView;
        import org.papervision3d.objects.primitives.Cube;
        import org.papervision3d.materials.utils.MaterialsList;
        import org.papervision3d.materials.ColorMaterial;
    
    
        /**
         * Document class.
         * @author Marty Wallace.
         */
        public class Base extends BasicView
        {
    
            /**
             * Constructor.
             */
            public function Base()
            {
    
                // Create an array of faces for your cube.
                var faces:Array = [
                    "front",
                    "back",
                    "left",
                    "right",
                    "top",
                    "bottom"
                ];
    
                // Create a list of materials, which contains a material for each face of the cube.
                var list:MaterialsList = new MaterialsList();
    
    
                // Create a new material for each face.
                for each(var i:String in faces)
                {
                    // Define the material.
                    var material:ColorMaterial = new ColorMaterial(Math.random()*0xFFFFFF);
    
                    // Add your material to the face represented by i.
                    list.addMaterial(material, i);
                }
    
    
                // Create the Cube.
                var cube:Cube = new Cube(list, 250, 250, 250);
    
    
                // Rotate the cube to however required.
                cube.rotationX = Math.random()*360;
                cube.rotationY = Math.random()*360;
                cube.rotationZ = Math.random()*360;
    
    
                // Add the cube to the scene.
                scene.addChild(cube);
    
    
                // Render the cube.
                startRendering();
    
            }
    
        }
    }
    

    The majority of the code is pretty self explanatory and there are uint.MAX_VALUE tutorials around for this particular framework.

    Enjoy!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.