| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
|---|---|---|---|---|---|---|---|---|---|
| 0006319 | Spring engine | General | public | 2019-10-11 19:18 | 2019-11-02 15:29 | ||||
| Reporter | lhog | ||||||||
| Assigned To | |||||||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
| Status | closed | Resolution | no change required | ||||||
| Product Version | 104.0 +git | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0006319: Incorrect view/projection matrices in DrawWorld() on develop | ||||||||
| Description | I don't think matrices stack is set correctly for DrawWorld on develop | ||||||||
| Steps To Reproduce | function 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 | ||||||||
| Tags | No tags attached. | ||||||||
| Checked infolog.txt for Errors | Yes | ||||||||
| Attached Files |
| ||||||||
Notes |
|
|
Kloot (developer) 2019-10-11 22:40 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 (reporter) 2019-10-12 01:58 |
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 | 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 |


