Searching for an Invisible texture to make a texture disappe

Locked
v1l3
Posts: 822
Joined: Wed Apr 02, 2003 8:00 am

Searching for an Invisible texture to make a texture disappe

Post 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
speaker
Posts: 167
Joined: Sun Jan 13, 2008 8:34 pm

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

Post 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 :)
User avatar
MKJ
Posts: 32581
Joined: Fri Nov 24, 2000 8:00 am

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

Post 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.
DTS
Posts: 2879
Joined: Thu Jul 13, 2000 7:00 am

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

Post 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).
v1l3
Posts: 822
Joined: Wed Apr 02, 2003 8:00 am

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

Post 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
speaker
Posts: 167
Joined: Sun Jan 13, 2008 8:34 pm

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

Post 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.
User avatar
MKJ
Posts: 32581
Joined: Fri Nov 24, 2000 8:00 am

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

Post 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.
DTS
Posts: 2879
Joined: Thu Jul 13, 2000 7:00 am

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

Post by DTS »

I don't have any discs on mine. Or dots.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

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

Post by ^misantropia^ »

That's cg_oldrail 0.
DTS
Posts: 2879
Joined: Thu Jul 13, 2000 7:00 am

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

Post 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.
v1l3
Posts: 822
Joined: Wed Apr 02, 2003 8:00 am

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

Post 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.
User avatar
MKJ
Posts: 32581
Joined: Fri Nov 24, 2000 8:00 am

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

Post by MKJ »

so.. kinda what was posted multiple times in this thread then?
next time forget the brain, just read :p
v1l3
Posts: 822
Joined: Wed Apr 02, 2003 8:00 am

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

Post 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
Locked