Sign in to follow this  

Displaying Tiles using a Orthographic projection?

This topic is 1597 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So I've been trying to display tiles in the isometric perspective for a little while now and It seems like displaying them using Matrix datatypes like View, Projection etc seemed to be the best way. The only example of drawing like this I've seen is with Models.

 

foreach (ModelMesh mesh in myModel.Meshes)
            {
                // This is where the mesh orientation is set, as well 
                // as our camera and projection.
                foreach (BasicEffect effect in mesh.Effects)
                {
                    effect.EnableDefaultLighting();
                    effect.World = transforms[mesh.ParentBone.Index] *
                        Matrix.CreateRotationY(modelRotation)
                        * Matrix.CreateTranslation(modelPosition);
                    effect.View = Matrix.CreateLookAt(cameraPosition,
                        Vector3.Zero, Vector3.Up);
                    effect.Projection =  Projection;
                        
                        //Matrix.CreatePerspectiveFieldOfView(
                        //MathHelper.ToRadians(45.0f), aspectRatio,
                        //1.0f, 10000.0f);
                }
                // Draw the mesh, using the effects set above.
                mesh.Draw();
            }
 
And displaying tiles seemed to be done without any matrix datatypes at all. (No View, Projection, etc) 
 
I'm asking, is it possible to display tiles using a Orthographic Projection (matrix datatypes. Pretty much isometric) and if it is, where should i start? I've search for a while and I can't seem to find any information on this.
 
If i'm approaching this the wrong way, please let me know. I'm just trying to find how I should start displaying these. I know how to display tiles, just not in this perspective.

Share this post


Link to post
Share on other sites

This topic is 1597 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this