Hello!
I have a 3D model with colors and textures.
But when I show it in Blitz, the most of the colors don't appear! My code:
Type boter
Field name$
Field file$
Field dsrc$
Field model
End Type
[...]
player.boter = New boter
dfile = ReadFile(mybot$)
player\dsrc$ = mybot$
player\name$ = ReadLine(dfile)
player\file$ = ReadLine(dfile)
CloseFile dfile
cam = CreateCamera()
player\model = LoadMesh(path$+"GFX\3D\"+player\file$)
PositionEntity player\model,0,0,5
Cls
UpdateWorld
RenderWorld
Text 0,0,player\name$
Flip
WaitKey
End
My model is in .x format. Can you help me?
I have a 3D model with colors and textures.
But when I show it in Blitz, the most of the colors don't appear! My code:
Type boter
Field name$
Field file$
Field dsrc$
Field model
End Type
[...]
player.boter = New boter
dfile = ReadFile(mybot$)
player\dsrc$ = mybot$
player\name$ = ReadLine(dfile)
player\file$ = ReadLine(dfile)
CloseFile dfile
cam = CreateCamera()
player\model = LoadMesh(path$+"GFX\3D\"+player\file$)
PositionEntity player\model,0,0,5
Cls
UpdateWorld
RenderWorld
Text 0,0,player\name$
Flip
WaitKey
End
My model is in .x format. Can you help me?