View Issue Details

IDProjectCategoryView StatusLast Update
0004308Spring engineGeneralpublic2014-02-16 13:22
ReporterAnarchid Assigned TojK  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version96.0.1+git 
Summary0004308: There should be a way to change sun direction by Lua.
DescriptionCurrently there is no way to change sun direction in Spring, be that by gadget or widget.

This means that games heavily utilizing specular shading will sometimes be left "in the dark" because of crazy map settings.

It is conceivable that some workaround could be implemented by games by creating "sun configs" for specific maps, but there is no known way to influence the sun at all right now, and the dynamic sun setting is almost uncontrollable.

Additionally, that means that time of day related mechanics cannot be implemented while looking pretty.

Even adding extra map dynamic lights won't do much here, because map's normal sun will still be present.

Something like Spring.SetSunDir(float x,float y,float z) would allow that issue to be rectified, as well as let games implement their own time of day mechanics.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

jK

2014-02-14 00:41

developer   ~0012835

there is it's just not on wiki

Anarchid

2014-02-14 19:03

reporter   ~0012836

Ohho:
./LuaUnsyncedCtrl.cpp:233: REGISTER_LUA_CFUNC(SetSunParameters);
./LuaUnsyncedCtrl.cpp:234: REGISTER_LUA_CFUNC(SetSunManualControl);
./LuaUnsyncedCtrl.cpp:235: REGISTER_LUA_CFUNC(SetSunDirection);


I guess now i'm the one who has to post it :|

FLOZi

2014-02-16 13:17

reporter   ~0012837

http://springrts.com/wiki/Lua_UnsyncedCtrl#Sun

jK

2014-02-16 13:22

developer   ~0012838

[S44]FLOZi: http://springrts.com/wiki/Lua_UnsyncedCtrl#Sun, posted to 4308 too - can be closed

Issue History

Date Modified Username Field Change
2014-02-11 17:49 Anarchid New Issue
2014-02-14 00:41 jK Note Added: 0012835
2014-02-14 19:03 Anarchid Note Added: 0012836
2014-02-16 13:17 FLOZi Note Added: 0012837
2014-02-16 13:22 jK Note Added: 0012838
2014-02-16 13:22 jK Status new => resolved
2014-02-16 13:22 jK Resolution open => fixed
2014-02-16 13:22 jK Assigned To => jK