Is it possible to modify the shape of an object from the Gam

Game Engine, Players & Web Plug-in, Virtual Reality, support for other engines

Moderators: jesterKing, stiv

LinuxInside
Posts: 4
Joined: Sat Dec 10, 2011 1:41 am

Is it possible to modify the shape of an object from the Gam

Postby LinuxInside » Sat Dec 10, 2011 1:43 am

Hi folks! I'm newbie about Blender, so I have a question for you!
I wonder if it's possible to modify the shape of an object from the Game Engine through the UI!
For example if i have a straight tube as object, is it possible for a player to modify it dynamically

making the tube curved only changing some values through the User Interface?
I mean like an editor! How is it possible to make user interfaces in Game Engine?
I'm sorry for my English and I hope that you can understand about what I'm saying!
Cheers

Guillaume Côté
Posts: 16
Joined: Sun Nov 13, 2011 11:17 am

Postby Guillaume Côté » Sun Dec 11, 2011 2:18 am

Hi!

First of all, you should post your questions on the game section of Blenderartist.com . The community is much more lively there. This forum is more about development and things like that, you're better at blenderartist.

Now, for your question, it is feasible and it is even simpler then I would have expected. First of all, you need to create shape keys. If you don't know what they are, go there : http://cgcookie.com/blender/2010/03/10/ ... y-drivers/ Then you can animate the shape keys in the game engine as with anything else.

You would have to create your "in game user interface" and that a bit more complicated though.

If you are a newbie, before working on something that complexe you should first take a look at these three links to have a decent base at the BGE.

http://cgcookie.com/blender/2010/05/13/game-enginecharacter-part-1/ << David ward series. Relatively short, explain the most used features on surface, great to give you an overview of how is it working and to get you started.
http://www.youtube.com/watch?v=ScIXZZ4mflM << my personal series, I cover in detail how to create a platformer game from 0 to the end. Lots of common topics are covered like healt bar, menus, animation, collision and so on.
http://www.youtube.com/user/goranmilovano << Goran youtube page. Haven't watch all he did but what I watched was good. I know he use a lot of python so that might be good if your are interested in this.

So I hope that helped and don't forget to move to Blender artist for faster better responses

LinuxInside
Posts: 4
Joined: Sat Dec 10, 2011 1:41 am

Postby LinuxInside » Sun Dec 11, 2011 1:18 pm

Guillaume Côté wrote:Hi!

First of all, you should post your questions on the game section of Blenderartist.com . The community is much more lively there. This forum is more about development and things like that, you're better at blenderartist.

Now, for your question, it is feasible and it is even simpler then I would have expected. First of all, you need to create shape keys. If you don't know what they are, go there : http://cgcookie.com/blender/2010/03/10/ ... y-drivers/ Then you can animate the shape keys in the game engine as with anything else.

You would have to create your "in game user interface" and that a bit more complicated though.

If you are a newbie, before working on something that complexe you should first take a look at these three links to have a decent base at the BGE.

http://cgcookie.com/blender/2010/05/13/game-enginecharacter-part-1/ << David ward series. Relatively short, explain the most used features on surface, great to give you an overview of how is it working and to get you started.
http://www.youtube.com/watch?v=ScIXZZ4mflM << my personal series, I cover in detail how to create a platformer game from 0 to the end. Lots of common topics are covered like healt bar, menus, animation, collision and so on.
http://www.youtube.com/user/goranmilovano << Goran youtube page. Haven't watch all he did but what I watched was good. I know he use a lot of python so that might be good if your are interested in this.

So I hope that helped and don't forget to move to Blender artist for faster better responses


Thank you for the reply and for your advices, I have opened a post on Blenderartist.com too!
The problem is that I have tried this kind of solution in 3DS Max, using bones (Armature in Blender) + Skin Modifier and it's possible for a user, moving the bones, to change the tube shape making it curved, but it's no possible to make more complex trasformations.
So I wonder if it is possible to do dynamically in Blender using python, creating dynamically the tube with the desired shape from 3D View of the BGE starting from parameters insert by the user through UI!

LinuxInside
Posts: 4
Joined: Sat Dec 10, 2011 1:41 am

Postby LinuxInside » Sun Dec 11, 2011 3:04 pm

I mean, is it possible to do something like this http://www.ogre3d.org/tikiwiki/A+Series+Of+Tubes&structure=Cookbook in Blender using python API?

Guillaume Côté
Posts: 16
Joined: Sun Nov 13, 2011 11:17 am

Postby Guillaume Côté » Mon Dec 12, 2011 7:45 am

Ouch, this is going way pass my humble knowledge of the game engine. I couldn't say.^^'

LinuxInside
Posts: 4
Joined: Sat Dec 10, 2011 1:41 am

Postby LinuxInside » Mon Dec 12, 2011 9:31 am

Guillaume Côté wrote:Ouch, this is going way pass my humble knowledge of the game engine. I couldn't say.^^'


No problem, thank you for your help! :)


Return to “Interactive 3d”

Who is online

Users browsing this forum: No registered users and 1 guest