Jump to content

OB SDK models emitting light


m8nkey
 Share

Recommended Posts

I'm sure I read quite some time ago that in OB it's possible for models to be light-emitting, removing the need for entity lights for prop light models. I've done a quick google search and checked the Valve Wiki but can't seem to find anything on it. Can anyone confirm or deny this or point me in the right direction?

Link to comment
Share on other sites

Why would you want to? All it would do is limit your control over lighting situations.....

To reduce entity count and standardise lighting in this particular situation. The interior environments in Enterprise:TCW are very heavily reliant on models. It's an environment that just doesn't conform to how I'd normally do things. As the lighting is currently implemented it's not possible for every single light to have a corresponding env_light and env_glow entity due to the sheer number of small spotlights everywhere (this is based off reference material. reducing the amount of lights isn't an option). Due to the confined space within the corridors and close proximity of the spotlights, every light doesn't need a light entity anyway.

We're combining models into larger, pre-fabricated sections to reduce entity count but I'm just trying to think of other ways to reduce and optimise.

It might be useful if he's making a neon sign.

A VMT with the following attributes can be used to create an effective neon effect. The alpha channel of the VTF is used for light falloff.

"unlitgeneric"

"$additive" 1

"$translucent" 1

Link to comment
Share on other sites

So you're talking about baking light maps into the models? Hm? I think there's support for it, (maybe?) but it's pretty weak / not very good looking.

I read somewhere that the guys behind Zeno Clash had to code in support for light-mapped props themselves via a 2nd UV layer or something (they didn't use brushes) - which sounds like what you need... which means it's probably not in the SDK if a licensee had to do that, much less a modder.

Link to comment
Share on other sites

you can use texture lighting, there should be a light.rad file ...

For my insurgency level I created white brushes and set them to func_illusion/don't render. I got a very smooth lighting style. Valve used it in HL2 for some windows.

The lights.rad file has material paths so I would assume you can emit light from a vertex prop material?

Link to comment
Share on other sites

you can use texture lighting, there should be a light.rad file ...

For my insurgency level I created white brushes and set them to func_illusion/don't render. I got a very smooth lighting style. Valve used it in HL2 for some windows.

The lights.rad file has material paths so I would assume you can emit light from a vertex prop material?

You have to separate the 'light' texture in the models from the rest then and write it into the lights.rad, that would probably work.

This material could be used in other models too, so you would have a standardized light coming from all of your models.

Link to comment
Share on other sites

Another thought... I don't know how this would look in Source (or your specific scenery), but have you considered baking some lighting into an emissive on the model, and then using just a baseline level of lights for actual lighting (characters, etc.)? If you've got a situation where there's little spotlights on the wall every X units, this might be the best way to go... in theory, you'd get lightmap-quality highlights down the line, but need far fewer lights to illuminate the floors and characters moving through. If you're heavily modeled, this might look better than just letting the vertex lighting handle it.

Link to comment
Share on other sites

I've had a lot of weird artifacts popup when using lights.rad with the episode1 engine. I never had any problems in goldsrc. These days I just use entity lights for the sake of my sanity.

I really do miss emmissive surfaces though :/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • MapCore on Discord

  • Our picks

    • Post in Yanzl's Source Emporium
      Two new asset releases!

      First up is Basalt. Sadly I can't release all of the assets as some of the nature stuff is from Megascans and can't be redistributed. Also only includes the assets I've made.


      https://www.dropbox.com/s/e86kdqwpvhhs5x6/Basalt.zip?dl=0

      Second one is assets I've made for Pitstop. A small release that includes some road and concrete trim textures, a bunch of sponsors and some skybox buildings that might be useful.


      https://www.dropbox.com/s/x6tn3b6nfo2u77d/Pitstop.zip?dl=0

      As always, free for non-commercial use with attribution. 
×
×
  • Create New...