bump di bump.
I was wondering if there will also be a Spring.GetSunDirection(x,y,z)
to go along with Spring.SetSunDirection(x,y,z) ?
Or would one have to make its own sun travel formula so that sun direction is always known?
gl.GetSun () seems to use sun position rather then direction.
Dynamic Sun
Moderator: Moderators
Re: Dynamic Sun
DynSun will default to disabled in 0.83 to make sure the default config is suited for lower end systems. There are also some outstanding issues. I'll try to add the GetSunDirection though.
Re: Dynamic Sun
oh, i thought as long you shadows enabled then the sun/shadows would always be dynamic in 0.83.
Actually I was just wondering because I had modeled some flower and thought it would be a neat effect if it always turns towards the sun. So it is not really urgent to me.
It might have other, more serious uses though, like for the blob shadow widget or variable solar energy production.
Actually I was just wondering because I had modeled some flower and thought it would be a neat effect if it always turns towards the sun. So it is not really urgent to me.
It might have other, more serious uses though, like for the blob shadow widget or variable solar energy production.
Re: Dynamic Sun
How would you rotate the feature?
Re: Dynamic Sun
Knorke's flower is probably a unit, but;
Spring.SetFeatureDirection
( number featureID, number x, number y, number z ) -> nil
?
Spring.SetFeatureDirection
( number featureID, number x, number y, number z ) -> nil
?
Re: Dynamic Sun
yea its a unit.
I would just rotate the blossom/leave pieces though, if the whole plant rotates that might look a bit strange.
I would just rotate the blossom/leave pieces though, if the whole plant rotates that might look a bit strange.
Re: Dynamic Sun
will it be disabled by default? if not, can I get the tag to disable it on my maps please?zerver wrote:DynSun will default to disabled in 0.83 to make sure the default config is suited for lower end systems. There are also some outstanding issues. I'll try to add the GetSunDirection though.
Re: Dynamic Sun
No worries, is disabled already
Re: Dynamic Sun
I was asking because I don't want to have to rerelease these maps AGAIN just to disable this. They use prbaked lighting in a way that is sun-dependant.
I think it is a neat feature I just do want it on those maps
I think it is a neat feature I just do want it on those maps