x


Preventing run-time mesh deformations from altering the underlying FBX file

Hi,

I have a function which deforms the skined mesh renderer mesh of a game object by a small random amount on each vertex.

This works prefectly, but when I return to the editor I find that the actual fbx refered to by the static prefab has been permanently altered. The only soultion to return to the origional mesh is to restore the fbx file from a backup.

Is there a way to prevent the fbx from being altered when deforming its mesh at run-time? I was surprised that it is actually writing alerations to the disk in the first place and didn't have this structure in RAM.

Many thanks, Isaac

more ▼

asked Mar 01 '11 at 08:55 PM

Mann1ng gravatar image

Mann1ng
142 3 4 6

I got the same issue here… Any updated information on the topic since then? What probably causes it?…

Thanks.

Nov 11 '12 at 01:45 PM .entity
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

This seems like a bug to me, but you work around it by creating a copy of the resource before you begin altering it. There should be a constructor to do this.

more ▼

answered Mar 01 '11 at 09:39 PM

Lance Sun gravatar image

Lance Sun
1k 12 16 41

(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:

x1357
x556
x275
x38
x25

asked: Mar 01 '11 at 08:55 PM

Seen: 967 times

Last Updated: Nov 11 '12 at 01:45 PM