AggrorJorn Posted March 21, 2018 Share Posted March 21, 2018 Generating the lua snippets brings up several issues with the toc. The lights and probe API are placed inside the camera. Quote Link to comment Share on other sites More sharing options...
klepto2 Posted March 22, 2018 Share Posted March 22, 2018 I think that is correct. The Light and Probe classes are inherited from Camera class which makes perfect sence as both need the same behaviour as a camera. I am trying to generate a intellisense implementation by myself and i have come across this: https://www.leadwerks.com/documentation/API-Reference.xml This seems to contain all classes available in Leadwerks and is easier to parse than the toc.xml, Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
AggrorJorn Posted March 22, 2018 Author Share Posted March 22, 2018 Thanks for the reply klepto. Interesting to know it inherits. It makes sense for methods like SetRange, but there are also many camera specific methods that have nothing to do with lights like Zoom and SetSkybox. Are there inherited by the Light and probe? I currently process the entire toc.xml because I need more than just the classes. For instance I want to display available subclasses and methods. Quote Link to comment Share on other sites More sharing options...
klepto2 Posted March 22, 2018 Share Posted March 22, 2018 Well, sure the Skybox might not be needed for Lights, but is needed for Probes. In general the Camera provides functions to render the scene and this is needed for probes and shadowmaps. You get all the info with the API-reference.xml as well. the filename usually looks like this: API-Reference_Object_Entity_Camera_Light_DirectionalLight Strip the beginning and split by _, then you get the whole hierarchy of the class. In some cases there is a something like Object_Math_AABB where Math is not a real class, but if you register all class names before parsing the actual class you can identify these and ignore those 'pseudo' classes. Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Josh Posted March 22, 2018 Share Posted March 22, 2018 All the camera culling and rendering routines are used by lights when they render shadows. I did not want to create an extra camera entity associated with each light. 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...
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.