Lua drawing of s3os borked

Lua drawing of s3os borked

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Lua drawing of s3os borked

Post by KDR_11k »

LUA widgets that draw images of the units (e.g. unit selection, idle cons, ...) draw s3os with their normals inverted for some reason. I don't know if the cause is hardcoded or part of the LUA but either script or engine writers should look into that because it just looks... weird.

Also it uses some weird method to determine how large to draw the unit (which messes the display up with e.g. CvC's drones and units with orbital weapons) instead of simply using the unit center as the center and the radius to determine the scale.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Change line 171 in gui_selbuttons.lua from gl.Culling(GL_FRONT) to gl.Culling(false) (thank you trepan :P). I've had the same issue, this will cause the usual issues with 3dos however.
Post Reply

Return to “Lua Scripts”