Horde3D http://horde3d.org/forums/ |
|
Directed light and darkness http://horde3d.org/forums/viewtopic.php?f=2&t=2257 |
Page 1 of 1 |
Author: | dPGames [ 13.04.2014, 19:54 ] |
Post subject: | Directed light and darkness |
Hi there. With h3dAddJointNode i can create a spot light. It looks like Code: h3dAddLightNode( H3DRootNode, "Light1", 0, "LIGHTING", "SHADOWMAP" ); How can i create a directed light (for player's flashlight for example)? And how can i make ideal darkness? |
Author: | Irdis [ 13.04.2014, 20:09 ] |
Post subject: | Re: Directed light and darkness |
Horde currently does not support directional lights, you will have to implement them using shaders (and probably some modifications/hacking in the engine). Only spotlights and omni(point) lights. Horde uses some sort of global illumination. If you open any pipeline.xml file, you will see a link to globalIllumination.material.xml. This material lights the whole scene with the texture, specified in the material. You can remove this link from pipeline and you'll get an absolutely dark scene:) P.S. And you currently attach the light to the Root node of the scene, not to your created joint. |
Author: | dPGames [ 13.04.2014, 20:11 ] |
Post subject: | Re: Directed light and darkness |
Oh, thanks a lot! I edit the pipeline... and... dark comes now........................... ![]() |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |