Hi!
I have a problem with load objects, specially in Direct X models. Sometimes the compiler don´t load my model and other times the model haven´t got the textures. I believe that my programming skill are not very good.
This is the code:
sync on : sync rate 60 : hide mouse
if check display mode(1024,768,32)=1 then set display mode 1024,768,32
color backdrop rgb(128,128,128) ` Display the model against a gray backdrop
load object "MIKO.x",1 ` Load the DirectX model into object slot 1
set object speed 1,100 ` Sets the frame rate to 1 keyframe per 1 sync; 100% speed.
rotate object 1,90,180,180
position object 1,-5,-110,-240
set object light 1,0
set object cull 1,0
loop object 1 ` Use automatic looping animation for this object
do
i = (i + 1) mod 360 ` Cycles from 0-359 over and over again.
yrotate object 1,-i ` Rotate object 1 on its Y axis.
sync ` Render to the display
loop
This is the program:
Please help me!!
Thank you very much!!
I´m from Spain