About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Multiple suns - Or why there is a directional light object missing?
Author Message
BlackHornet Offline
Member

Post: #1
Multiple suns - Or why there is a directional light object missing?
Hi Esenthel,

I wonder if it would be possible or a big thing to implement some sort of a Directional Light (next to pointlight and conelight) to be placed within a map.

I think of somebody is going to create a world like in the movie Pitch Black, having more than just one sun, in additional the rotation of this "map object" could be used as sun direction, instead of dealing with 2 angle parameters.
Otherwise if you have an idea of how to achieve this using current capabilities I would be very thankful smile

BlackHornet

Urbanity Online: http://www.facebook.com/pages/Urbanity-Online/162454237136358
Join the Esenthel IRC Channel @ Freenode: http://webchat.freenode.net/?channels=##Esenthel
09-12-2011 07:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #2
RE: Multiple suns - Or why there is a directional light object missing?
Additional sun/moons:
EsenthelEngineSDK\Tutorials\Source\Advanced\2 - Animation, Physics, Rendering\Rendering\04 - Astronomical Objects.cpp

Simple directional light:
Code:
void Render()
{
   Game.World.draw();
  
   switch(Renderer())
   {
      case RM_PREPARE:
      {
         LightDir(!Vec(0, -1, 0), Vec(1, 0, 0)).add();
         break;
      }
   }
}
09-12-2011 10:44 PM
Find all posts by this user Quote this message in a reply
BlackHornet Offline
Member

Post: #3
RE: Multiple suns - Or why there is a directional light object missing?
Ok, so one thing is cleared...thanks in advance.

But then in conjunction with Esenthel "Editor-Improving" having a directional light object in the editor would be nice too. Its not a problem to do this anymore (thanks Driklyn, i really must have overseen this tutorial...shame on me), but having an "official support" for this basic kind of element would be nice indeed smile

Urbanity Online: http://www.facebook.com/pages/Urbanity-Online/162454237136358
Join the Esenthel IRC Channel @ Freenode: http://webchat.freenode.net/?channels=##Esenthel
09-13-2011 07:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply