Creating a Spotlight

Learn how to do great visual lighting

Hello, welcome to my Spotlight tutorial, where I will show you how to create some pretty good looking light effects for your map. All you need is familiarity with hammer. Thats all.

======================

A ZAZUBA3 TUTORIAL

To start we need a basic map for the lighting to take effect. This small setup took me around 5-6 minutes.

--

Photobucket

Now that you have a surrounding its time to put in a prop for our lighting to come out of. (appearance wise)

I have added 2 street lamps.

--

Photobucket

With our lamps in place, its time to add the physical light. Create a "light_spot" entity, aim it directly downwards (This is if you are creating the Street lamp, if you ware using a different model aim it likewise to your model) and put it underneath your lamp.

--

Photobucket

Now its time to create the visual light (remember this is a light effect, but it does not actually light up models or textures), but results in good looking lighting effects. Create a "pointspotlight" entity. (You can refer to my settings at the bottom of the page) We are going to aim this downwards. Also, most mappers prefer to put their "pointspotlight" directly inside of their "light_spot", and I have done that also.

(Note: In hammer view, the yellow line coming out of this entity shows where your lighting will go, so if your light isn't going where you want, make sure that it is in place in the "Top, side, and front" views in hammer.)

--

Photobucket

Now lets compile (F9+enter) and see what we have. If yours is off, simply return to hammer and double check your work. This is my result:

--

Photobucket

If all is well you should be happy with your new lighting knowledge, and use it for great detail in your maps to come. Thank you for using my tutorial, if you have any questions / concerns please PM me on FPSB.

=-=-=-=-=-=-=-=-= LIGHT SETTINGS =-=-=-=-=-=-=-=-=

-=Model=-

Entity Class = PropStatic Pitch Yaw Roll (Y Z X) = "0 270 0" Minimum DX Level = "DX6 (Default)" Maximum DX Level = "DX9 (Default)" World Model = "models/propsc17/lamppost03a_on.mdl" Skin = "0" Collisions = "Use VPhysics (model vertex data)" Disable Shadows = "No" Screen Space Fade = "No" Lighting Origin = "-I left this blank-" Start Fade Distance = "-1" End Fade Distance = "0" Fade Scale = "1"

-=Physical Light=-

Entity Class = Light_Spot Name = "-I left this blank-" Brightness = "255 255 255 200" HDR Brightness = "-1 -1 -1 1" Appearance = "Normal" Custom Appearance = "-I left this blank-" Constant = "0" Linear = "0" Quadratic = "1" Half (50%) Falloff = "-I left this blank-" Complete (0%) Falloff = "-I left this blank-" Pitch Yaw Roll (Y Z X) = "-90 0 0" Pitch = "-90" Entity to point at = "-I left this blank-" Inner (bright) angle = "15" Outer (fading) angle = "25" Maximum cast distance for models = "0" Exponent = "0.0"

-=Visual Light=-

Entity Class = Point_Spotlight Name = "-I left this blank-" Parent = "-I left this blank-" Pitch Yaw Roll (Y Z X) = "90 0 0" Spotlight Length = "500"

Spotlight Width = "50" Color (R G B) = "255 255 255"

==========================================

THANK YOU FOR READING MY TUTORIAL

Notes:

I understand the point_spotlight may have been rather small, this can be fixed simply by making the width larger.

I did not include how to use the light entity's I should do so here.

When using the entity = "point spotlight"

Name = Use when creating Inputs and Outputs

Parent = Use for linking to triggers and other miscellaneous features

Pitch Yaw Roll = Used for positioning in your map. The entity "point_spotlight" has a rather awkward and distinct feel with the Y Z X axis, so double check your work here!!!

Spotlight Length = This is used for how long, or bright the light will be (keep in mind that it includes fading distance as well)

Spotlight Width = This is how large the light is going to be, its difficult to find the perfect size, but with a few attempts of trail/error you should find the right width for your model.

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Tutorial.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Tutorial a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Tutorial.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • roma.'s Levels
    • P2: Drudge
      Points: 1,507
    • E1: Helper
      EF: 1
    • C2: Treehouse Member
    • A5: Veteran
      Account Age: 5 years
    Posted 3 days ago

    Images are down.

    space
  • WildWolF's Levels
    • P2: Drudge
      Points: 1,674
    • E1: Helper
      EF: 4
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 4 years ago

    Nice tut, learned a bit :P (about the spotlight angle)

    What skybox is that, btw?

    User Title
    Ohh you.
  • Zazuba3's Levels
    • P1: Beggar
      Points: 643
    • C1: Member
    • A5: Veteran
      Account Age: 6 years
    Posted 4 years ago
    Posted by Xblah Wow, 5 minutes to click+enter+click+enter? It's just two entities at stardard properties. And your point_spotlight doesn't fit the post. The outter angle must be larger. That is far from being realistic.
    ( Begging of Tutorial ) Hello, welcome to my Spotlight tutorial, where I will show you how to create some pretty good looking light effects for your map. All you need is familiarity with hammer. Thats all.

    Good lighting effects! Never said realistic! This was just to introduce people to the entities. At the end I explained what their properties did.

    User Title
    The Emocakes
  • Xblah's Levels
    • P3: Peasant
      Points: 7,937
    • C1: Member
    • A6: Elder
      Account Age: 7 years
    Posted 4 years ago

    Wow, 5 minutes to click+enter+click+enter? It's just two entities at stardard properties. And your point_spotlight doesn't fit the post. The outter angle must be larger. That is far from being realistic.

    User Title
    http://xblah.cjb.net
  • Jack112's Levels
    • P2: Drudge
      Points: 2,143
    • E1: Helper
      EF: 11
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 4 years ago

    Pretty awsome tut dude.

    User Title
    Active once again :D
  • jason9jason's Levels
    • P1: Beggar
      Points: 775
    • E1: Helper
      EF: 10
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 4 years ago

    Wrong section, you should change it to mapping ;]

    User Title
    Wheres your head at?

Withhold Notice

This submission has been withheld! It'll be hidden until the submitter has made the changes suggested by the admin(s).

If you're the submitter, please post in the conversation once you've made the change(s).

To view the withhold reason, click here.

Credits

Submitter
Zazuba3's Levels
  • P1: Beggar
    Points: 643
  • C1: Member
  • A5: Veteran
    Account Age: 6 years
Zazuba3 (Creator/Co-creator)
Key Authors
Zazuba3
Unknown

Rating

10.0/10
Based off 1 rating(s)

Rate Tutorial

  • You cannot access this while the submission is withheld

Additional Info

Genre
3D Art & Rendering
Difficulty Level
Beginner

Stats

Post Count
6
ViewCount
2,336
Date Added
4 years ago
Date Modified
4 years ago
  • You cannot access this while the submission is withheld

Vote Zazuba3
Tutor of the Month, May 2013 (Current Winners)

  • You cannot access this while the submission is withheld

You voted Zazuba3
Tutor of the Month, May 2013 (Current Winners)

  • You cannot access this while the submission is withheld

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share