Previous Thread  Next Thread

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

LinuxInside

Posted: Sat Dec 10, 2011 1:43 am
Joined: 10 Dec 2011
Posts: 4
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
Reply with quote


Guillaume Côté

Posted: Sun Dec 11, 2011 2:18 am
Joined: 13 Nov 2011
Posts: 16
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/working-with-shapekey-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
Reply with quote


LinuxInside

Posted: Sun Dec 11, 2011 1:18 pm
Joined: 10 Dec 2011
Posts: 4
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/working-with-shapekey-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!
Reply with quote


LinuxInside

Posted: Sun Dec 11, 2011 3:04 pm
Joined: 10 Dec 2011
Posts: 4
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?
Reply with quote


Guillaume Côté

Posted: Mon Dec 12, 2011 7:45 am
Joined: 13 Nov 2011
Posts: 16
Ouch, this is going way pass my humble knowledge of the game engine. I couldn't say.^^'
Reply with quote


LinuxInside

Posted: Mon Dec 12, 2011 9:31 am
Joined: 10 Dec 2011
Posts: 4
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! Smile
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group