• 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 benjaminoutram · Dec 21, 2016 at 01:26 PM · shadermeshshader programming

Is it possible to use a shader to create duplicates of meshes without creating new GameObjects?

I have a complicated mesh geometry that I animate by updating the mesh vertices in C#. I would like to create many duplicates of this mesh in the 3D environment, but generating and animating many meshes in C# takes too much computer resources. I am wondering if it is possible to duplicate a mesh using a vertex shader? Is it possible to duplicate vertices in a shader?

I would like to apply this to two things. One is to create kaleidoscopic 3D worlds (which contain many symmetries), and rendering schools of 3D fish.

Thank you in advance.

Best regards, Ben

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 _dns_ · Dec 21, 2016 at 04:03 PM 0
Share

Hi, there are new features in Unity 5.6 for Instancing many meshes, as well as generate mesh data by the GPU itself with compute shaders, check the Unity blog post:https://blogs.unity3d.com/2016/12/13/unity-5-6-beta-is-now-available/

avatar image Pangamini · Dec 21, 2016 at 04:07 PM 0
Share

Geometry shader might be enough. But if you really just want to render something without having gameObjects/renderers, check the UnityEngine.Graphics class

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

91 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 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 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 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 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 avatar image

Related Questions

How to achieve Assasins Creed fragmented shader effect? 0 Answers

Need help with using world position in shader 1 Answer

Creating a point cloud engine using shaders/meshes 0 Answers

Mask a 3D Object using a 3D Volume 0 Answers

make invisible object with shader 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges