ricardocabellov5.0balter-egos
trace mr.doob r08028
blogdemoscenefeaturedextrascontact
 *blog... kind of... *rss

« iPhone $399, Dominio 9...What happened to your ... »

Inspire08 demo log, day 24
06.05.2008
Status:
2(3) days left until Inspire08
Timeline, ColorFades, Flashes!!


Well, if you re-checked my previous log you know that I found a quick way to put together the whole demo. There is still hope! :D

I did a quick test of having 100 effects checking if they had to be rendered or not per frame and the performance was really good, like 60fps. So, as I don't think I'll get 100 effects on the timeline I guess it's good enough to use this way for this prod. God bless Eclipse and it's refactoring/rename tool, because I've renamed the SceneManager class a couple of times... It's now called Timeline and it looks like this:

import javax.media.opengl.GL;
import java.util.ArrayList;

import effects.*;

public class Timeline
{
	private ArrayList effects;

	public Timeline(GL gl)
	{
		effects = new ArrayList();
		
		effects.add( new EffectRandomPolys(gl, 0, 27700) );
		effects.add( new EffectColourFade(gl, 0, 10000, 1.0f, 0.0f, new float[] {0.0f,0.0f,0.0f}) );
		
		effects.add( new EffectFlash(gl, 14450, 2000, 0.5f, 0.0f, new float[] {0.0f,0.0f,1.0f}) );
		
		effects.add( new EffectRandomPolys(gl, 27700, 30000) );
		effects.add( new EffectFlash(gl, 27700, 2000, 1.0f, 0.0f, new float[] {1.0f,1.0f,1.0f}) );
		
		effects.add( new DebugInfo(gl, 0, 0) );
		effects.add( new DebugLogger(gl, 0, 0) );
	}

	public void init()
	{
		for (int i = 0; i < effects.size(); i++)
			((Effect)effects.get(i)).init();
	}

	public void render()
	{
		for (int i = 0; i < effects.size(); i++)
			((Effect)effects.get(i)).render();
	}
}

Yep! I have ColourFades and also Flashes :D (The diference is that one is on additive blending ant the other isn't).

This is how the thing looks like now:

http://ricardocabello.com/projects/inspire08/06/

Not much there yet, but it's a base. Now, it's really about time to do more effects, learn how to load/display images and find out how to jump to a middle part in the tune.
posted by trace at 17:23
0 comment written so far

SORRY!
Is not that I don't care about what you have to say, of course I do, but they are speaking louder and I lost my patience :(
 *profile 



traditional id: Ricardo Cabello Miguel
based in: London, UK
serving to: Hi-ReS!
contact me: click here


 *latest posts 

* How-to unlock your Vodafone UK mobile ... (02.07.2008)
* escena.org DVD #1 / 2008 released (wit... (12.06.2008)
* New Neave.com (12.06.2008)
* Speaking @ Pixel Attack (Valencia, Spa... (10.06.2008)
* That's enough. (10.06.2008)
* Roxik's The Eco Zoo (05.06.2008)
* FlexBuilder3 + Eclipse + Ubuntu = More... (21.05.2008)
* Inspire08 demo log, day 36 (18.05.2008)
* Inspire08 demo log, day 35 (17.05.2008)
* Temps Réel - Breakpoint 08 (14.05.2008)
* Diverter (13.05.2008)
* Inspire08 demo log, day 30 (13.05.2008)
* Inspire08 demo log, day 29 (11.05.2008)
* Inspire08 demo log, day 27 and 28 (10.05.2008)
* Inspire08 demo log, day 26 (part 2) (08.05.2008)


 *latest comments 

* C++, SDL Coding? Maybe.. ;) (Preview) (trace)
* C++, SDL Coding? Maybe.. ;) (Preview) (Joey)
* La picaresca (spt)
* Mr. Slip Up (ricardo)
* La picaresca (ricardo)
* La picaresca (spt)
* La picaresca (sole)
* Demoscene @ Cirsa (sml)
* La picaresca (humphr3y)
* La picaresca (alfio)
* fiver2's new baby: debris (Jcl)
* Barcelona = full of shit(s) (Soli)
* Demoscene @ Cirsa (Scener)
* Rar & unrar with Ubuntu (SethPlate)
* Mindcandy 2 (Jcl)