x


Model building in Unity with primitives and prefabs - opinions desired.

Let's create an application that can take any of 10000001 model specifications (text file or some rudimentary form of user input), and create the model in Unity (despite and with full knowledge of warnings to do model-building in other 3D apps).

Would it be better to do this at runtime (the models could be simply a set of 3D coordinates and we can use prefabs)?

Or, should we pre-compute all the potential models and store them as some kind of call-able library?

cheers!

more ▼

asked Jul 01 '10 at 01:49 AM

pickledzebra gravatar image

pickledzebra
286 31 35 44

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

2 answers: sort voted first

This is one of those situations where it really depends on what your goals are.

If your question is "is loading time going to be too long if we have to generate model data", then that really depends on the amount of data you're processing and the speed of your target machines. Assuming you already have the tech set up to build your models from data, just benchmark it and see if loading pre made models is worth it.

You might be able to write an editor script to save out a model made in Unity. I'm not sure how that would work, though.

Edit: What kind of model building are we talking about here anyway. Are you talking like making actual models from point data, or just piecemailing pre-built pieces? Sort of like making a model of some furniture using things like "use leg X at transform Y"?

more ▼

answered Jul 01 '10 at 01:53 AM

Tetrad gravatar image

Tetrad
7.2k 27 37 89

Thanks for the comments. Molecular models - like ball & stick chemical type models.

Jul 01 '10 at 12:42 PM pickledzebra

If that's the case - check the cylinder stretching thingy from your other post, it should do the sticks perfectly

Jul 01 '10 at 01:00 PM Mike 3

Yep, it works perfectly. Now, I'm trying to figure out how to save a model built in unity, so I can try and load it later instead of recomputing it.

Jul 04 '10 at 04:19 PM pickledzebra
(comments are locked)
10|3000 characters needed characters left

If it were me, I'd look into a more flexible solution like an obj importer:

http://forum.unity3d.com/viewtopic.php?t=45990&sid=b33f19d12ceebbf9f99f19d537dba899

But of course, it depends on your needs

more ▼

answered Jul 01 '10 at 02:03 AM

Mike 3 gravatar image

Mike 3
30.5k 10 65 252

Excellent! Thanks for the link. I'll dig into this.

Jul 01 '10 at 12:43 PM pickledzebra
(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:

x571
x453
x374
x1

asked: Jul 01 '10 at 01:49 AM

Seen: 1573 times

Last Updated: Jul 01 '10 at 01:49 AM