I am currently making a horror game for my friends and I, I’m using a spotlight as a flashlight but the light itself isnt showing up on the ground or objects and when it does it looks pixely, is there any way to tackle this without subdividing everything to hell? - Dale
Hello Dalewhibley,
Could you show us an example (image or blend file) ?
When you create a spot light (in GLSL mode), it functions well… The pixely effect is a problem with shadow normally (stencil buffer), but with lights… i don’t know…
There is nothing between you light and objects when you see the problem ?
Here is a simple exampe of spotlight :spot.blend (468 KB)
Try changing the spot to variable, or back to simple, opposite of whatever wasn’t working for you. Change the size to a more sharper or less sharper beam.
Change the buffer quality and enable variance shadow. That will improve the resolution and smooth it out.
@@Dalewhibley
Sorry …I didn’t test enough, now I see what you meant. When we unwrap the object to give a texture, it changes dramatically.I have done what MrPutuLips suggested to, and nothing change .
Why is there no shadow on the textured wall?
Why is there no shadow on the textured wall?
That is what I asked myself, and the wall appears only half polygon lit .
Hm…? I just tried chafari’s file and unwrapped a texture - the result’s fine for me…? What graphics card are you both (chafari and Dalewhibley) using? Have you tried updating the drivers?
Hm…? I just tried chafari’s file and unwrapped a texture - the result’s fine for me…? What graphics card are you both (chafari and Dalewhibley) using? Have you tried updating the drivers?
Well, I’m not sure if the promblem was (in my case) that I wrapped the object, but never asigned a texture from the material editor. Now it works ok.
haha thank you all but im still having problems getting the light to show up anywhere; there is absolutely zero light on the ground and the texture on my wall is fully visible but is bright so even in pitch black you can see it (and again you cant see the spotlight anywhere) its ok if you cant help but if you can that would be great. I’ve tried most of the suggestions above and now im stumped
haha thank you all but im still having problems getting the light to show up anywhere
Have you not parented the spot light with the camera or the the player ?. We need to have the control of moving the flashlight where we want. That second image, is what you see when pressed P ?.
Hi, try this blend file
shadow_and_spotlight_test.blend (787 KB)
If it doesn’t look like that picture, then I don’t think your graphics card supports GLSL materials.
There are other ways to get a spotlight effect. Maybe you could use a black plane in front of the camera with an alpha hole. I think i’ve seen that done before, but it may not look as good.
Problem solved… I need a new computer :no:
What is your gpu?
If you can update the driver, or replace a missing driver that can fix this issue occasionally.
Detecated gfx?
If you have a pci-e slot or better just pop in a new video card.
You can also get a pretty good flashlight effect by just using an alpha plane in front of the camera
Made a little demo where you can rotate with the arrow keys.
Hope it helps, but definitely try what PluePrintRandom said.
Attachments
shadow_and_spotlight_test5.blend (1.07 MB)