2025-07-02 23:22 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006319Spring engineGeneralpublic2019-11-02 15:29
Reporterlhog 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
Product Version104.0 +git 
Target VersionFixed in Version 
Summary0006319: Incorrect view/projection matrices in DrawWorld() on develop
DescriptionI don't think matrices stack is set correctly for DrawWorld on develop
Steps To Reproducefunction widget:DrawWorld()

local m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15, m16 = gl.GetMatrixData(GL.MODELVIEW)
Spring.Echo("MV", m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15, m16)
local p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16 = gl.GetMatrixData(GL.PROJECTION)
Spring.Echo("PJ", p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16)

end

[f=0212038] MV, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1
[f=0212038] PJ, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, -1, 0, -1, -1, 0, 1
TagsNo tags attached.
Checked infolog.txt for ErrorsYes
Attached Files

-Relationships
+Relationships

-Notes

~0020176

Kloot (developer)

Last edited: 2019-10-11 22:44

View 2 revisions

At this point the matrix stack only exists to make porting of widgets using gl.{Push,Mult,Pop}Matrix somewhat easier (they can call gl.GetMatrixData(GL.*) to feed whatever matrix is on top to a shader), the engine largely does not manipulate it. The camera transforms can be obtained with gl.GetMatrixData("view") etc.

~0020180

lhog (reporter)

This is a bit inconsistent, but indeed can be worked around.
+Notes

-Issue History
Date Modified Username Field Change
2019-10-11 19:18 lhog New Issue
2019-10-11 22:40 Kloot Note Added: 0020176
2019-10-11 22:44 Kloot Note Edited: 0020176 View Revisions
2019-10-12 01:58 lhog Note Added: 0020180
2019-11-02 15:29 Kloot Status new => closed
2019-11-02 15:29 Kloot Resolution open => no change required
+Issue History