Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Nique · Dec 23, 2010 at 03:31 PM · cameraisometric

Trimetric Projection

Hello there,

I've searched an searched, doing some math.. but it seems a bit complicated here. Does anyone have a clue to create a trimetric camera?

Don't get confused with Isometric or demetric because isometric has 3 axes and demetric 2 axes that have the same angle to eachother. In Trimetric view, 3 axes have different angles from eachother.

Different projections

My question is, How do i create a trimetric camera in unity?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by taoa · Dec 23, 2010 at 03:43 PM

You could attach a script to your camera in which you create a projection matrix so that it gives a trimetric projection, and assign it in place of the camera's projection matrix (already calculated from either it's a perspective or orthographic projection and with the relevant properties).

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Nique · Dec 23, 2010 at 04:06 PM 0
Share

Hi, is there a simple example you can give me (and share) on how to do that? (i know how to write scripts, but i do not know how to do what you just wrote).

I'm trying to match the trimetric view of Simcity 4.

avatar image taoa · Dec 23, 2010 at 04:09 PM 0
Share

$$anonymous$$ake your 4x4 projection matrix, and assign it into camera.projection$$anonymous$$atrix, from the script you have attached to you camera game object.

avatar image Nique · Dec 23, 2010 at 04:56 PM 0
Share

Thanks for your answer, but as i'm really a 'noob' to this i think i have to learn some more about this.. I don't know what parameters i have to set in the 4x4 projection matrix (matrix4x4).

I'm currently looking in the documentation.

http://unity3d.com/support/documentation/ScriptReference/Camera-projection$$anonymous$$atrix.html.

avatar image taoa · Dec 23, 2010 at 05:09 PM 0
Share

I'd rather look at this ;) http://nptel.iitm.ac.in/courses/Webcourse-contents/IIT-Delhi/Computer%20Aided%20Design%20&%20$$anonymous$$anufacturingI/mod2/18.htm

avatar image Nique · Dec 23, 2010 at 10:57 PM 0
Share

Thank you for the link. I've read it, but i do not understand on how to translate it in to a matrix4x4. I have never ever seen an example of $$anonymous$$atrix4x4.Ortho() for example.

I try to edit this code: http://pastebin.com/Yrks3$$anonymous$$Js ,but doesn't work. Can someone give me please a little example (maybe post a demetric example ins$$anonymous$$d of a trimetric (so i have to change the code for a trimetric)?

I set up a cube and a camera. but when i attach the code to the camera, the screen will become blank.

avatar image
0

Answer by HarvesteR · Apr 05, 2011 at 10:33 PM

Uhm, won't an orthographic camera already be trimetric just by itself?

To get an isometric or dimetric projections off an orthographic camera might actually be harder than a trimetric one, since you don't have to match angles...

I'd just set my camera as orthographic, pitch it down some 60 degress, and set it to about 60 degrees off center, so it looks at stuff from an angle...

Now, if you want to have full control of each angle on your projection, the matrix is the way to go.

Cheers

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Isometric camera with Spritemanager 2 Answers

Diagonal camera limit 0 Answers

Cinemachine Noise Messes Up Isometric Z as Y Tilemap 1 Answer

Isometric Camera not rendering correctly 0 Answers

Isometric camera skybox not working. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges