quote: Originally posted by VbGamerBrox
As a total newb to Managed DirectX, it would be nice to have some basic tutorials on how to create a device, set up lighting, creating a mesh (both from .x and using the vertex buffer) and how to render..
I Have gotten quite far in a really short time, but there are still lots of things i have problems with, for example the vertexbuffer in MDX...
Private Sub SetupGeo() Dim VB As VertexBuffer Dim mobjVerts(3) As Direct3D.CustomVertex.PositionTextured mobjVerts(0) = New Direct3D.CustomVertex.PositionTextured(0, 0, 0, 0, 0) mobjVerts(1) = New Direct3D.CustomVertex.PositionTextured(1, 0, 0, 1, 0) mobjVerts(2) = New Direct3D.CustomVertex.PositionTextured(1, 1, 0, 1, 1) mobjVerts(3) = New Direct3D.CustomVertex.PositionTextured(0, 1, 0, 0, 1) VB = New Direct3D.VertexBuffer(mobjVerts(0).GetType, 4, D3DDevice, 0, mobjVerts(0).Format, Direct3D.Pool.Managed) VB.SetData(mobjVerts, 0, Direct3D.LockFlags.None) Erase mobjVerts End Sub
|