Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Game Programming > Managed DirectX > Direct3D Math: Vector3 vs. Matrix

Thread Tools Display Modes
Old 05-07-2005, 06:31 AM
ThePentiumGuy ThePentiumGuy is offline
Join Date: May 2003
Posts: 53
Default Direct3D Math: Vector3 vs. Matrix

Long time since I've been here.

I'm wondering what is the recommended thing to do: Vector3 Math or Matrix Math.

Vector3 Math:
dxDevice.Transform.View = Matrix.LookAtLH(CameraPos, CameraTarget, CameraUp)

Where you'd adjust the CameraPos / CameraTarget Vector3's to move the camera

Matrix Math:
dxDevice.Transform.View = Matrix.LookAtLH(some arguments)
dxDevice.Transform.View Matrix.Multiply(dxDevice.Transform.View, Matrix.YawPitchRoll(y,p,r))

-The Pentium Guy
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..