Page 1 of 1

Searching for an Invisible texture to make a texture disappe

Posted: Fri Jan 30, 2009 2:59 am
by v1l3
Is there a texture for a .jpg and .tga that has been made, for making a texture disappear? The reason I ask is, I want to make the raildisc_mono2npm.jpg disappear in my Osp railtrail, so just the railcorethin_mononpm.jpg shows. The way it is, makes the railtrail all fat like in p.r.1.16n, rather than p.r. 1.30 , 1.31, and 1.32.
The pak0.pk3 in Q3 baseq3 folder has a .wav file(can't remember the name of it) that is nothing, so you can rename it(in folder layout) so you can take a sound out if you like. I used that for my rg_hum.wav in my instagib mods so I don't have to listen to the damn humming. So..kind of the same thing as that, but for a texture.

-thx

Re: Searching for an Invisible texture to make a texture disappe

Posted: Fri Jan 30, 2009 9:18 am
by speaker
Make a shader with the same name as the texture and surface parameter 'nodraw'. Alternatively, add an alpha channel to the texture and set transparency to 100 percent. Just guessing, I have not tried anything like that yet :)

Re: Searching for an Invisible texture to make a texture disappe

Posted: Fri Jan 30, 2009 9:46 am
by MKJ
cant you just mess around with the railtrail settings in the console?

set it to old rail, then change railtrailwidth for instance?

or am i not getting what you are getting at.

Re: Searching for an Invisible texture to make a texture disappe

Posted: Fri Jan 30, 2009 5:29 pm
by DTS
My railtrail in OSP looks just like a laser, so it is possible with just console commands.
I use oldrail and some non-default core or segment width, not sure which. You can even make the railtrail not show up at all if you set the right things to 0.

Remember you can press Tab after entering part of a console command for it to list the commands starting like that for you. So that way you can find rail commands (something like cg_rail).

Re: Searching for an Invisible texture to make a texture disappe

Posted: Sat Jan 31, 2009 6:00 am
by v1l3
Yeah..I've always had it on cg_oldRail "1". I've had r_railWidth "1" , but the problem is the dots or small circles in it which are from the raildisc_mono2npm.jpg that screws it up.
Make a shader with the same name as the texture and surface parameter 'nodraw'. Alternatively, add an alpha channel to the texture and set transparency to 100 percent. Just guessing, I have not tried anything like that yet
Could you type out exactly the way that I should put that on the .shader file. The format..or the way that's done exactly?

-thx guys

Re: Searching for an Invisible texture to make a texture disappe

Posted: Sat Jan 31, 2009 9:08 am
by speaker
gfx/misc/raildisc_mono2npm
{
surfaceparm nodraw
surfaceparm nonsolid
surfaceparm nomarks
surfaceparm nolightmap
}

Save this as a text file called 'raildisc.shader' and copy to 'pak0.pk3' into the 'scripts' folder (but don't forget to make a backup of your 'pak0.pk3 before, just in case). No guarantee that this works at all, because 'raildisc_mono2npm' may not be used in the same way as standard textures are.

As a last resort, you could try to replace the 'gfx/misc/raildisc_mono2npm.jpg' with simple black or white textures of the same dimension, or just delete it from the PK3 altogether (but save a copy first).

Any of these manipulations will change the CRC of the PK3, so pure servers will probably not allow you to connect. BTW, it may be that the change should be made to the OSP PK3, not to the original 'pak0'. I don't know, I am not familiar with the OSP mod.

Re: Searching for an Invisible texture to make a texture disappe

Posted: Sat Jan 31, 2009 11:00 am
by MKJ
what DTS said. use cg/rail[tab] to see all railproperties. you can control the width of the discs too, and how many discs appear et al

you could probably get rid of the discs by setting /cg_railsegmentlength (i think it is) to 1000000 if 0 doesnt work.

Re: Searching for an Invisible texture to make a texture disappe

Posted: Sat Jan 31, 2009 6:30 pm
by DTS
I don't have any discs on mine. Or dots.

Re: Searching for an Invisible texture to make a texture disappe

Posted: Mon Feb 02, 2009 11:52 am
by ^misantropia^
That's cg_oldrail 0.

Re: Searching for an Invisible texture to make a texture disappe

Posted: Tue Feb 03, 2009 5:51 am
by DTS
^misantropia^ wrote:That's cg_oldrail 0.
I just checked my OSP config and it says

Code: Select all

seta cg_oldRail "1"
in it.

Re: Searching for an Invisible texture to make a texture disappe

Posted: Tue Feb 03, 2009 7:59 am
by v1l3
o.k. I finally figured it out...if I only used my brain for 1 second (uh-duh) :rolleyes: All I had to do was set r_railwidth to "0". I should have probably figured this out like 7 years ago. :disgust: I'm sorry for wasting everyones time! grrr
Thanks for the .shader text Speaker, though I wouldn't suggest copying it to pak0.pk3, should never do that..it'll make you unpure. Should put it in a .pk3 that's read after pak0.pk3...as far as anything is concerned in that notion.

Re: Searching for an Invisible texture to make a texture disappe

Posted: Tue Feb 03, 2009 2:34 pm
by MKJ
so.. kinda what was posted multiple times in this thread then?
next time forget the brain, just read :p

Re: Searching for an Invisible texture to make a texture disappe

Posted: Wed Feb 04, 2009 6:54 am
by v1l3
MKJ wrote:you could probably get rid of the discs by setting /cg_railsegmentlength (i think it is) to 1000000 if 0 doesnt work.
I've read :D ... pretty much you said there, just I used it on the r_railwidth ...such tricky things
-thx