Du hast in der View-Matrix nur Rotation und Translation?! Warum hast du das nicht gleich gesagt … damit meine Formel nicht im Papierkorb landet, haue ich sie trotzdem hier rein, vielleicht nützt sie ja irgendwem noch einmal irgendwann in der Zukunft:
Mit \($\mathbf a_i = (a_{1i} \ a_{2i} \ a_{3i})^{\mathrm T}$\) als Spaltenvektor, sowie dem Skalar \($m = -(\mathbf a_1 \times \mathbf a_2)^*\mathbf a_3$\) erhalten wir:
\($$\left(\!\!\begin{array}{ccc|c}a_{11} & a_{12} & a_{13} & a_{14} \\ a_{21} & a_{22} & a_{23} & a_{24} \\ a_{31} & a_{32} & a_{33} & a_{34} \\ \hline 0 & 0 & 0 & 1 \end{array}\!\!\right)
= \left(\!\!\begin{array}{ccc|c} \frac{a_{22}a_{33} - a_{23}a_{32}}{m} & \frac{a_{13}a_{32} - a_{12}a_{33}}{m} & \frac{a_{12}a_{23} - a_{13}a_{22}}{m} & 0 \\ \frac{a_{23}a_{31} - a_{21}a_{33}}{m} & \frac{a_{11}a_{33} - a_{13}a_{31}}{m} & \frac{a_{13}a_{21} - a_{11}a_{23}}{m} & 0 \\ \frac{a_{21}a_{32} - a_{22}a_{31}}{m} & \frac{a_{12}a_{31} - a_{11}a_{32}}{m} & \frac{a_{11}a_{22} - a_{12}a_{21}}{m} & 0 \\ \hline 0 & 0 & 0 & 1\end{array}\!\!\right)
\cdot \left(\!\!\begin{array}{ccc|c} 1 & 0 & 0 & a_{14} \\ 0 & 1 & 0 & a_{24} \\ 0 & 0 & 1 & a_{34} \\ \hline 0 & 0 & 0 & 1\end{array}\!\!\right)$$\)Das klappt so mit beliebigen affinen Abbildungen. Naja, ich hätte vielleicht einfach mal den Thread lesen sollen, anstatt einfach nur ein paar Posts zu überfliegen und sofort zum Rechenschieber zu greifen. ;)
(gelöst) Weltrotation rückgängig machen
Für Fragen zu Grafik APIs wie DirectX und OpenGL sowie Shaderprogrammierung.
Zurück zu „Grafikprogrammierung“
Gehe zu
- Aktuelles
- ↳ News und Ankündigungen
- Programmierung
- ↳ Grafikprogrammierung
- ↳ Programmiersprachen, Quelltext und Bibliotheken
- ↳ Algorithmen und Datenstrukturen
- Spieleentwicklung
- ↳ Allgemeine Fragen der Spieleentwicklung
- ↳ Gamedesign und Kreatives
- ↳ Autorensysteme und Toolkits
- ↳ Artikel, Tutorials und Materialien
- Community
- ↳ Allgemeines Talk-Brett
- ↳ Vorstellungsbereich
- ↳ Zusammenarbeit
- ↳ ZFX Action
- ↳ ZFX Action '26'1
- ↳ ZFX Action '25
- ↳ ZFX Action '24 - Winter
- ↳ ZFX Action 23'1
- ↳ ZFX Halloween'21 Action
- ↳ ZFX Action XVIII
- ↳ ZFX Action XVII
- ↳ ZFX Action XVI
- ↳ ZFX Action XV
- ↳ ZFX Action XIV
- ↳ ZFX Action XIII
- ↳ ZFX Action XII
- ↳ ZFX Action XI
- ↳ ZFX Action X
- ↳ ZFX Action IX
- ↳ ZFX Action VIII
- ↳ ZFX Action 7
- ↳ ZFX Action 6
- ↳ ZFX Action V
- ↳ ZFX Action 4
- ↳ ZFX Action III
- ↳ ZFX Action Round 2
- ↳ ZFX Action 1
- Links
- ↳ ZFX-Archiv
- ↳ Developia-Archiv
- ↳ Assimp
- ↳ ZFX auf Facebook