*blog... kind of... *rss
Inspire08 demo log, day 23 05.05.2008 | |
Status: 3 days left until Inspire08 Base code, file handling
Right... End of the 3 day weekend. Things are not looking too promising in order to have something releasable for the deadline... I'm doing some progress here and there, but I still need a lot of practice with Java.
Still having problems loading assets... but well, I'm too old to lose sleep time for reaching the deadline :P My invtro for D/// will have to be released somewhere else... Maybe at Euskal??? I'll take my time, maybe I'll just do a teaser, or something else for the party. We'll see.
EDIT: Funny that, after saying I wasn't going to lose sleep time I ended up going to sleep at 4.30 :P Not doing demo stuff tho, mainly reading stuff like this. Anyway, while trying to sleep I was thinking that a quick way to have some synch in place would be just adding start/duration parameter to the effects... avoiding any kind of XML script+resource manager. Something like this:
effects.add(new EffectFlash(gl,19207,1000);
And then, the effect instance would be checking itself if it needs to be rendered or not (per frame). It's very crappy way of doing it, as I may end up with 50 effects asking if they need to be rendered... but well, I'll fix that on the next one. At least it gives some hope to the prod. | | posted by trace at 17:22 |
Virtual Hosts with Apache2 on Ubuntu 8.04 05.05.2008 | |
I have googled a bit in order to do this, but all the info I was finding was a bit obsolete, so use this info if you want, but the main purpose of writting this down is so I can remember it next time (hopefully without being obsolete):
After installing Apache2 from synaptic...
sudo gedit /etc/hosts
Add line...
127.0.0.1 ricardocabello.local
then...
sudo gedit /etc/apache2/sites-available/ricardocabello
with this kind of content...
<VirtualHost *>
ServerName ricardocabello.local
DocumentRoot /home/mrdoob/Desktop/www/ricardocabello.com/
</VirtualHost>
save the file, and then...
sudo a2ensite
chose ricardocabello (this will mainly create a link on sites-enabled). And then, to complete the task:
sudo /etc/init.d/apache2 reload
| | posted by ricardo cabello at 10:11 |
Inspire08 demo log, day 22 04.05.2008 | |
Status: 4 days left until Inspire08 Base code (still!)
Well, I haven't progressed much visually, but I've refactored everything quite a bit. The base is almost done.
http://ricardocabello.com/projects/inspire08/05/
As you can see, I have a Logger, Timer, FPS counter, MS... That's enough for debugging/testing the effects on-the-fly. Also, I have a base for the Scene Managing, I still have to load a XML with the times of start/end and all this but by now it's simple enough and looks like this:
import javax.media.opengl.GL;
import java.util.ArrayList;
import com.xplsv.utils.Logger;
import scenes.*;
public class SceneManager
{
private ArrayList scenes;
public SceneManager(GL gl)
{
scenes = new ArrayList();
scenes.add(new SceneRandomPolys(gl));
scenes.add(new SceneInfo(gl));
scenes.add(new SceneLogger(gl));
}
public void init()
{
Logger.init();
Logger.log("SceneManager.init");
for (int i = 0; i < scenes.size(); i++)
((Scene)scenes.get(i)).init();
}
public void render()
{
for (int i = 0; i < scenes.size(); i++)
((Scene)scenes.get(i)).render();
}
}
Just 4 days to go and I still don't know how the visual content will be... Oh well... Tomorrow more. | | posted by trace at 15:17 |
Inspire08 demo log, day 21 03.05.2008 | |
Status: 5 days left until Inspire08 Base code
Although my mind was trying to avoid working on the thing today, I managed to concentrate a bit. As getting the milliseconds elapsed in the tune seemed to be something I couldn't achieve at the moment, I decided to look for a workaround which I could fix in the future. Found out the AS3 getTimer() equivalent in Java (System.currentTimeMillis()), so by now, I would depend of the music not being delayed and keeping the same timer as Java has (crossing fingers). So I did a simple class like to get going.
So, tomorrow I should be doing a quick SceneManager and also some Scenes/Effects finally :P
I hope I also find out soon how to jump to a defined part of the tune too :S | | posted by trace at 18:52 |
Inspire08 demo log, day 19 02.05.2008 | |
Status: 7 days left until Inspire08 Base code and Uh!!
Neither I had any real progress yesterday :( And I only have one more week. I hope this 3-day weekend ends up like one of those super productive ones. Still have to sort out the timer I'm afraid. I could do without it, maybe, but that won't go well with the tune.
On top of that, I also remembered that as we used to have with bcnparty, this year D/// is also supposed to follow a theme. Will be hard to include that on the demo/tune too.
Uhmm.... | | posted by trace at 02:30 |
Bots are the new Crons 01.05.2008 | |
We implemented a bit of a automation over xplsv.tv some weeks ago. Until then I was daily picking the video of the day. Now I "map" the month with a selection (still handpicked) of the videos, and then our php system does all the mailings at 00:00 every day. You wouldn't believe what a relief it was after doing the hand picking of a video every day during 4 years :S!
When we were thinking about how to implement the feature we considered setting up a Cron on the hosting, however, we quickly guessed that if the site had about 207,045 hits per day (207,045/24/60/60 = 2.39), so 2 hits per second, these are enough visits as to make the user launch these actions indirectly when visiting the site I would say ;)
The funny thing is that after checking the logs, most of the times the user agent of who launched the action happens to be a bot. So, who needs a Cron when we have Google bot? ;) | | posted by mr.doob at 15:45 |
Inspire08 demo log, day 18 30.04.2008 | |
Status: 8 days left until Inspire08 Base code
Still no progress. Is not looking very well... I'm stuck with the sync/timer code. I'm trying to find the proper way to get the elapsed time of the tune in milliseconds with jorbis.
By now I'm reading the basics of Ogg so I know a bit more of what's going on, and also following some tutorials for introduction. I'm starting to get used to reading Java, so maybe I'll sort this bit soon and start having fun coding some effects :S
| | posted by trace at 16:08 |
Inspire08 demo log, day 15, 16 and 17 29.04.2008 | |
Status: 9 days left until Inspire08 Music "done", time to code now
So, Bath was good, too good that I did nothing apart from walk and relax :P I managed to reach to an acceptable level with the tune today tho.
inspire08_03_07.ogg
The end is pretty dull, but sounds good enough to me. So I'll leave that part for now and concentrate on coding. I still haven't find the way for getting a timer from the music :/ | | posted by trace at 13:41 |
Inspire08 demo log, day 14 26.04.2008 | |
Status: 12 days left until Inspire08 Still with the music
Well, the music is really consuming a lot of time already. But I think I'm getting somewhere near to satisfaction.
inspire08_03_05.ogg
Gargaj suggested some drum tweaks that I gotta try, but overall the music seems to be well received.
I'm going to be away for 3 days tho, I'll try to work a bit on the coding side with the iBook, I hope I can make it compile there without much trouble. A shame that I would be using MacOS during these days, but I'm not really up for installing Ubuntu on a PPC, neither on the MacBookPro right now. | | posted by trace at 17:45 |
|
*profile

traditional id: Ricardo Cabello Miguel
based in: London, UK
serving to: Hi-ReS!
contact me: click here
*affiliations
xplsv.com admin, development, design
xplsv.tv admin, development, design
escena.org admin, design
molomucho.com development, design
*advertising
|