AggrorJorn Posted December 27, 2009 Share Posted December 27, 2009 File Name: Projection light File Submitter: Aggror File Submitted: 27 Dec 2009 File Updated: 27 Dec 2009 File Category: Lua Scripts This spot light lets you choose a projector map via an extra menu. By default it display the leadwerks logo. The material file contains this line: texture0="abstract::projectormap.dds" Click here to download this file Quote Link to comment Share on other sites More sharing options...
Michael Betke Posted December 27, 2009 Share Posted December 27, 2009 This is awesome. Very cool. Need to check it out after my holydays! Quote Pure3d Visualizations Germany - digital essences AAA 3D Model Shop specialized on nature and environments Link to comment Share on other sites More sharing options...
Wchris Posted October 10, 2010 Share Posted October 10, 2010 File Name: Projection light File Submitter: Aggror File Submitted: 27 Dec 2009 File Updated: 27 Dec 2009 File Category: Lua Scripts A simple Spotlight that projects a projection-map. Usage: Place files with the other light (not neccesary.) Use your own dds file for the projector-map.dss. Drag a projector spotlight on screen. Click here to download this file The link is broken i put a watch on this topic, just in case you come back Quote Windows 7 home - 32 bits Intel Quad Q6600 - nVidia GTX 460 1GB - 2 GB RAM Link to comment Share on other sites More sharing options...
AggrorJorn Posted October 11, 2010 Author Share Posted October 11, 2010 this 'projection light' isn't really nessecary any more since the point light supports a material file which can display the dds file you want. Quote Link to comment Share on other sites More sharing options...
Wchris Posted October 12, 2010 Share Posted October 12, 2010 this 'projection light' isn't really nessecary any more since the point light supports a material file which can display the dds file you want. Thank you, i had no idea how to do this. following your suggestion i found an example in the wiki TEntity light = CreatePointLight(15,0); MoveEntity (light, Vec3(0,5,0) ); SetShadowSoftness(light,2); SetShadowmapSize(light,512); TMaterial lightMaterial = CreateMaterial(); SetMaterialTexture(lightMaterial, LoadTexture("abstract::flashlight.dds")); PaintEntity(light,lightMaterial); i'll try it this evening Quote Windows 7 home - 32 bits Intel Quad Q6600 - nVidia GTX 460 1GB - 2 GB RAM Link to comment Share on other sites More sharing options...
AggrorJorn Posted October 12, 2010 Author Share Posted October 12, 2010 You don't have to make any script at all since the spotlight that comes with Leadwerks can do this for you already. Just drag a spotlight in the scene en go to its properties. There you can choose a material file. Use an image that you want like bars of a window for example. However if you still want to make it via your own scripts, just let me know. I''ll gladly help you out. Quote Link to comment Share on other sites More sharing options...
Wchris Posted October 13, 2010 Share Posted October 13, 2010 You don't have to make any script at all since the spotlight that comes with Leadwerks can do this for you already. Just drag a spotlight in the scene en go to its properties. There you can choose a material file. Use an image that you want like bars of a window for example. However if you still want to make it via your own scripts, just let me know. I''ll gladly help you out. Thank you Aggor, it's a relief to know you'r arround to provide help when we need it. I have another related question. Maybe there is a way to specify the spotlight should only cast light on specified entities ? if not, then i'm not sure how to do it. perhaps, disabling all entities and lights i don't want, do a renderlight with only the spotlight and wanted entities, then re-enable everything and let framework render the world ? Quote Windows 7 home - 32 bits Intel Quad Q6600 - nVidia GTX 460 1GB - 2 GB RAM Link to comment Share on other sites More sharing options...
AggrorJorn Posted October 13, 2010 Author Share Posted October 13, 2010 That is a tough one. I have no idea how to do that. It requires a little more knowledge about rendering lights inside the LE core. Quote Link to comment Share on other sites More sharing options...
Wchris Posted October 16, 2010 Share Posted October 16, 2010 You don't have to make any script at all since the spotlight that comes with Leadwerks can do this for you already. Just drag a spotlight in the scene en go to its properties. There you can choose a material file. Use an image that you want like bars of a window for example. However if you still want to make it via your own scripts, just let me know. I''ll gladly help you out. Hi Aggror, i tryed with the editor, but when i set my selector mat file nothing happens, my selector.dds is not projected. and if i go back to the light properties later the material property is not kept and empty again. here's my material and dds selector.zip and a screenshot Quote Windows 7 home - 32 bits Intel Quad Q6600 - nVidia GTX 460 1GB - 2 GB RAM Link to comment Share on other sites More sharing options...
macklebee Posted October 16, 2010 Share Posted October 16, 2010 The Spot light script that comes with LE does not inherently paint the light with the material selected. The material selected is applied to the default gmf model. So just add a new property to allow you to do this, like in this example: Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
AggrorJorn Posted October 16, 2010 Author Share Posted October 16, 2010 aw damn looks like macklebee beat me too it. I have uploaded mine to the download section again. http://leadwerks.com/werkspace/index.php?/files/file/173-projector-light/ Quote Link to comment Share on other sites More sharing options...
Wchris Posted October 16, 2010 Share Posted October 16, 2010 aw damn looks like macklebee beat me too it. I have uploaded mine to the download section again. http://leadwerks.com/werkspace/index.php?/files/file/173-projector-light/ Wow nice screenshot many thanks to you two got it working Quote Windows 7 home - 32 bits Intel Quad Q6600 - nVidia GTX 460 1GB - 2 GB RAM 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.