Why every time i create a plain with
make object plain 1,100,100
do the z cords come out +/- 0.000004?
50.000000;50.000000;-0.000004;,
-50.000000;50.000000;0.000004;,
50.000000;-50.000000;-0.000004;,
-50.000000;50.000000;0.000004;,
-50.000000;-50.000000;0.000004;,
50.000000;-50.000000;-0.000004;;
as if the plain had been rotated ever so slightly.
I was going to tile a few plains together to mess around with different effects. But with this slight rotation i would get a horrible seam between tiles.
I was playing with memblocks at the time and was trying to teach myself how to use them, but i kept getting strange results for the z value of the verts. so i printed mesh to a file and it showed the z values above.
here is the code i used to look at the memblock data for the mesh
sync on
sync rate 0
make object plain 1,100,100
make mesh from object 2,1
make memblock from mesh 3,2
sync
text 10,10,"test:"+str$(get memblock size(3))
text 10,30,"fvf:"+str$(memblock dword(3,0))
text 10,50,"fvf size:"+str$(memblock dword(3,4))
text 10,70,"number of vertex:"+str$(memblock dword(3,8))
text 10,110,"x:"+str$(memblock float(3,12))+" y:"+str$(memblock float(3,16))+" z:"+str$(memblock float(3,20))
text 10,130,"nx:"+str$(memblock float(3,24))+" ny:"+str$(memblock float(3,28))+" nz:"+str$(memblock float(3,32))
text 10,150,"u:"+str$(memblock float(3,36))+" v:"+str$(memblock float(3,40))
n=32
text 10,170,"x:"+str$(memblock float(3,12+n))+" y:"+str$(memblock float(3,16+n))+" z:"+str$(memblock float(3,20+n))
text 10,190,"nx:"+str$(memblock float(3,24+n))+" ny:"+str$(memblock float(3,28+n))+" nz:"+str$(memblock float(3,32+n))
text 10,210,"u:"+str$(memblock float(3,36+n))+" v:"+str$(memblock float(3,40+n))
n=64
text 10,230,"x:"+str$(memblock float(3,12+n))+" y:"+str$(memblock float(3,16+n))+" z:"+str$(memblock float(3,20+n))
text 10,250,"nx:"+str$(memblock float(3,24+n))+" ny:"+str$(memblock float(3,28+n))+" nz:"+str$(memblock float(3,32+n))
text 10,270,"u:"+str$(memblock float(3,36+n))+" v:"+str$(memblock float(3,40+n))
text 10,290,"opx:"+str$(object position x(1))+" opy:"+str$(object position y(1))+" opz:"+str$(object position z(1))
sync
wait key
delete memblock 3
delete mesh 2
delete object 1