HeavenWu / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

Billboard calculation wrong in Matrix class #740

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi! 
It seems that the Billboard algorithm mixes up two vectors.
The Billboard matrix for following parameters should be Identity:
Obj Position      = (0,0,0)
Cam Position      = (0,0,-30)
Cam UpVector      = (0,1,0)
Cam ForwardVector = (0,0,1)

...but it is not! The first and second row are interchanged.
So the first row must be the Final vector and the second row the Crossed vector.

Cheers
Karol

Original issue reported on code.google.com by k...@ventuz.com on 17 Nov 2010 at 4:30

GoogleCodeExporter commented 8 years ago

Original comment by josh.petrie on 4 Dec 2010 at 9:54

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1798.

Original comment by Mike.Popoloski on 12 Dec 2010 at 2:08