Horde3D

Next-Generation Graphics Engine
It is currently 19.03.2024, 10:43

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 13.04.2014, 19:54 
Offline

Joined: 08.04.2014, 18:23
Posts: 9
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?


Top
 Profile  
Reply with quote  
PostPosted: 13.04.2014, 20:09 
Offline

Joined: 17.11.2009, 17:00
Posts: 205
Location: Russia, Moscow
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.


Top
 Profile  
Reply with quote  
PostPosted: 13.04.2014, 20:11 
Offline

Joined: 08.04.2014, 18:23
Posts: 9
Oh, thanks a lot! I edit the pipeline... and... dark comes now........................... :D


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group