Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 Tray · Apr 07, 2010 at 04:58 PM · 3dobject

Looking for a 3D object viewer

I'm look to create a 3D object viewer that can be used during the game for players to inspect objects they pickup. So for instance, a player comes in contact with a fancy new sword. On that collision I want to bring up this 3D viewer so the player and zoom in on a new instance of the sword, do some free rotation of the object to look at all sides, etc.

I've implemented similar functionality in other engines but was wondering if something like this already exists in Unity, since I'm kind of a newbie with this engine.

I'm thinking left mouse drag will free rotate the object, right mouse drag up/down to zoom in/out. Maybe a few buttons to keep or discard the item. The object in the viewer would be dynamic, depending on the game object they come in contact with. It would likely be an imported mesh and texture.

I think I could take 2 approaches

  1. Somehow render an instance of the object on a GUI, that can provide scroll bar support for when the object is zoomed in far enough that the top/bottom/sides are clipped off the screen.

  2. Render an instance of the object right in from of the camera and create draggable 2D textures that simulate scrollbars where I just translate the object to adjust it's position in front of the camera.

If something like this is available or sort of works I will have something to start with, otherwise I'll have to build from scratch.

Thanks Tray

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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Molix · Apr 09, 2010 at 04:16 AM

I've implemented something like this using a second camera and a RenderTexture, i.e.

  • spawn your sword and put it on a special layer that your main camera does not render
  • point a second camera at your sword that only renders the layer your sword is on
  • set the camera to render out to a RenderTexture (Pro only?)
  • draw the rendered texture on your GUI
  • use your GUI controls to manipulate the position of the second camera
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

No one has followed this question yet.

Related Questions

How to make a drag and drop menu in 2d for a 3d game (sims 4 furniture like) 0 Answers

I try to move my 3D object in the game but it only on the X & Z axis, can someone help me with that 1 Answer

unity 3d model viewer 3 Answers

Load Object(3d model) by name with script at scene 2 Answers

How to rotate an object to "sit" on a sphere 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