Moin Leute
Vor ein paar Tagen bin ich in diesem Forum auf einen Beitrag von David Scherfgen gestoßen,
der aussagte, man sollte die World Matrix nicht zu oft ändern, aufgrund der ständigen
neuen Aufrundungen und es könnte gezeichnete Dinge deformieren. Dies kam mir bekannt vor
denn in meiner Scene habe ich das Problem das dauerhaft die Kanten sich wie neu setzen, wie
wandernde Würmchen. Auf der Suche nach der Lösung für das Problem habe ich auf MSDN
von Microsoft den Beitrag für die World Transform ( DirectX9 ) durchgelesen und am Ende
kam diese Info:
Note Direct3D uses the world and view matrices that you set to configure several internal data structures. Each time you set a new world or view matrix, the system recalculates the associated internal structures. Setting these matrices frequently-for example, thousands of times per frame-is computationally time-consuming. You can minimize the number of required calculations by concatenating your world and view matrices into a world-view matrix that you set as the world matrix, and then setting the view matrix to the identity. Keep cached copies of individual world and view matrices so that you can modify, concatenate, and reset the world matrix as needed. For clarity, in this documentation Direct3D samples rarely employ this optimization.
#mce_temp_url#
Scheinbar habe ich genau dieses Problem. Allerdings verstehe ich leider nicht, wie ich dieses Problem umgehen kann.
Denn zum zeichnen muss ich doch die Welt Matrix setzen, wie soll ich das denn anders machen ?
Mfg.