- Home /
Cutting holes with projectors
Hello,
was going to put this in the forum... but after several attempts it didn't seem to add the thread...
Anyway
I'm working on a project which I'm hoping to export to Android and IOS (though currently don't have resources to export to IOS), i'm using unity free.
I'm trying to get a spotlight effect on-click; so you can click around the screen and light up areas under the mouse momentarily. I've used spotlights to get this effect, but it's not very pretty or efficient and you get dodgy shadow and shading problems (which amplify on mobile)
I'm now trying an alternative method; the scene is lit, with a black overlay on a different depth in which you cut holes to get the same effect. it works really well (perfect it is not, but I'm pretty happy with it). I'm using the shaders from [URL="http://forum.unity3d.com/threads/35808-Projecting-a-hole?p=289374&viewfull=1#post289374"]This Post[/URL]. I've simply changed the colour of the "receiver" shader to black (pretty much the extent of my shader knowledge right here) and added a radial alpha gradient.
My problem is that after tests it doesn't seem to work on android (and I'm guessing the same will be true on IOS too). I would like to learn shaders eventually but my current knowledge doesn't allow me to know why it doesn't work or how to go about fixing it (or even if it can be at all). If I can't get this method to work I'm all out of ideas on how to get this effect at all. :(
Thankyou, I really hope you can help :-?
Why aren't you using projectors to do this? $$anonymous$$ore specifically, the light blob projector? (Assets->Import Package->Projectors)
I download the code form the url and it works fine in my phone (uinty 4.0 android 4.2)
FYI. to get faster answers. make your question $$anonymous$$UCH, $$anonymous$$UCH, $$anonymous$$UCH shorter.
All you needed to say was: "I tried this package _ and it didn't work, any ideas?"
Your answer
Follow this Question
Related Questions
How to render projector in front of walls but behind player? 1 Answer
Can a simple viewshed analysis be done with a projector? 1 Answer
Access Unity Projector Buffer 0 Answers
I want to create Google Earth style Image Overlays (projections) 0 Answers
Shader to ignore post processing effects 0 Answers