wmbest.com
  • Home
  • About
Follow

Posts in category Blender

Pythons and Pandas

Apr26
2010
Leave a Comment Written by Bill

I had always wanted to write my own video game and never took the time to do it.  There were two big reasons that I never finished a game.  One was time, I had very little of it with school work and a part time job.  The second reason was art.  I wanted to be able to see the fruits of my labor but due to the fact that I had limited 3d modeling experience I would quickly disband any attempt at an actual game.  Therefore the first thing I made extremely clear to myself was that this project was going to be more about me learning the art aspect than anything.

In order to accomplish this I made the decision that rather than try to come up with a project on my own I would attempt to clone a game that I had enjoyed many years ago.  That game was Crash Bandicoot.  This decision made designing the game more of a focus on technical skills rather than artistic creativity.  Before I would look at this as a way of giving up, not doing the entire thing by myself but I believe now that this allows someone who is not very experience in the field to make a fun game while building their abilities for future projects.

Build the first model of the game seems to be coming along just fine.  In fact the only real hurdle I have had so far is now that it is finished an animated when I export the model the animation gets squirrelly.  This could be an issue with my mesh but I will continue to play and see if I cant find something that works.  Here are some of the first pictures of my model in blender:

crude
screen_untextured

The next step was picking a 3d game engine.  For this I ended up going with Panda3d thanks to the suggestion of a friend of mine who is also a developer.  He was mostly interested in using the python interface; however, I decided that I wanted to do it in c++.  This would have been fine until I found out that the gnu compiler is not supported by the library and I would have to do some major hacking to get it to where it would compile.  Instead I decided that this would provide me with the perfect opportunity to learn python.  This makes life extremely easy with code as simples as:

from direct.showbase.ShowBase import ShowBase
 
class MyApp(ShowBase):
 
def __init__(self):
ShowBase.__init__(self)

environ = loader.loadModel("models/crash/crash_crude")
environ.reparentTo(self.render)
environ.setScale(0.25, 0.25, 0.25)
environ.setPos(0, 5, 0)
 
app = MyApp()
app.run()
view raw main.py This Gist is brought to you using Simple Gist Embed.

for loading a model.

Over the next few weeks I hope to have a running demo so keep your eyes peeled.

Posted in News, Panda3d, Programming, Python - Tagged c++, crash bandicoot, panda, Python

Recent Posts

  • Android Coverage and Hudson/Jenkins
  • Business Objects 3.1 and Active Directory 2008 R2
  • Site downtime
  • Pythons and Pandas
  • Wmbest.com and future development

Recent Comments

Calendar

May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  

Tags

Android Blender c++ crash bandicoot general News panda Programming Python web

Archives

  • April 2011
  • September 2010
  • April 2010

Meta

  • Log in

EvoLve theme by Theme4Press  •  Powered by WordPress wmbest.com