I am a complete newbie to Blender and need advice, so please, bear with me.

This is my requirement: To make an object shape modifiable by game users. I.e. in a limited way, users should be able to change shape of the object and save the new object's state. What concerns me is that assets used in BGE at runtime are read-only and this seems to be a work that happens at design time. I would appreciate high level description how this can done in a standalone game using BGE.

Thanks a lot!

  • $\begingroup$ This sounds like a very broad question, What have you got so far? What have you tried? I'm not sure Blender game engine is capable of such complexity. $\endgroup$ – Duarte Farrajota Ramos Apr 4 '17 at 22:15
  • 1
    $\begingroup$ It certainly is capable of "such complexity." I would argue that a simple implementation of this is actually relatively easy. $\endgroup$ – sdfgeoff Apr 4 '17 at 23:52
  • $\begingroup$ Thanks guys, I narrowed the question down. This is my first time asking question by the way, so not sure how to remove it from hold :) $\endgroup$ – Alex Al Apr 5 '17 at 0:10
  • $\begingroup$ @sdfgeoff Nominated question for reopening, if it does care to elaborate a bit on how one could achieve such effect in an answer? $\endgroup$ – Duarte Farrajota Ramos Apr 5 '17 at 1:43
  • 1
    $\begingroup$ @Duarte You can change mesh with the replace mesh actuator, change color with the object color property, do mesh animations with armatures or shapekeys etc. Saving the state can be done with something like JSON or pickle module. $\endgroup$ – sdfgeoff Apr 5 '17 at 3:06

change shape of the object

The question is "how do you change the shape of the object"?

Store the steps how to do that and do them again later.

For example:

You want to change the width of a wall. To do that you play a "width-changing" animation. To be more specific you play a specific pose of such an animation. This results in a wall with a different width.

The steps to get that shape are: Play pose x of the width.changing animation.

So you store this information (name of animation and frame of the pose).

On restore you can play this pose again.

Without further information on the how you want to change shape I can't provide further details.

I hope you get the idea.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.