Light BEAM

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Light BEAM

Post by wacko »

I give up...
I am too stupid to make a spotlight with a light beam. It don't have to move or anything, I just need a lamp hanging from above, a light source under it, shining to the floor with a angle of about 40 deg only (that's, what I could manage) and then: A LIGHT BEAM from the lamp to the floor!
I've seen this in lots of maps but I can't find textures that work or even are animated like the beam of the equipment/searchlight_on.
What do I have to do? What texture could I try? Me and others posted this question before, but before the final answer came, these posts were forgotten?! I can't believe, that nobody of you knows how to do it, so PLEASE help me (and the others)!
BTW, is there any place, were all these checkboxes in the surface-explorer are explained??
[-[usf]-] commando
Sergeant Major
Posts: 103
Joined: Sun Dec 15, 2002 4:09 pm
Location: australia
Contact:

Post by [-[usf]-] commando »

i am sure its a matter of scripting a light beam and not texture
umm so ne1 have a script 4 a spot light it would b help full thannks
umm try searhing 4 a script in here 4 a spotlight
and is there a script 4 a moveing spotlight or tutorial
or point us in the corrct way thanks 4 ur time
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I think there's a common/beam texture, not sure though. Thought there was one somewhere. Just apply that texture to a cylinder.

The checkboxes in the surface inspector are just decoration :wink: , they don't serve any use.
Image
Slyk
Lieutenant Colonel
Posts: 361
Joined: Sun Jul 14, 2002 12:42 am
Location: Elizabethtown, PA

Post by Slyk »

Depending on the desired effect, you can place 'spot lights' and then tweak the angles and colors, pain in the a** but works. But if you want the 'beam' to be visable with the little dust particles floating through it, I'm no help and doubt it is possible unless you're a true wiz with scripts and models.

You 'might' get the same effect by placing a series of low intensity lights along a common path though, gradually increase brightness to form a rough shape. Not too sure about that, just brainstorming. What about that 'light clip'.... hmmmmmmm.. not sure how it works but experiment with it maybe too see if it keeps light IN or OUT. You need some kind of tweak on the 'glowing' surfaces. In 'Thief's' old 'Dark Engine' I could do it for ya!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

I'm sure it can be done. If you can't find the mohaa texture, copy the sfx/beam texture from Quake 3 :)
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

This is REALLY a pain the ***.
I found common/adjustable_volumetric. Looks as if I were on the right way.
But then, it is too bright, too opaque or the particles move too fast or are too small or anything else :evil:
Reading 'adjustable' in the name makes me think of something adjustable - don't call me stupid, please. So what is adjustable, and where or how.
Next post will probably tell me, that I will have to write a script to change the colour of the beam. Please don't - I can't hear it anymore!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You have to write a .shader file :?

Tell me when you're ready to hear how to.
Image
Guest

Post by Guest »

we are ready please tell us Jv_GOD
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

A little more explanation a little more action

Post by jv_map »

[blush] :oops: [/blush]

Well there are three things you got to do.
  1. Edit the texture. The texture is in pak1.pk3 or pak2.pk3 in the common folder. Open the tga file with Photoshop or something and adjust it to your needs. Then save it under some different name, including your map name, e.g. textures/mymap/mybeam.tga
  2. Create a shader file. Find the original shader in pak0.pk3 (scripts/common.shader). Scroll until you find the adjustable volumetric shader. Copy this section and paste into a new file. Then edit that file to use your texture (modify the 'map' stage). Also modify the shader name on top. Then save as scripts/mymap.shader.
  3. (Re)start Radiant. In the textures menu, find the folder with your map name (e.g. textures -> mymap). Your new texture should appear in the texture window. Apply it where you want and compile your map.
Well that was in short. It could be you need to edit multiple textures for one beam. If any problem occurs, consider posting it here.

Hope this helped you it a bit, because beams are cool 8) .
Image
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

If this works, you are really jv_GOD, I'd say, change your name :wink:

Well, a shader is atleast not called a script-file :)
I'll will give it a try, and if there's anything coming out worth to show, I would like to get an email-adress I can send this for the community because I have no own place I can put it!?
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

jv_GOD, thanks
Finally, it worked! I've made a pk3 with a small demo-room and stuff, and tried to explain the .shader as far as I understand it (not very far :oops: )
If I get a adress I can send this piece, you will be able to find it soon here on .map :D
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

:D demo of the things I described above is downloadable here:
http://www.fileplanet.com/dl.aspx?/plan ... d/beam.zip
You will find a .pk3 including the .bsp, the .shader and the textures.

Hope this will help!?
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

How the...what the...? How did you upload it to fileplanet?
Live to map, not map to live.
-mohaa_rox, .map
moderator
Post Reply