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
0
Question by damirius · Nov 17, 2013 at 03:15 AM · 2disometricmultiple camerasortographic

Setting up isometric scene with 2d pre-rendered ground and 3d models

Hi.

I have a question about setting up isometric scenes. So I have a pre-rendered image which I took from isometric view. I set it up as a texture on the quad with it's face rotated to look up.

So I need orthographic camera rotated by 90 degrees on X axis to look down at this quad. That's all fine and dandy since ground is already pre-rendered from specific angle and it looks isometric that way. I add a new model, let's say a PC. Like I said, it's a 3d model, no sprites. I set it on 0,0,0, so camera shows him from the top. Now I need him in isometric view also. I add new orthographic camera rotated to 30,45,0 and I set up the position of the camera so I can see him correctly. I set new camera to render first, only 3D models layer and I set clear flag to depth only. Old top down camera is set to render second and only ground (quad) layer. That creates great composite render which shows both ground and 3d models in iso view.
When I move my character he moves outside of the plane since secondary camera rotation is different and the "plane" on which he is moving is actually intersection of the camera projection and x,0,z plane.

This is problem because I want to use depth maps for the ground to obscure 3d objects, also I would use nav grids to mark parts of the ground as walkable and so on.

There aren't many games made like this. Most of the solutions I found are either going full 3d or using tile grid with sprites. Obsidian is doing for Project Eternity something similar, check their update #49. http://www.youtube.com/watch?v=AUleDEFkUtE. So if you have any idea what they used I would appreciate if you share that knowledge. I'm just talking about basic stuff here, not their dynamic lightning and fancy animations :)

So that's it. I'm open to any ideas and I'll appreciate any help you have to offer.

Thanks

Comment
Add comment · Show 1
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 $$anonymous$$ · Nov 17, 2013 at 05:36 PM 0
Share

Gotta bump this one.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Cherno · Nov 18, 2013 at 12:57 AM

I would do it like this:

make a quad with the background image, directly facing the camera, which is actually set up as an isometric camera itself. Then, make another quad parallel to the ground but make it invisible, and give it a collider. This will be your actual ground on which characters etc. move. Now you have to also put in some invisible colliders for the terrain that correspond to the terrain of the background image. Lastly, make sure that the background plane is either farer away from the camera than anything else, or render it with a seperate clone camera that onyl renders the background, with a depths greater then the main camera that renders everything else.

Comment
Add comment · Show 2 · 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 damirius · Nov 18, 2013 at 02:10 PM 0
Share

Thank you for your input. I thought about something like that, but there are a quite few problems with that. One of them that it would be hard to make collisions/depth masking pixel perfect like with depth mask. On the other hand it gives us the freedom of maybe easier implementation of "static" 3d objects on the scene.

Anyway thanks again.

Cheers

avatar image Cherno · Nov 18, 2013 at 02:14 PM 0
Share

I would think it's easy enough for simple movement obstacle blocks, but for anything more detailed, like for cover in ranged combat, there have to be other solutions.

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

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Several 2d scenes on screen 0 Answers

Object Collider Isometric problem 0 Answers

Need help with Collision detection for tiles in Isometric 2D 1 Answer

Can't change TileMap tile height when painting 1 Answer

Colliders, colliders everywhere 1 Answer


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