Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Point Lights not showing
JD Zombie Offline
Junior Member

Posts: 11
Threads: 3
Joined: Jun 2011
Reputation: 0
#1
Point Lights not showing

So I want to have some candles on the floor but I can't have the light shining through underneath so I thought I'd use the 'no light' candles and put small point lights above them to mimic the glow.

Works fine for the first candle but all the others are a no-show, they're all connected to their own separate point lights but only one works. I'm also still able to connect point lights to other light entities, it's just limiting candles to 1. Why?

Gah, maybe I'll just redesign the room so lights shining through is not a concern then I could just fall back to the original attempt. Gonna be a hassle.

Dedicated to the butterfly.
(This post was last modified: 06-27-2011, 06:57 AM by JD Zombie.)
06-27-2011, 06:31 AM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#2
RE: Point Lights not showing

This is not a straight answer to your question, but this video shows how to connect more than 1 point/spot light into lamp entity and start a slight flicker of color.
http://www.youtube.com/watch?v=LKxzoAIK8jA

If you want to make it without the flicker (easier and quicker to make), just create pitch black point lights and use
FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);
to adjust the radius and colors. float afTime looks fine with 0.5f.

candles entity properties should be like this:
uncheck lit (obviously)
check PlayerInteractCallbackAutoRemove (so you cant press mouse on the candle more than once)
and put what you want to use as the functions name into the PlayerInteractCallback

If this seems too complicated or anything, just ask for better explanation!
(This post was last modified: 06-27-2011, 05:23 PM by Khyrpa.)
06-27-2011, 05:19 PM
Find




Users browsing this thread: 2 Guest(s)