Team Spartan Cookies & Milk Forums
Using emitters to make door detail, lighting problem - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Using emitters to make door detail, lighting problem (/thread-3061.html)



Using emitters to make door detail, lighting problem - SharpOB - 03-07-2019

I'm using a starfall emitter to add detail to my Star Trek style doors, which is less expensive than props. This is not affected by lighting, however, which causes this to happen:

[Image: K6aYPez.png]
[Image: V11oWB9.png]
[Image: 7O24FHu.png]

As a result of the map's light_environment pitch, the two interior sides are well lit and there is no problem, but the two exterior sides are poorly lit and as a result the emitter looks jarringly bright. I'm looking for any options on fixing/managing this, though currently I have several:
  • do nothing
  • use holos instead
  • additive rendering mode possible?

If there is some form of additive rendering mode this would be immensely useful as I intend to use emitters throughout my Star Trek-style bridge:

[Image: 1fxr549.png]
[Image: iGqhshZ.png]

Thanks.

Also, I've noticed that emitters stop emitting after long amount of time has passed, requiring me to restart the chip.
Update on the door:
[Image: r4O0eje.png]


RE: Using emitters to make door detail, lighting problem - mariofludd - 04-07-2019

By the way, Garry's Mod comes with a Camera "weapon" under Other in the Weapons spawnmenu, a much better tool for taking screenshots so that your HUD does not exist


RE: Using emitters to make door detail, lighting problem - SharpOB - 04-07-2019

As the lighting is consistent based on angles, perhaps I could use the angle of the emitter to determine how much in shadow the emitter should be and then modify the colours based on that. I think that's the best solution for this.

[Image: XbKmKmB.png]
It would probably help to know the configuration of the light_environment to help with this, I might decompile the map or something to find out what the options are for shadow colour and light colour as well as the angles and pitch.


RE: Using emitters to make door detail, lighting problem - SharpOB - 04-07-2019

[Image: toCE5ll.png]
[Image: W63mGRL.png]
This equation should give the multiplier for the brightness of the RGB values: (0.1887959263 * math.sin((0.0174532925 * ang) + 0.5760229431))+0.3835511983
[Image: 7V65Kdb.png]
[Image: EbV3PVk.png]
It's not exactly working yet, though.

God damn, it actually works:
[Image: yr6dfLH.png]
[Image: Tqwx7fJ.png]


RE: Using emitters to make door detail, lighting problem - SharpOB - 04-07-2019

And done:
[Image: taKxnlY.jpg]
That came out way better than expected.


RE: Using emitters to make door detail, lighting problem - TheOneAndOnlyTee - 04-07-2019

impressive work, glad it turned out well


RE: Using emitters to make door detail, lighting problem - Blackcrow - 07-07-2019

Very impressive, continue, that's awesome Sharp Smile.