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.

DarkBASIC Professional Discussion / Don't set camera range if using pick screen

Author
Message
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 8th Sep 2014 05:35
Just a little friendly advice, because I spent about 5 hours today going over code trying to figure out why the pick screen coordinates were wrong.
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 9th Sep 2014 00:04
I've stumbled across this problem myself.Pulling my hairs for hours, rem in rem out different parts of code...nothing helped.Then i figured it out when finaly started to mess arround with initialization part!Extremely big camera ranges mess with pick object.

The easy solution is to set the range to some lower value just before pick object command and set it back to desired value after that.Try it, it worked for me.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 9th Sep 2014 03:46
Or do it yourself


"Why do programmers get Halloween and Christmas mixed up?"
Burning Feet Man
18
Years of Service
User Offline
Joined: 4th Jan 2008
Location: Sydney, Australia
Posted: 9th Sep 2014 04:29
If recall correctly, that so long as you setup the camera range correctly with respectable max & min limits, then the range & pick coordinates will work together without complication. The problem only occurs if, for example, you set the range to a large value, such as minimum 0 and a maximum to 1,000,000. There is a point of failure, where eventually the problem occurs. Note that this isn't really an issue, as it's easy enough to work with now that you've identified this.

Help build an online DarkBASIC Professional help archive.
DarkBasic Help Wikia

Login to post a reply

Server time is: 2026-07-18 09:24:48
Your offset time is: 2026-07-18 09:24:48