1
$\begingroup$

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!

$\endgroup$
7
  • $\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$ Commented Apr 4, 2017 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
    Commented Apr 4, 2017 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
    Commented Apr 5, 2017 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$ Commented Apr 5, 2017 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
    Commented Apr 5, 2017 at 3:06

1 Answer 1

1
$\begingroup$

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.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .