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 / how look zoom-in/zoom-out camera ?

Author
Message
Adanf
16
Years of Service
User Offline
Joined: 22nd Sep 2008
Location: Italy!!!!!!!!!
Posted: 1st Oct 2008 16:53
How can i look the Camera Z axis movement whitin a range?
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 1st Oct 2008 17:37
If I'm assuming that you're referring to the Frustrum viewing distance, then use the dbSetCameraRange function.

Otherwise, could you be more specific in what you're trying to achieve, thanks.

Paul.

fraktal
16
Years of Service
User Offline
Joined: 8th Jan 2008
Location:
Posted: 1st Oct 2008 19:29
I'm a DBP user, but couldn't you use the DGDK equivalent of "set camera FOV" (dbSetCameraFov)?
SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 1st Oct 2008 23:54
I would suggest what "fraktal" is trying to say. If you are trying to replicate a zooming effect, the best way to do it is to not actually zoom at all!

Check out this thread which has an example program demonstrating exactly what you are looking to do.

http://forum.thegamecreators.com/?m=forum_view&t=45695&b=22

www.Helios-Online.net
Adanf
16
Years of Service
User Offline
Joined: 22nd Sep 2008
Location: Italy!!!!!!!!!
Posted: 2nd Oct 2008 02:11
sushibox is similar to example, but the example code don't work, and the camera zoom have only 2 position, full-range or no-zoom.
I search a code that is similat to an RTS camera zoom.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 2nd Oct 2008 16:52
My apologies, I misread, but fraktal is correct in his suggestion on using the FOV functions. Smaller angles should provide the desired effect of zooming closer to an object. Larger angles would simulate the fisheye effect.

Paul.

SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 2nd Oct 2008 21:05 Edited at: 2nd Oct 2008 21:06
I think I see what he wants now. If I understand you correctly, you want to make your own flexible zoom with different levels? Or even a smooth zoom effect?

Read this page on operators, I cant sit here and write out the full code, but read up on this part:



Source: http://www.cplusplus.com/doc/tutorial/operators.html

I have one in my FPS, if you don't figure it out before I get on later, ill post it.

www.Helios-Online.net

Login to post a reply

Server time is: 2024-09-30 07:21:35
Your offset time is: 2024-09-30 07:21:35