View Issue Details

IDProjectCategoryView StatusLast Update
0006319Spring engineGeneralpublic2019-11-02 15:29
Reporterlhog Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
Product Version104.0 +git 
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

Activities

Kloot

2019-10-11 22:40

developer   ~0020176

Last edited: 2019-10-11 22:44

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.

lhog

2019-10-12 01:58

reporter   ~0020180

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

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