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.

Code Snippets / [DBP] binoculars with Zoom.

Author
Message
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Feb 2009 17:02 Edited at: 13th Feb 2009 21:29
Hi all,

This will give you the view as if seen through a set of binoculars, if you knock out camera 2 and object 2 and reset the x position of object 1 to 0. you'll have a zoom able single site (sniper site).

Thanks to Green Gandalf for working out how to hide a lock object.

edit fixed the zoom system.





Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments
Monk
16
Years of Service
User Offline
Joined: 25th Sep 2008
Location: Standing in the snow =D
Posted: 13th Feb 2009 17:22
I think that it looks promising
A few things though, you can zoom too far in or out so that the objects flips upside down, and also, if youre too close to the object, the zoom looks straight through it, but otherwise, a cool piece of code =)

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Feb 2009 17:37
Thanks Monk, yes I know its does have a few zoom problems but that was an extra I added without working out what it did.

Just showing that you can have a set of binoculars, or sniper site, showing your scenery with out doing big screen image and its round.

working on putting the cross hairs lines on the site for the sniper site.

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Feb 2009 17:50 Edited at: 13th Feb 2009 21:33
single site with cross hairs.




Dark Physics makes any hot drink go cold.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-22 08:01:47
Your offset time is: 2024-11-22 08:01:47