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 / Position camera strange problem

Author
Message
Sodevrom
19
Years of Service
User Offline
Joined: 10th Jul 2005
Location: Timisoara
Posted: 5th Aug 2005 00:04
Hello , I have a problem with the "position camera" function , hope you can help me . I have a function called move_camera()


I load a terrain (heightmap) and then in the main loop I have :



The problem is that the camera dosen't move . Why is that ????
If I use control camera using arrowkeys 0,1,1 it works , but I don't want to use this command becouse I want my camera to strafe , not rotate . Hope you can help me .

I am a Sodevrom team member .
Visit www.sodevrom.com for free games & software
And don't forget : We make what you only imagine
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 5th Aug 2005 06:02
When you strafe left and right, is the terrain level or raised, if so, it would move, but your commands would contradict themselves and move him right back. That's all I can think of right now.


__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
Sodevrom
19
Years of Service
User Offline
Joined: 10th Jul 2005
Location: Timisoara
Posted: 5th Aug 2005 16:31
No it isen't raised . The camera dosen't move at all . So another question . How can I move the camera using the "position camera" command ??? if it isen't possible using this command , wich command should I use and why isen't it possible ???

I am a Sodevrom team member .
Visit www.sodevrom.com for free games & software
And don't forget : We make what you only imagine
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 5th Aug 2005 17:59
i dont use dbp, so i dont know anything about multiple cameras, but i think when you cann the function you should do



1 being the camera number, then at the function declaration do:



Your signature has been erased by a mod because it's larger than 600x120...
Sodevrom
19
Years of Service
User Offline
Joined: 10th Jul 2005
Location: Timisoara
Posted: 5th Aug 2005 18:23
Ok , I solved the problem .The problem is that i diden't use camera position x(o_camera) , I forgot that I don't use the deffaul camera ....


I am a Sodevrom team member .
Visit www.sodevrom.com for free games & software
And don't forget : We make what you only imagine

Login to post a reply

Server time is: 2024-11-27 20:38:42
Your offset time is: 2024-11-27 20:38:42