Thoughts and tutorials on programming
Friday, December 15, 2006
off-center?
so...it appears that if your object is "off center" from its center, then its physics are messed up--meaning that edges of your objects might poke right through other objects, etc.--things you wouldn't anticipate. Courious, but overcome-able thankfully--center your objects [edit mode, "object" menu, :) transform, obData to center].
errors off by one
If you get an error message in blender, it says six, but error's on five, so subtract one. Thanks!
Tuesday, December 12, 2006
ipo's and parenting
I believe the best way to get the "dynamic 3d avatar" is to have a "fake person" that is attached to a real (invisible) parent, which parent has dynamics associated with it.
Also, it appears that you CAN set object arbitrarily in Blender (see the addObject2.blend example) by using "instantaddobject" and that instantreplacemesh also exists, BTW. Then you can change it more easily on the fly. (call "getlastcreated object" [?] immediately after calling that).
Also, it appears that you CAN set object arbitrarily in Blender (see the addObject2.blend example) by using "instantaddobject" and that instantreplacemesh also exists, BTW. Then you can change it more easily on the fly. (call "getlastcreated object" [?] immediately after calling that).
Thursday, December 07, 2006
ipo's versus frames
It appears that sometimes frames are "dropped" for whatever reason (the "framedout" message, perhaps?) and when it does not show the frame IPO's don't advance. So this throws off timing a little if you rely on IPO's finishing on time, but hey :-) Now we know.
Wednesday, December 06, 2006
Tuesday, December 05, 2006
how to do buttons in blender, and also how to set object property names
So--the mouse left guy fires TWICE--once when you click down, once wuen you click up. To check for this in the script run "sensor.isPositive()" or something like that.
You CAN add things to objects on the fly "getOwner().abc = 3" BUT these are reset if the scene is reset (or hard changed, I presume). With scene freezes I'm not sure what happens (!)
So life is good.
You CAN add things to objects on the fly "getOwner().abc = 3" BUT these are reset if the scene is reset (or hard changed, I presume). With scene freezes I'm not sure what happens (!)
So life is good.
how to get blender to not choke when you check for a variable that doesn't exist
try:
print GameLogic.bbc == ""
except AttributeError:
print "bad!"
print "done"
print GameLogic.bbc == ""
except AttributeError:
print "bad!"
print "done"
Monday, December 04, 2006
text boxes
It would seem that "text" objects don't appear in the blender game engine. It would appear that you can create a "more intense" one, however. http://download.blender.org/documentation/NaN_docs/BlenderGameReference/bitmaptext.html
Saturday, December 02, 2006
empty's bounce
So...make an empty, turn it into an actor, and make it dynamic and...voila! Empty's bounce!
Friday, December 01, 2006
How to edit this blog
apparently you have to go to www.blogspot.com, then click on "blogger homepage" then click on "go to something beta" and THEN you can add a post. Intense :8
Subscribe to:
Posts (Atom)