x


How to render a single mesh several times?

I want to render the mesh which is created procedurally several times with different parameters. Something like below for(int i=0;i<nPass;i++) { mesh.render(); } Can I do this in unity?

more ▼

asked May 17 '12 at 10:10 AM

zhangjiq gravatar image

zhangjiq
4 1 7 9

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You should have a look at Graphics.DrawMesh - it's the system used to draw the trees on landscapes.

http://unity3d.com/support/documentation/ScriptReference/Graphics.DrawMesh.html

more ▼

answered May 17 '12 at 10:59 AM

niX_BB gravatar image

niX_BB
201 4

Good suggestion! It seems exactly what the OP is looking for (and if it isn't, at least it was a good suggestion for many other guys in UA - me included!)

May 17 '12 at 12:29 PM aldonaletto
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5275
x278

asked: May 17 '12 at 10:10 AM

Seen: 315 times

Last Updated: May 17 '12 at 12:29 PM