That'd be great, but any chance you could just post it here - I'm sure it'd be a great help for anyone working on a modeller - esp the guys working on DeleD. Thanks
VANmesh will be the last app for a while, I have a big project planned for next year, but I have a lot to do first. I'm working on the GUI right now, then I can get onto adding features. I don't have any immediate plans to update any of the older apps - of course the more features that get added to DBPro the more I consider what is possible - for example projected texture grabbing, using a simple sprite and a source image (tested and it works, check the DBPro forum). It would make a great addition to VANseam because it'd let you grab a texture from any angle on an image then make it seamless in 1 app. However that'd mean a major overhaul to get it into DBPro - one day maybe
. I'm hoping that TGC add a propper interupt timer system, where you could specify a function or sub to be run every specified interval. Sorta like the Timer controls in VB, it'd let me give Tracker an overhaul and allow much better sound playback.
The memblock mesh format is real straightforward. For example, in VANmesh, I store the vert locations, normals, texturing etc in arrays, and the poly assignments are controlled by storing the vert numbers in an array too. You'd step through each polygon adding each vert in turn to a memblock. Check this code.
if memblock exist(1)=1 then delete memblock 1
make memblock 1,memlen
write memblock dword 1,0,338
write memblock dword 1,4,36
write memblock dword 1,8,(polys+1)*3
for pn=0 to polys
for vn=0 to 2
write memblock float 1,memstart,vert_x#(poly_verts(pn,vn))
write memblock float 1,memstart+4,vert_y#(poly_verts(pn,vn))
write memblock float 1,memstart+8,vert_z#(poly_verts(pn,vn))
write memblock float 1,memstart+12,vert_normal#(poly_verts(pn,vn),0)
write memblock float 1,memstart+16,vert_normal#(poly_verts(pn,vn),1)
write memblock float 1,memstart+20,vert_normal#(poly_verts(pn,vn),2)
write memblock dword 1,memstart+24,vert_col(poly_verts(pn,vn))
write memblock float 1,memstart+28,vert_UX#(poly_verts(pn,vn))
write memblock float 1,memstart+32,vert_UY#(poly_verts(pn,vn))
if mesh exist(1000)=1 then delete mesh 1000
make mesh from memblock 1000,1
if object exist(1000)=1 then delete object 1000
make object 1000,1000,1000
set object specular 1000,0
set object smoothing 1000,100
delete memblock 1
Be careful when making a memblock from a mesh though, some formats don't support vertice colours, although my internal data supports it anyway - VANmesh will let you colour the verts based on mask textures etc even if the original mesh did'nt support them.
My cats breath smells of cat food.