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.

Dark GDK / [Need help] Moving 3d object (model)

Author
Message
Serengeor
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location: Lithuania/lietuva
Posted: 19th Jan 2009 08:26

It seems i cant mode anything and when i compile and run
i press the button my camera moves slower.
If you can show me a good way to move models.

GDK Developer since now
RancidRat
16
Years of Service
User Offline
Joined: 19th Feb 2008
Location:
Posted: 19th Jan 2009 12:59
you have a float value model1X = 400.0f; that you + 10 in the loop, but you never apply this to the object

e.g.
model1X += 10.0f ;
dbPositionObject ( 101, model1X, model1Y, model1Z );

Now your object is being updated!

but why not use dbMoveObject?

if (dbUpKey()) dbMoveObject(101,1);

Also...
Is there any particular reason that you are using windows.h?
Serengeor
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location: Lithuania/lietuva
Posted: 19th Jan 2009 14:06
i think is because i used

thnx for reply
This forum is so helpful


GDK Developer since now
Serengeor
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location: Lithuania/lietuva
Posted: 19th Jan 2009 14:22
When i compiled with code you gave i got error with number 6


GDK Developer since now
CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 20th Jan 2009 14:41
Send the code and the error message, please.
Serengeor
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location: Lithuania/lietuva
Posted: 20th Jan 2009 15:41
after I've got the Error I opened other instance of MSVC 2008 express edition and compiled it with it it didn't gave me the error.


GDK Developer since now

Login to post a reply

Server time is: 2024-09-30 15:23:59
Your offset time is: 2024-09-30 15:23:59