roxaz wrote:also it seems there are issues with rendering to win32 form.. or its something i dont know. Anyway - camera does not receive any user input.
roxaz wrote:question regarding inheritance - have you seen Irrlicht.NET (discontinued wrapper)? It does not use any of these tricky inheritor classes. It seems rather simple solution.
Vertex3D v = (Vertex3D)meshBuffer.Vertices; // this is OK only if meshBuffer.VertexType == VertexType.Standard
For z As Integer = 0 To mesh.MeshBufferCount - 1
Dim mb As MeshBuffer = mesh.GetMeshBuffer(z)
dim indlist() as ushort = ctype(mb.Indices, ushort())
Dim vertlist() as vertex3d = ctype(mb.vertices, vertex3d())
'loop through vertlist and convert to jvectors
'For Each vert As Vertex3D In vertlist
' dim vec as New JVector(vert.Position.x, vert.position.y, vert.Position.z)
'dim trivert as New JOctree.TriangleVertexIndices(indlist(0), indlist(1), indlist(2))
dim plainmesh as Mesh = mesh.GetMesh(0)
Dim mb As MeshBuffer = plainmesh.GetMeshBuffer(0)
Users browsing this forum: MSNbot Media and 1 guest