With blender 2.43 there was two zip file with demos (on the right in the download section on blender.org) for the game enigne, one for graphics and one for physics. Since 2.49 is going to be very GE centred, how about a new pack of files?
If not, we could always try to get have a collected blender artists example collection in the resources section.
It would be nice to have one zip file to point newcomers to, and for reference of all the new features. Update:
updated the list, x = uploaded, - = not yet uploaded, notify me if I missed something.
If I were to suggest examples (out of files I have downloaded here):
==============Graphics================
[-] cubemap (martinsh will look over/optimize and post)
[x] multiple shadekeys (post #10)
[-] Filters mountain (SSAO, Godray and stuff, marinsh super scene (martinsh will look over/optimize and post))
[x] Color IPOs (post #6 and post #12)
[x] Lamp Color python (post #14)
[-] Fake SSS skin shader (vitorbalbio will post)
[-] Water reflections (vitorbalbio will post)
[-] Multitone car shader (vitorbalbio will post)
[-] X-ray shader (vitorbalbio will post)
[-] steep parallax map
[-] parallax silhouette (martinsh will look over/optimize and post)
[-] iterative parallax map
[-] relief map (martinsh will look over/optimize and post)
(maybe the last four combined in one file)
[-] Video Texture /w mirror
[x] Nodes (post #12)
[x] Draw line (link in post #14)
==============Logic/Physics=============
[x] 3rd person template (http://blenderartists.org/forum/showthread.php?t=153042)
[x] Servo demo (post #10)
[-] input text
[x] Modules (post #15)
[x] Soft bodies (post #12)
[-] New python API example (a few old methods, their warning and how to find the new replacement)
[x] Occluders (link in post #14)
[-] States
New bricks (delay, tap, set parent)
[x] set mass (post #10)
[x] add dupli group (link in post #14)
[x] add object (link in post #14)
[x] camera group (link in post #14)
[x] compound (link in post #14)
[x] ghost collision (link in post #14)
[x] ipo add (link in post #14)
[x] modifiers (link in post #14)
[x] sensor physics object (link in post #14 and #21)
[x] physics constraints (link in post #20)
[x] new parent options demo (#post 20)
I’d be willing to do a couple of bits of this eg servo demo, states and maybe occluders,the tap sensor and the sensor physics object as soon as I figure out how to use it (which I’m doing now)…
Sounds great. Can’t wait. I think game blender could even use a whole new window with more complex property oriented logic rather than object oriented. Would make some things a whole lot easier, and save lots of inefficient clutter. Would be very useful for making more complex things like A.I at least a bit better without using too much python. Just a thought.
Here a first few.
Servo Demo - what it sounds like, created by ben when it was brand new.
multiple shape keys - don’t remember who made this
mass - I created this example of set mass.
I had some troubles with set mass at first, I’ll try to see if it was a bug or just me.
Heres a demo of python modules in 2.49 - from the blend…
“”"
This script is accessed by a python controller as a module
there are some advantages with this method of execution…
Scripts can include multiple functions with different controllers accessing each (3 in this example)
The module scripts can be an external text in the same directory as the blend file.
External modules can be edited and saved without restarting the game engine when the ‘D’ button is enabled.
Executing a module function is faster then running the script every time.
Global variables defined outside functions are calculated only once rather then every time the function runs.
“”"
Would it be possible to add a line under or over the script line with Path?
if empty it assumes the file is in the .blend’s folder, otherwise it looks in the folder/path specified.
like “scripts” or “…/scripts”
Here are some suggestions from a new Blender user.
Very recently I started using Blender after the upgrade it got with Apricot. I started trolling around these forums and was blown away by all the great things being scripted. Problem is, the great stuff is all over the place. It can be a bit of a pain for a noob to implement and use them.
It would be nice to download the demo file and have a base scene that references them all with libraries set,
One that includes a camera with mouselook assigned to it,
base Light Rig with shadows set up,
And all the other cool scripts that have recently been created, etc…
It’s easier for new users to mod existing content then create a whole new project.
This way a new user could better learn the ins and outs and maybe more quickly give back to the community.
As well this way there might be a good set up used by the entire community which could in turn make sharing easier, because of a common user set up.
@Sim88, Originally I made blender look in “./scripts” a bit like how many games have “./textures”
where the blendfile was in…
/home/me/game/someGame.blend
/home/me/game/scripts/someScript.py
However this is a bit arbitrary.
A nicer way to manage this is with python packages
/home/me/game/someGame.blend
/home/me/game/MyScript/init.py
/home/me/game/MyScript/someScript.py
This way you can import the directory as if its a module, Look up py docs on how to write a package, but basically init.py just needs to import ‘someScript.py’
Then the py-controller module can use the string
“MyScript.someScript.main”
Even though this seems a bit complicated Id assume youd only do this in bigger projects where 10+ scripts are going to clutter your directory.
In these cases setting up a python package is no bug deal, I tested this for YoFrankie and it works well.
Edit: OP is updated with uploaded scripts and promised scripts.
(And I thought I posted my question in the other thread about modules, this thread should be for posting demos and questions about them. So lets keep the thread clean of other stuff. I don’t want to start a bad trend.)
Edit #2: Here is a demo of the new parent options by kirado Maybe this thread should be moved to resources now that we got some scripts?
And Erwin posted this: http://bulletphysics.com/constraintsTutorial.blend