SetLightingAngle()

Started by Radiant, Sat 01/04/2006 11:49:50

Previous topic - Next topic

Radiant

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?

SSH

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
12

GarageGothic

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.

Gilbert

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);

Radiant

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.

Hammerite

where can i discover this beta of WMGS??
i used to be indeceisive but now im not so sure!

Pumaman

What you're looking for is SetLightSourceRotation; SetLightingAngle is for something completely different.

Hammerite

no im not.
im looking for the beta, give it to me NOW!!!!
i used to be indeceisive but now im not so sure!

Hammerite

uh... kinda embarassing now...
heh hehehhe.
i used to be indeceisive but now im not so sure!

strazer


SMF spam blocked by CleanTalk