Files |  Tutorials |  Articles |  Links |  Home |  Team |  Forum |  Wiki |  Impressum

Aktuelle Zeit: So Mai 19, 2024 19:10

Foren-Übersicht » English » English Programming Forum
Unbeantwortete Themen | Aktive Themen



Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Autor Nachricht
BeitragVerfasst: Sa Aug 25, 2007 13:38 
Offline
DGL Member
Benutzeravatar

Registriert: Mi Jan 24, 2007 00:44
Beiträge: 144
I have simulated something that gives the appearance of Microsoft's Media Centre moving blue-ish background using two textures - one is placed on the screen static with colour 1,1,1 in orthographic mode - using the entire screen space. I then add another texture with colour 0.06,0.06,0.06 and blend it with the underlying texture while spinning it around and scaling it - quite slowly so as to avoid it looking a bit mad. Very simple - and a rather pleasing effect - if kind of repetitive after a while.

I was wondering whether it was simple to create a mathematical routine that would allow me to create a background across the entirety of the screen, say 1024 x 768, and generate some movements using some whizzy formulas that have the effect of the background moving or (hopefully) non-repeating waves being created in the colours.

I'm sure this is what Microsoft must do with their Media Centre background as it moves around, seemingly, non-uniformly.

_________________
Cheers, DpM
http://www.hmusiccentre.org.uk


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Aug 26, 2007 09:08 
Offline
DGL Member

Registriert: Di Sep 06, 2005 20:40
Beiträge: 26
Wohnort: Aarhus, Denmark
What about a simple perlin noise which is simply blurred very much and then moved a bit each frame. That sound to me like the most simple solution


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Aug 26, 2007 14:27 
Offline
DGL Member
Benutzeravatar

Registriert: Mi Jan 24, 2007 00:44
Beiträge: 144
Good pointer; thank you.

I'd not heard of Perlin before - so I did some scouring around on the Internet and, originally, thought it would be too hard to begin with (I have a programming mind, not a mathematical mind - and they're definitely not the same thing!) but I have experimented and I have finally come up with the following fair approximation of a Windows Media Centre-like background which moves around very subtley:

Bild

Bild

I use a 64x64 pixel texture and each time I update I calculate two iterations of 'noise' to draw to the texture while always forcing the Blue value to be 250 - I managed to elongate the white whisps by making the X values larger. I then scale my resulting texture by 1.1 on the X and Y to get rid of a funny border that I was seeing at the edges.

Looks OK to me.

_________________
Cheers, DpM
http://www.hmusiccentre.org.uk


Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 3 Beiträge ] 
Foren-Übersicht » English » English Programming Forum


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
  Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de
[ Time : 0.007s | 14 Queries | GZIP : On ]