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 / locking camera to object or vise versa

Author
Message
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 4th Jun 2008 03:50
whats the best way to lock the camera to your character to produce that fps sight of the gun and your characters arms

The South Will Rise Again Software Development Comp.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 4th Jun 2008 04:02
you mean lock your character to your Camera.
Loom in the information thing.

It is something like dbLockObjectOn (); this makes the object glued where it is to the screen.

Other than that-- No idead Something like dbLockObjectToobjectOrientation ();

~~Its not about what you know, its about how you figure it out.~~
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 4th Jun 2008 04:17 Edited at: 4th Jun 2008 04:17
lockobjecton makes your characters feet go in the air when you look down when i tried it

The South Will Rise Again Software Development Comp.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 4th Jun 2008 04:31
you have to position the object first before you lock the object--

dbPositionObject ( 1, 12.0f, 2.0f, -5.0f );

dbLockobjectOn ( 1 );

Or else it will not be visible. So position it the way you want to THEN do lock object On.

Good luck

~~Its not about what you know, its about how you figure it out.~~
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 4th Jun 2008 21:37
Could you show me a code because it still doesnt show my guy?

The South Will Rise Again Software Development Comp.
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 4th Jun 2008 21:38
If you're new to C++/DarkGDK, I suggest you try a 2D game. There's a lot more math involved in a 3D game.

If you can do any models for FW, reply to the FleetWars thread.

Click here!
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 4th Jun 2008 22:57
No i no alot of c++ and c# im just new to dark gdk. and the damn dblockobjecton isnt working!

The South Will Rise Again Software Development Comp.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 4th Jun 2008 23:15
Here is a quick way to figure it out--

make a new project
before the mainloop, add dbMakeObjectBox ( 1, 1.0f, 1.0f );
Before the mainloop, also add dbPositionObject ( 1, 1.0f, 1.0f, 1.0f );
In the mainloop, add dbLockObjectOn ( 1 );
Also add dbControlCameraUsingArrowKeys ( 0, 1.0f, 1.0f );

That should work.

~~Its not about what you know, its about how you figure it out.~~

Login to post a reply

Server time is: 2024-11-20 11:25:50
Your offset time is: 2024-11-20 11:25:50