Andr3wHur5t Posted July 3, 2013 Share Posted July 3, 2013 Hi, I am using LE3 with c++. I programmatically made a spotlight which I want it to appear on all surfaces but it only appears to show on non-lightmapped surfaces. I’ve messed with the material settings of the lightmapped surfaces, and the light itself but that didn’t seem to help. Can someone help me out??? Thanks in advanced Quote Tools: AC3D | 3D Canvas(pro) | Texture Maker(pro) | Genetica(basic) | 3D World Studio | Fragmotion |Leadwerks 2 | XNA 4 | Visual Studio 2010 Professional | XCode 5.x |UU3D Pro Programing & Scripting Languages: C |C++ | C# | Obj-C | LUA | Javascript | PHP | Ruby Link to comment Share on other sites More sharing options...
Rick Posted July 3, 2013 Share Posted July 3, 2013 I'm not sure if there is a way to calculate lighting on lightmapped surfaces from code but that sounds like what you'd need in your situation. Of course that would only work with a static light. If your spotlight moves I don't think there is anything you can do to have it move real-time and show correctly on a lightmapped shader surface. Quote Link to comment Share on other sites More sharing options...
Andr3wHur5t Posted July 3, 2013 Author Share Posted July 3, 2013 Im basicly trying to make a flashlight for my player, is there another approach that might work? using decals or somthing? Quote Tools: AC3D | 3D Canvas(pro) | Texture Maker(pro) | Genetica(basic) | 3D World Studio | Fragmotion |Leadwerks 2 | XNA 4 | Visual Studio 2010 Professional | XCode 5.x |UU3D Pro Programing & Scripting Languages: C |C++ | C# | Obj-C | LUA | Javascript | PHP | Ruby Link to comment Share on other sites More sharing options...
Josh Posted July 3, 2013 Share Posted July 3, 2013 There is an undocumented Surface::Extract() command. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
xtreampb Posted July 3, 2013 Share Posted July 3, 2013 yay more undocumented API commands... Quote bool Life() { while(death=false) { if(death==true) return death; } } I have found the secret to infinite life Did I help you out? Like my post! Link to comment Share on other sites More sharing options...
Josh Posted July 3, 2013 Share Posted July 3, 2013 They're considered "extra". The simple answer is this is presently unsupported. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
YouGroove Posted July 3, 2013 Share Posted July 3, 2013 yep a texture projection , no need to calculated anything, that's way lot of games do for flashLight. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted July 4, 2013 Share Posted July 4, 2013 I did these in Blitz3D even though they weren't an official feature. It's definitely possible with the Surface commands. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Andr3wHur5t Posted July 4, 2013 Author Share Posted July 4, 2013 Texture projection it is Thanks everyone for your help Quote Tools: AC3D | 3D Canvas(pro) | Texture Maker(pro) | Genetica(basic) | 3D World Studio | Fragmotion |Leadwerks 2 | XNA 4 | Visual Studio 2010 Professional | XCode 5.x |UU3D Pro Programing & Scripting Languages: C |C++ | C# | Obj-C | LUA | Javascript | PHP | Ruby Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.