View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0004308 | Spring engine | General | public | 2014-02-11 17:49 | 2014-02-16 13:22 | ||||
Reporter | Anarchid | ||||||||
Assigned To | jK | ||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 96.0.1+git | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0004308: There should be a way to change sun direction by Lua. | ||||||||
Description | Currently 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. | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
Notes | |
jK (developer) 2014-02-14 00:41 |
there is it's just not on wiki |
Anarchid (reporter) 2014-02-14 19:03 |
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 (reporter) 2014-02-16 13:17 |
http://springrts.com/wiki/Lua_UnsyncedCtrl#Sun |
jK (developer) 2014-02-16 13:22 |
[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 |