Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Radiant on Sat 01/04/2006 11:49:50

Title: SetLightingAngle()
Post by: Radiant on Sat 01/04/2006 11:49:50
I'm running the latest build of WMGS. I can use SetLightingAngle() to cast some nice shadows, but if point it at the camera I don't actually see the light source itself. Is this a bug or am I doing something wrong?
Title: Re: SetLightingAngle()
Post by: SSH on Sat 01/04/2006 12:10:59
RTFM, n00b!

Quote from: manual
The lighting source is at infinite distance to make shadows simpler, so if it points at the camera, it will not be visible
Title: Re: SetLightingAngle()
Post by: GarageGothic on Sat 01/04/2006 12:11:47
Well, technically you're not supposed to SEE the light source itself, that must be handled as an object. However, if you set the optional int lensflare value to 1, you will get an effect of the light shining into the camera.
Title: Re: SetLightingAngle()
Post by: Gilbert on Sat 01/04/2006 13:04:06
RTFM N00BS!

How'd you use a light source if you didn't initialise it first?

Light* disco = Light.RequestInstance();
disco.Set(brightness, r, g, b, eOval, tilt, ox, oy, oz);
disco.SetLightAngle(angle);
Title: Re: SetLightingAngle()
Post by: Radiant on Sat 01/04/2006 15:46:28
Quote from: Gilbot V7000a on Sat 01/04/2006 13:04:06
How'd you use a light source if you didn't initialise it first?

Oh please. Of course I initialized it. What is this, the beginners tech forum? The only difference is that I'm using CreateFromModel() rather than RequestInstance().


Quote
Well, technically you're not supposed to SEE the light source itself, that must be handled as an object.

Thanks, good suggestion. I've now covered the lightsource with an object that looks like one. The tricky part is making it semi-transparent (because otherwise it'll block out the light). DisableInteraction() seems to do the trick, though.
Title: Re: SetLightingAngle()
Post by: Hammerite on Sat 01/04/2006 16:51:05
where can i discover this beta of WMGS??
Title: Re: SetLightingAngle()
Post by: Pumaman on Sat 01/04/2006 20:10:14
What you're looking for is SetLightSourceRotation; SetLightingAngle is for something completely different.
Title: Re: SetLightingAngle()
Post by: Hammerite on Sat 01/04/2006 20:33:55
no im not.
im looking for the beta, give it to me NOW!!!!
Title: Re: SetLightingAngle()
Post by: Hammerite on Sat 01/04/2006 21:23:19
uh... kinda embarassing now...
heh hehehhe.
Title: Re: SetLightingAngle()
Post by: strazer on Sun 02/04/2006 01:41:03
Happy April Fools' Day