blitz 3d fliping direct x model
Blitz3D Forums/Blitz3D Programming/blitz 3d fliping direct x model
| ||
| Anyone have this problem? I made a directx model, loaded into blitz, and it's geo and uv's are inverted on the x axis. I reimported the model back into my 3d program and the model is correct. anyone run into this? |
| ||
| If your 3d program has the feature "Calculate all normals outside", try it. |
| ||
Yep. Use this before loading any directX models.LoaderMatrix ".x",-1,0,0,0,1,0,0,0,1 |
| ||
I tried this...Graphics3D 640,480
SetBuffer BackBuffer()
camera=CreateCamera()
light=CreateLight()
RotateEntity light,90,0,0
; Load mesh
LoaderMatrix ".x",-1,0,0,0,1,0,0,0,1
item=LoadMesh("0.x")
PositionEntity item,0,0,MeshDepth(item)*2
PositionEntity camera,0,0,0
RotateEntity item,0,180,0
While Not KeyDown( 1 )
RenderWorld
Flip
Wend
EndIs that how I'm supposed to use it. It doesn't seem to work for me. |
| ||
Got it to work, it's...LoaderMatrix "x",-1,0,0,0,1,0,0,0,1 |