sidebar features
sidebar content

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

Closed Thread
 
Thread Tools
corban_2's Avatar
corban_2 corban_2 is offline
 
Join Date: Sep 2003
Posts: 39
hi there,

when playing music in blender games i always had the problem of files that are too big or sound too poor, so for using background music in blender games i wrote a script that works like a sequencer. you create some music loops of same length and can then play sequences of them, like: first drumloop and bassline, then drumloop, baseline and lead synth, and so on. it also sends synchronized messages so that you can let a character dance to the music or something.

http://www.elektrolite.com/gl_seq

there is a simple version and a version with a dancing character. the moves of the character look very poor, it is just a case study. the script is preprepre-alpha, but it should work .

the music is a simple dnb-track, so be prepared 8)

edit: i added the python files. copy them to your blender dir.

hungry 4 comments,
corban
#1   Old 30-Oct-03, 23:33   


saluk saluk is offline
Member
 
Join Date: Mar 2002
Location: Seattle, WA USA
Posts: 1,703
Where are the other python files. You forgot to include them and it doesn't do anything (except print no module named ... over and over).
............................................
dawnSoft - the Home of Crescent Dawn Online

Go to the Spinhead Website
#2   Old 31-Oct-03, 00:47   
corban_2's Avatar
corban_2 corban_2 is offline
 
Join Date: Sep 2003
Posts: 39
Quote:
Originally Posted by saluk
Where are the other python files. You forgot to include them and it doesn't do anything (except print no module named ... over and over).
shame on me :-| . was late at nite, i forgot it. now it's workin, sorry,

corban
#3   Old 31-Oct-03, 13:07   
jm's Avatar
jm jm is offline
Member
 
Join Date: Aug 2003
Location: net
Posts: 339
hi

the model looks fine
jm
#4   Old 31-Oct-03, 17:32   
corban_2's Avatar
corban_2 corban_2 is offline
 
Join Date: Sep 2003
Posts: 39
Quote:
Originally Posted by jm
hi

the model looks fine
jm
the modelling of the character was made by a guy called brian collins (it's a quake2 model). i needed a character for creating some silly dance moves, so i only needed to do the aramture riggin. does the sound work?

corban
#5   Old 31-Oct-03, 19:19   
jm's Avatar
jm jm is offline
Member
 
Join Date: Aug 2003
Location: net
Posts: 339
yes
I think the sound work correctly
jm
#6   Old 31-Oct-03, 19:35   
saluk saluk is offline
Member
 
Join Date: Mar 2002
Location: Seattle, WA USA
Posts: 1,703
Nice work!

I tried to do something like this earlier, although mine was more MOD-like where you had instruments and you could adjust the speed they are played at for different notes.

I really like the dancing guy hehe. He dances better than me
............................................
dawnSoft - the Home of Crescent Dawn Online

Go to the Spinhead Website
#7   Old 31-Oct-03, 19:46   
corban_2's Avatar
corban_2 corban_2 is offline
 
Join Date: Sep 2003
Posts: 39
Quote:
Originally Posted by saluk
Nice work!

I tried to do something like this earlier, although mine was more MOD-like where you had instruments and you could adjust the speed they are played at for different notes.
i started with something like this, but the big problem is the timing. when the samples or loops are very short everyone, not only musicians can hear that they start a bit too early/late. also i think that todays trackin software is far ahead of what i could do . btw, i found a big problem in buzz this way: when you use effect machines, the rendered wav files (rendered from the same track but with different channels on) differ a bit in the bpm. i'm very sad bout this, cause buzz is perfect for hand-made breakbeats (yeah, these were made note by note 8) ).

another thing: the whole thing is coded very toolkit-like, actually you can use this for your own tracks and dancers (or dumb spinnin cubes ) without the need to code python. anyone wants a tutorial?

corban
#8   Old 31-Oct-03, 22:42   
Yamyam's Avatar
Yamyam Yamyam is offline
Donating Member
 
Join Date: Mar 2002
Location: Osaka, Japan
Posts: 217
Oh No...I would make a similar script...

BTW, This script is great. Thank you for sharing!
............................................
- See how the world goes around, you've got to help yourself.
#9   Old 01-Nov-03, 02:24   
Fred_Pyo's Avatar
Fred_Pyo Fred_Pyo is offline
Member
 
Join Date: Mar 2002
Location: Asuncion, Paraguay
Posts: 781
Tis is some FUNKY script, I specially like the dancing guy, makes me feel bad about my dancing abilities... I should learn from that dude now lol

I like this, if I keep working on me game (IF), maybe I can give this script some use...

[!]
One thing, there's a gap every now and then between the beats, is that because the wav files have the gap, or is it the script/blender?
#10   Old 02-Nov-03, 01:10   
corban_2's Avatar
corban_2 corban_2 is offline
 
Join Date: Sep 2003
Posts: 39
Quote:
Originally Posted by Fred_Pyo
Tis is some FUNKY script, I specially like the dancing guy, One thing, there's a gap every now and then between the beats, is that because the wav files have the gap, or is it the script/blender?
the script can only check for the ending of one loop when it is notified. now and then it happens that the always pulse comes some milliseconds after the loop is ended. since it is music, you hear this gap. but there is always a solution, i'm thinkin bout this.

another thing: the code is slow, cause it is in a debuggin state, it can be made MUCH faster, too many 'if' there. will be changed.

ah, and a NOTE: it works only when saving a dynamic runtime on my machine.

corban
#11   Old 02-Nov-03, 16:34   
Pooba's Avatar
Pooba Pooba is offline
Member
 
Join Date: Mar 2002
Location: Colorado, USA
Posts: 1,687
Pretty cool script!

I don't see a dancing guy, i see a rotating cube ?

Pooba
............................................
-Sam
#12   Old 03-Nov-03, 00:32   
corban_2's Avatar
corban_2 corban_2 is offline
 
Join Date: Sep 2003
Posts: 39
Quote:
Originally Posted by Pooba
I don't see a dancing guy, i see a rotating cube ?
it should be in the dance.zip file. the one with the cube is just for tutorial reasons for the synch feature.

corban
#13   Old 04-Nov-03, 12:00   
Closed Thread

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 12:54.


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