2024-04-20 02:15 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004308Spring engineGeneralpublic2014-02-16 13:22
ReporterAnarchid 
Assigned TojK 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusresolvedResolutionfixed 
Product Version96.0.1+git 
Target VersionFixed in Version 
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
Attached Files

-Relationships
+Relationships

-Notes

~0012835

jK (developer)

there is it's just not on wiki

~0012836

Anarchid (reporter)

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 :|

~0012837

FLOZi (reporter)

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

~0012838

jK (developer)

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

-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
+Issue History