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?
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
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.
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);
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.
where can i discover this beta of WMGS??
What you're looking for is SetLightSourceRotation; SetLightingAngle is for something completely different.
no im not.
im looking for the beta, give it to me NOW!!!!
uh... kinda embarassing now...
heh hehehhe.
Happy April Fools' Day