There are so many things that you could be doing wrong... I can only give you a few hints since I don't actually use D3D8 but A few thoughts come to mind
Have you actually created any vertices?
Are your vertices ordered correctly? (ie: clockwise order)
Have you got the correct number of vertices to render?
What about your render settings... you need to set lighting etc... to render something in 3D.
My advice would be to try to load a .x file... something that you know will work and then test your render settings and see if you can draw something on the screen. If not then you need to fix that first before you start fiddling with making a mesh yourself.
Automation error... What do you mean automation error you %#@*&!$ thing!
yes yes,, using the drawing primitives function instead of the mesh.drawsubset,the object is visible. All is correct. But the thing now is that i want to create a custom mesh and not use the loadFormX function.
i tried to test if the custom vertexes are set to the buffer or not with the follow lines...
Dim vertex() As CUSTOMVERTEX, x As Long
D3DXMeshVertexBuffer8GetData mesh, 0, buffer.vertices * 24, 0, vertex(0)
For x = 0 To UBound(vertex)
and yes, all the values for my custom vertexes were correctly set.
But then... why the "mesh.DrawSubset 0" dont paint the object ?