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 / dbPickScreen Problem

Author
Message
supershwa
15
Years of Service
User Offline
Joined: 22nd Aug 2009
Location:
Posted: 22nd Aug 2009 23:27
Hi all,

I'm pretty new to Dark GDK and am finding it's pretty nice...

...however, I'm having a problem with dbPickScreen() and can't seem to find a solution.

In the main loop, I have the following:



Basically, I'm using an isometric camera (overhead) and trying to determine where in the 3D World my mouse cursor is at so I can "drag" an object around the world on the X, Z axes.

It seems that dbPickScreen() isn't giving me any vector coords relative to the camera...all I get is 0, 0, 0.

Thanks for the help in advance!

-supershwa
supershwa
15
Years of Service
User Offline
Joined: 22nd Aug 2009
Location:
Posted: 23rd Aug 2009 01:09
As it turns out the problem was with dbSetCameraRange()

Apparently there is an issue with dbPickScreen() when you use dbSetCameraRange().
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 23rd Aug 2009 09:32
Only if the near range is 0 and/or the far range is incredibly high.

supershwa
15
Years of Service
User Offline
Joined: 22nd Aug 2009
Location:
Posted: 23rd Aug 2009 20:11
After dealing with this one I posted a page at the Wiki since there wasn't one available for dbPickScreen().

http://darkgdk.wikia.com/wiki/DbPickScreen

Login to post a reply

Server time is: 2024-10-01 10:40:14
Your offset time is: 2024-10-01 10:40:14