sidebar features
sidebar content

Go Back   Blender Artists Forums > Game Engine > Game Engine Support and Discussion

Reply
 
Thread Tools
Sim88 Sim88 is offline
Member
 
Join Date: Aug 2006
Posts: 1,504
I just had a thought!

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)

Last edited by Sim88; 26-May-09 at 08:52.
#1   Old 14-May-09, 21:10   
Reply With Quote


J09's Avatar
J09 J09 is offline
Member
 
Join Date: Jan 2007
Posts: 1,441
That's a good idea! Even just listing all the new stuff in one place is so helpful.
............................................
Resources
#2   Old 14-May-09, 21:35   
Reply With Quote
ideasman42's Avatar
ideasman42 ideasman42 is offline
Member
 
Join Date: Mar 2004
Location: Australia
Posts: 3,421
Bump!
Anyone interested in helping out with this? (gives more time for devs to fix bugs, so dont be shy!)
............................................
BPython Cookbook * How to get features into Blender * Code Metrics
Hire Me
ideasman42<at>gmail.com
#3   Old 18-May-09, 05:02   
Reply With Quote
Blendiac's Avatar
Blendiac Blendiac is offline
Member
 
Join Date: May 2007
Location: North of Toronto, Ontario, Canada
Posts: 775
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)...

Anyone else willing to help with this?
............................................
Starting out? Here's the tutorial that I found most helpful when first beginning in wiki or PDF format.

..........................................After that, RTFM! (Read the *Friendly* Manual ) here!..........................................
#4   Old 18-May-09, 05:30   
Reply With Quote
Sim88 Sim88 is offline
Member
 
Join Date: Aug 2006
Posts: 1,504
I will start this evening.
#5   Old 18-May-09, 06:46   
Reply With Quote
andrew-101's Avatar
andrew-101 andrew-101 is offline
Member
 
Join Date: Apr 2007
Location: Melbourne, Australia
Posts: 1,525
I can't really do any GLSL stuff, I made a colour Ipo demo though, with instructions.

I also had some other examples on my computer if you want those:
- a tile based A* demo
- an example of rotating an object with the mouse
Attached Files
File Type: blend colour_and_alpha_ipos.blend (184.7 KB, 53 views)
#6   Old 18-May-09, 08:15   
Reply With Quote
innocentdeviant innocentdeviant is offline
Member
 
Join Date: May 2009
Location: in a dank little hut
Posts: 21
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.
#7   Old 18-May-09, 08:31   
Reply With Quote
ideasman42's Avatar
ideasman42 ideasman42 is offline
Member
 
Join Date: Mar 2004
Location: Australia
Posts: 3,421
If people want to make demos and post on this thread I'll go over and collect them together.

If you update an existing blend please be very clear where it came from and what you changed.

If you dont have GLSL, there is quite a few logic changes in 2.49rc3 too.
as well as updating python scripts to the new api.
............................................
BPython Cookbook * How to get features into Blender * Code Metrics
Hire Me
ideasman42<at>gmail.com
#8   Old 18-May-09, 11:48   
Reply With Quote
martinsh's Avatar
martinsh martinsh is offline
Member
 
Join Date: Oct 2006
Location: riga, latvia
Posts: 482
good idea.
I will revisit my demos, fix and optimize stuff and post them here.
..as soon as i get HDR and SSGI in Game Engine.
............................................
www.martinsh.co.nr - gallery is broken..

Blender artworks:
Shotgun
Assault Rifle
Realtime Bathroom Demo
Advanced GLSL 2D Filters
#9   Old 18-May-09, 14:45   
Reply With Quote
Sim88 Sim88 is offline
Member
 
Join Date: Aug 2006
Posts: 1,504
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.
Attached Files
File Type: blend ServoDemos.blend (435.1 KB, 89 views)
File Type: blend multipleShapeKeyActions2.blend (198.6 KB, 58 views)
File Type: blend mass.blend (538.6 KB, 84 views)
#10   Old 18-May-09, 19:01   
Reply With Quote
PhilB's Avatar
PhilB PhilB is offline
Member
 
Join Date: Jul 2008
Posts: 308
Quote:
Originally Posted by Sim88 View Post
multiple shape keys - don't remember who made this.
that was me.
http://blenderartists.org/forum/showthread.php?t=135467
Here's another, feel free to use whichever one you want, and fix them up if you want to.
Thanks
Attached Files
File Type: blend multipleShapeKeyActions3.blend (218.5 KB, 56 views)
#11   Old 18-May-09, 21:06   
Reply With Quote
Sim88 Sim88 is offline
Member
 
Join Date: Aug 2006
Posts: 1,504
Some more files from my download folder.
Color ipo's, some cool node thing. And a soft body demo, for making cloths.
Attached Files
File Type: blend Color_IPO_GLSL.blend (128.9 KB, 73 views)
File Type: blend texanimnew2.blend (661.0 KB, 71 views)
File Type: blend cape_demo.blend (216.8 KB, 96 views)
#12   Old 18-May-09, 21:35   
Reply With Quote
vitorbalbio's Avatar
vitorbalbio vitorbalbio is online now
Member
 
Join Date: Nov 2008
Location: Rio de Janeio - Brasil
Posts: 484
soon i will post these here:
"Fake SSS", "Multitone Car Shader" , "X Ray Shader Material" and "Water Reflection with wrap and alpha"
............................................
Starats Studio! Brasil tb tem Blendero!
Blog: http://obalbio3d.wordpress.com/
Ruínas2.0 : http://blenderartists.org/forum/showthread.php?t=152668
"O Blender não é mt carismático mas.... "
#13   Old 19-May-09, 00:01   
Reply With Quote
Sim88 Sim88 is offline
Member
 
Join Date: Aug 2006
Posts: 1,504
Sweet, with you and marinsh posting your own stuff and bens 10 example files (http://lists.blender.org/pipermail/b...ay/023415.html) I think we are starting to get somewhere!

Edit: dfelinto posted a nice demo using BGL.glReadPixels to get the colour behind the mouse.
Then it's using this color to change lamp color.
Attached Files
File Type: blend lampRGB.blend (96.3 KB, 51 views)

Last edited by Sim88; 20-May-09 at 07:39.
#14   Old 19-May-09, 05:11   
Reply With Quote
ideasman42's Avatar
ideasman42 ideasman42 is offline
Member
 
Join Date: Mar 2004
Location: Australia
Posts: 3,421
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.
"""
Attached Files
File Type: blend bge_module_example.blend (138.1 KB, 171 views)
............................................
BPython Cookbook * How to get features into Blender * Code Metrics
Hire Me
ideasman42<at>gmail.com

Last edited by ideasman42; 21-May-09 at 06:10.
#15   Old 21-May-09, 06:00   
Reply With Quote
Sim88 Sim88 is offline
Member
 
Join Date: Aug 2006
Posts: 1,504
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"
#16   Old 21-May-09, 17:13   
Reply With Quote
TAMcCullough TAMcCullough is offline
Member
 
Join Date: Mar 2009
Location: Ontario, Canada
Posts: 42
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.

Just a suggestion
#17   Old 21-May-09, 18:59   
Reply With Quote
ideasman42's Avatar
ideasman42 ideasman42 is offline
Member
 
Join Date: Mar 2004
Location: Australia
Posts: 3,421
@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.
............................................
BPython Cookbook * How to get features into Blender * Code Metrics
Hire Me
ideasman42<at>gmail.com
#18   Old 22-May-09, 01:54   
Reply With Quote
andrew-101's Avatar
andrew-101 andrew-101 is offline
Member
 
Join Date: Apr 2007
Location: Melbourne, Australia
Posts: 1,525
I never knew about the new option on the script controller, thats very neat. I'm confused though, is cont automatically passed through?
#19   Old 22-May-09, 06:52   
Reply With Quote
Sim88 Sim88 is offline
Member
 
Join Date: Aug 2006
Posts: 1,504
It seems so. And it works great!

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
Attached Files
File Type: blend Parent_ghost_velocity_bug_test.blend (503.3 KB, 26 views)

Last edited by Sim88; 23-May-09 at 21:40.
#20   Old 22-May-09, 07:04   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 17:12.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists