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 Juicy · Jul 30, 2014 at 09:51 AM · instantiatemeshmirror

Mirroring a mesh?

I am trying to create a system that mirrors a mesh but only the part of the mesh that is covered by the mirror object. The resulting mesh should have new vertices where the "bounds" of the mirror ends.

alt text

[EDIT] I need the ability to place multiple mirrors thus mirroring mirrored objects.

How would you go on about instantiating the new mesh and applying correct vertices?

Any thoughts are appreciated! :)

mirror.png (3.4 kB)
Comment
Add comment · Show 2
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 ShadoX · Jul 30, 2014 at 09:52 AM 0
Share

not sure if this helps, but in some old games they just had another model of the player that would mimic the players actions.. (just in a mirror way) and place that model behind what seems to be a mirror..

avatar image VesuvianPrime · Jul 30, 2014 at 10:09 AM 0
Share

I'm wondering if rendering the mesh via GL would let you slice the mesh on arbitrary planes.

It may be that a shader could do what you want by discarding unwanted fragments.

Anyway, i presume you're trying to fake a mirror, but get fancy with it at the same time. If that's the case then your solution is only going to look visually appealing when using an orthographic camera.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · Jul 30, 2014 at 10:27 AM

If you want to create a mirror or reflection it's way easier to use a second reflection camera. If you mirror a mesh by hand you would have to invert the winding order of all vertices, reflect the normals and when rendering the object you would need to reflect all light sources as well.

With a reflection camera you render everything as it is but from your reflected camera position.

See this wiki post

Comment
Add comment · Show 1 · 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 Juicy · Jul 30, 2014 at 10:40 AM 0
Share

I don't think this would work as I need to be able to make unlimited mirror iterations (mirroring the mirrored object)..

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to create a new GameObject and assign a Mesh that is just being created in a same function to it? 0 Answers

Mirror vertices procedurally 2 Answers

How do I instantiate objects above 'sealevel'? 1 Answer

instantiate object and align with object surface 2 Answers

Instantiate a Prefab along the surface of a Mesh 2 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