Dynamic Sun - Page 2

Dynamic Sun

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Dynamic Sun

Post by knorke »

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.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Dynamic Sun

Post by zerver »

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.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Dynamic Sun

Post by knorke »

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.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Dynamic Sun

Post by Beherith »

How would you rotate the feature?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Dynamic Sun

Post by FLOZi »

Knorke's flower is probably a unit, but;

Spring.SetFeatureDirection
( number featureID, number x, number y, number z ) -> nil

?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Dynamic Sun

Post by knorke »

yea its a unit.
I would just rotate the blossom/leave pieces though, if the whole plant rotates that might look a bit strange. :shock:
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Dynamic Sun

Post by smoth »

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.
will it be disabled by default? if not, can I get the tag to disable it on my maps please?
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Dynamic Sun

Post by zerver »

No worries, is disabled already
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Dynamic Sun

Post by smoth »

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
Post Reply

Return to “Engine”