Jump to content

Home

Light beams


Euth

Recommended Posts

Hey guys, was just looking at Ente's padstation and some of Dad*Mad's maps and was wondering how you make those beams of light?? I tried making one myself by taking a cylinder and using the Beam texture that is used in the padstation map, and although it looked the same, it was solid. Anyone able to help me out please??

Link to comment
Share on other sites

Sorry I don't - I am talking abut the effect surrounding the lights on the ceiling of the hallway in DAd*Mad's snow map #1 if that is any clearer - should probably aslo mention that it is a MP map and I'm using JK2radiant.....

Link to comment
Share on other sites

You can find them all over the place, the texture (I think it's just a tga with an alpha channel, not a shader) is used in loads of maps. Look at the texture sets you have. It's kinda ubiquitous. If all else fails, you can just make your own beam-looking texture.

 

You know, I just tried doing that myself with a cylinder, and got the same problem: looks awesome, but is solid. GtkRadiant has no "make nonsolid" option, so I wrote a shader that consisted of these lines:

 

textures/erulanei/beam
{
qer_editorimage textures/erulanei/beam.tga
surfaceparm nonsolid
map textures/erulanei/beam
}

 

I tried my new shader in the game, and it was certainly not solid, but the image didn't display. (I got the "holodeck" black and white grid.) If someone could tell me how to make the cylinder nonsolid in GtkRad or what's missing from my shader code, then your problem and mine will be solved, Euth.

Link to comment
Share on other sites

Originally posted by wedge2211

textures/erulanei/beam
{
qer_editorimage textures/erulanei/beam.tga
surfaceparm nonsolid
map textures/erulanei/beam
}

 

I tried my new shader in the game, and it was certainly not solid, but the image didn't display. (I got the "holodeck" black and white grid.) If someone could tell me how to make the cylinder nonsolid in GtkRad or what's missing from my shader code, then your problem and mine will be solved, Euth.

 

Your problem is that you put the map command into the general section. It shoould look like this:

textures/erulanei/beam
{
   q3map_nolightmap
   surfaceparm nonsolid
   {
       map textures/erulanei/beam
       blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
   }
}

 

Maybe a "cull disable" right after the "surfaceparm nonsolid" if you want to make it two sided.

Link to comment
Share on other sites

Thanks, Leslie, I copied some other shader codes and got it working nicely. (http://wso.williams.edu/~jshoer/images/shot0132.jpg)

 

Kyle_KatarnJedi: looks like you just used the .jpg file. There is a .shader file that goes along with it. I think Dad*Mad's textures are in the "bunker" set, look in there for something called "beam" --this is actually a shader.

 

If you want to make your own, take that code that leslie posted, and change textures/erulanei/beam to reference whatever jpg texture you want your beam to be.

Link to comment
Share on other sites

You put the .shader file in the shader directory. At the top of the block of code that represents this shader in particular, you write "textures/textureset/shadername," where that should be the texture set and name you want to give your shader (for example, in mine, the shader heading textures/erulanei/beam will create a shader called "beam" under the texture set "erulanei." you probably want yavin/beam or something like that. Then it will show up when you load that texture set, just like any other shader/texture.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...