Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / HELP Please - putting 3d models from darkmatter into darkbasic

Author
Message
bigbrother 2000
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: UK
Posted: 15th Oct 2003 17:09
Hi everyone!, i just bought darkmatter and have being trying to get the 3d models on screen, but this seems harder than i thought. i have managed to get them on the screen but there are problems, if it is a person and i load the move object, the person does not use the walk animation they are just static, if i load a vehicle the wheels are not attatched to the body of the car and the vehicle is facing the screen, instead of viewing the back of vehicle like in most games. Can anyone please help, has anyone else had this sort of probelm, thanks everyone!
Pal
21
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 15th Oct 2003 18:02
the person is static because u din't append the walk animation data into it. and yes, the car will face like that, use yrotate object objnum,180 to get the work done

I am da man! Beware of my LAZER EYES!
bigbrother 2000
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: UK
Posted: 15th Oct 2003 19:06
Thanks pal, i found that i was loading a 3ds object in and not .x, so i changed it and the animation is there, however very slow - it takes around a minute for the person to do one step animation!, anyone any ideas of how to get the animation the same speed as in the darkmatter viewer?
Pal
21
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 15th Oct 2003 20:32
use set object speed command
the syntax is

SET OBJECT SPEED objnum,speed

hope it helped

I am da man! Beware of my LAZER EYES!
bigbrother 2000
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: UK
Posted: 15th Oct 2003 21:13
that worked fine, sounds like someone's done this before lol, i'll be glad when i can do this properly and help other people out. the person walks now, but you can tell its looping, because every other step the model seems to restart itself, and therefore is not a nice continuous flow/walk, but i doubt anything will solve that one lol, thanks for your help pal
Pal
21
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 16th Oct 2003 14:44
naa nething cannot solve that prob. its a fault in model creation. when makin an animated model we should stop the animation like walk animations at the position where it begins from. but that really has a solution

make a copy of that model. now open it in a model editor even free version of 3d canvas may do. now i think in ur walk animation, there may be two points, once the person lifts his left leg and brings it back again, then he lifts his right leg and brings it back again, now u shld stop the animation and cut off all further frames. so it would be smooth. i just guessed this plan out, see if it works

I am da man! Beware of my LAZER EYES!
Baneblade
21
Years of Service
User Offline
Joined: 26th Feb 2003
Location: Ireland
Posted: 16th Oct 2003 17:14
You should also check out the DB help files, under Basic3D

There are commands like:
TOTAL OBJECT FRAMES() will return the last frame number of the specified 3D object
OBJECT LOOPING() will return a one if the specified 3D object is looping its animation
OBJECT FRAME() will return the current animation frame of the specified 3D object
OBJECT SPEED() will return the current animation speed of the specified 3D object
All are v.helpfull: The iced demo will show you all the animation appended togeather
bigbrother 2000
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: UK
Posted: 26th Oct 2003 10:47
thanks for your help, seems like nothing can solve the problem which is a shame because it spoils it esp if its a person walking and theres a little pause and then repeats the animation, on the vehicles i shortened the number of frames so the pause frame would not be there, but it still paused and started again. i wonder if darkmatter 2 models have the same problem or if they loop correctly.

Login to post a reply

Server time is: 2024-11-25 14:54:31
Your offset time is: 2024-11-25 14:54:31