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 4171146
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:24:49+00:00 2026-05-21T00:24:49+00:00

Hi I am setting a Unidirectional Scaling Matrix to an entity (say Entity 1)

  • 0

Hi
I am setting a Unidirectional Scaling Matrix to an entity (say Entity 1) in 3D. Now, I have another entity (Entity 2 ) that follows this entity which is supposed to have uniform Scaling. The sequence of Matrix that I apply to both these entities is as follows …

  1. Translate entity1 from it’s original world position to origin
  2. Scale Unidirectionally
  3. Translate entity back to it’s position in world.

This works. However, if I follow the same sequence for Entity 2, it does not work. I am doing all the Matrix Transformation in World coordinate system.

This is my first step in the amazing world of Computer Graphics. I would appreciate, if some one can through some light on to various Coordinate systems (World, Model, Local) and
guide me as to how to compute matrices from model coordinate system to world coordinate system and vice versa.
Thanks in advance,
Atul

  • 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-21T00:24:50+00:00Added an answer on May 21, 2026 at 12:24 am

    I will try to answer your last question first, hopefully it will make things clearer.

    Whenever a graphic artist creates a building, a monster or a landscape, she will need to define a coordinate system. It consists in an origin (where is the 0,0) and some axises (where are the x and y directions?). The choice is completely arbitrary and has no real importance, but for the sake of simplicity (and to an extend, to reduce errors due to lack of precision), the origin usually is either close to the center of the object or at a reference point (the root of a tree for instance).

    Now should the artist gather the monster and building within the landscape, the coordinates will likely not match. She could have created the building altogether with the landscape, although this is not always feasible, let alone handy, but for the monster to run after some pitiful MMO player, that is just not possible.

    So we need a way to know where the arms, legs, teeth, tentacles and whatever else you would prefer not see, will end up in the world while the monster is running. Their position is very well know relatively to the monster. This is what we might call, say, the monster coordinate. More generally, we would call the local coordinates, meaning local to the monster.

    So what are the world coordinates? Usually they refer to what makes most sense as a reference, the element considered to be not moving around something else. Here, the landscape.

    This is where matrices come to play. What is the matrix? The matrix is an operator that allows to express coordinates in a different coordinate system. It is a projection of the coordinates system from a system to another: from monster to scene, from scene to camera, from camera to screen…

    A matrix can express any transformation from one system to another: translation, rotation, scaling, shearing, flattening… Or all of them a the same time. The identity matrix is the matrix that does not change anything. Matrices can also be combined: by multiplying a translation matrix and a rotation matrix, we get the resulting transformation matrix of both translating then rotating. Do this a couple of times and you get the position of the tip of the articulated arm of a robot in a car factory by just combining the matrices of each joint.

    Then we run into where your problem may lie: translating then rotating is not the same as rotating then translating. If you are not convinced about it try by yourself: walk then turn or turn then walk, and see how you do not end in the same location. So in the end it means matrices have to be applied in a specific order, which depends only on what you want to do.

    From the explanations you give, I suspect this is where things are going wrong for you, since translating will give a different result if you scale first.

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

Sidebar

Related Questions

Setting up ASP.net MVC with Linq2SQL or Entity Framework's context to have scaffolding work
Setting up CI within Microsoft Team Foundation Server, I have a build that will
Setting: Java 5 - no upgrade possible. I have a large application that has
I have the below unidirectional Many To One mapping @Entity public class Item implements
setting is the following: I have a homepage where I display a diagram that
Setting the scene: My asp.net web application carries a version number which is incremented
After setting up TemplaVoila like ever i end up in this view. I set
Setting up a new database that has a comments table. I've been told to
Setting up a WCF service that uses the webHttpBinding... I can return complex types
Setting up the sandboxes for all these option is not feasible right now. So

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.