LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-17-2004, 08:24 AM   #1
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Rep: Reputation: 30
modify GLmatrix screensaver


I would like to mod this screensaver so that the text is blue overall. Any ideas on what program to open the files with?

thanks
 
Old 09-17-2004, 09:04 AM   #2
TazG
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Gentoo 2004
Posts: 133

Rep: Reputation: 15
Hi, why don't you just ask the guy who wrote it?
http://www.jwz.org/contact.html
 
Old 09-17-2004, 09:16 AM   #3
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
Well there are two ways. The first one uses an XPM file, (if you have the xscreensaver source it is in <source dir>/hacks/images) called matrix3.xpm. You can edit this with the Gimp or someother editor to change all the colors to whatever you like. (don't forget to recompile)

however if you typically run the screensaver without textures (ie wireframe) you'll have to get a little more technical:

in the function 'draw_glyph' of glmatrix.c there is a declaration around line num 376:
GLfloat r,g,b,a = 1;

then an 'if' statement that decides what values to set these to. I'm at work at the moment so I'm afraid I can't provide a patch, but altering these lines of code and remaking glmatrix should be able to set the color to just about anything you want. Below is a code snippet that will make the letters a pretty blue:

/* in function draw_glyph */
GLfloat r,g,b,a = 1;
if (!do_texture && !spinner_p)
/* orig line is r=b=0, g=brightness; */
r=g=0, b=brightness;
else
r=g=b=brightness;

Last edited by jpbarto; 09-17-2004 at 09:18 AM.
 
Old 09-17-2004, 03:29 PM   #4
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Original Poster
Rep: Reputation: 30
thanks

I will work on it this weekend. I need the blue as the Truck this is going into is blue along with the Alpind display.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GLmatrix gnagnibu Linux - Software 0 08-29-2005 04:16 PM
Xscreensaver & Glmatrix randrake Linux - Software 5 05-29-2004 01:35 PM
glmatrix santner Linux - Software 0 05-25-2004 09:35 AM
How to modify the library path variable?modify the Electronkz Linux - Newbie 1 04-13-2004 06:18 AM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration