Mistrel,
I now understand. So unless you do another call do dbMouseMoveX() to reset the delta back to the absolute position, then it won't work correctly.
Thanks, Mistrel! I was thinking the deltas were always coming from the last place I positioned the mouse using the PositionMouse command. The ...
Search found 31 matches
- Fri May 01, 2009 2:52 am
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
- Fri May 01, 2009 1:14 am
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
Mouse Delta routines
Sorry about the long thread about the mouse commands. My goal is to have the mouse control left/right and up down movement of the camera in a way that does not stop the camera when it gets to to edges of my window or screen. This means I need to reposition the mouse to an arbitrary point each time I ...
- Fri May 01, 2009 1:10 am
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
Mouse Deltas revisited
I am grabbing the mouse deltas into a variable.
Once I do that the delta value itself is stored away in a variable so it shouldn't matter what happens to the mouse position at that point - I have the delta value stored away in the variable.
I then turn the camera by the stored delta value. The ...
Once I do that the delta value itself is stored away in a variable so it shouldn't matter what happens to the mouse position at that point - I have the delta value stored away in the variable.
I then turn the camera by the stored delta value. The ...
- Wed Apr 29, 2009 10:36 pm
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
Mouse Deltas and dbMouseTurnLeft
I understand that the mouse deltas are being reset...in the code I'm watching for a mouse delta, turning the camera by that delta, then resetting the mouse back to its original position. The mouse definitely will stutter.
However, if I am understanding the Turn Camera left command, then when I tell ...
However, if I am understanding the Turn Camera left command, then when I tell ...
- Wed Apr 29, 2009 1:55 am
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
dbPositionMouse
Mistrel,
I've been trying to use dbMouseMoveX along with dbPositionMouse to create a mouse driven camera rotation.
Here's the basic premise:
1. Look to see if mouse has moved in the X direction
2. Turn the camera Left (or Right) according to the amount mouse X moved.
3. Display camera angle Y as ...
I've been trying to use dbMouseMoveX along with dbPositionMouse to create a mouse driven camera rotation.
Here's the basic premise:
1. Look to see if mouse has moved in the X direction
2. Turn the camera Left (or Right) according to the amount mouse X moved.
3. Display camera angle Y as ...
- Sat Apr 25, 2009 12:05 pm
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
EZRotate Obj and Cam commands
Thanks, Mistrel - they seem to work fine now.
- Sat Apr 25, 2009 1:39 am
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
EZRotate Camera commands
And here's the Camera commands, which appear to be missing:
Camera Commands:
---------------------------------
New to EZrotate version 4!
You can now work directly with your cameras in DarkBasic Professional.
Command List:
Setup:
EZro_SetupFromCamera - Setup EZrotate with the data from ...
Camera Commands:
---------------------------------
New to EZrotate version 4!
You can now work directly with your cameras in DarkBasic Professional.
Command List:
Setup:
EZro_SetupFromCamera - Setup EZrotate with the data from ...
- Sat Apr 25, 2009 1:37 am
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
EZRotate Object commands
Mistrel,
It appears these EZRotate commands are new as of version 4.0.
Could that be the reason they may not have been added to PureGDK?
Here's the docs page for the Object commands:
Object Commands:
-----------------------------------
New to EZrotate version 4!
You can now work directly ...
It appears these EZRotate commands are new as of version 4.0.
Could that be the reason they may not have been added to PureGDK?
Here's the docs page for the Object commands:
Object Commands:
-----------------------------------
New to EZrotate version 4!
You can now work directly ...
- Sat Apr 25, 2009 1:34 am
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
EZRotate Object commands
Mistrel,
Sorry, wasn't trying to put in a jab there. I think your library is quite good and that's why I bought it. Again, sorry...I didn't intend to offend you.
I will take a look through the EZRotate Enhanced docs and see if I can get you a list of the commands that appear not to be there.
Sorry, wasn't trying to put in a jab there. I think your library is quite good and that's why I bought it. Again, sorry...I didn't intend to offend you.
I will take a look through the EZRotate Enhanced docs and see if I can get you a list of the commands that appear not to be there.
- Sat Apr 25, 2009 12:30 am
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
EZRotate Missing Commands
Mistrel,
Here is some sample code to illustrate the missing commands:
OpenWindow(0,0,0,640,480,"DarkBasic Professional - PureGDK",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
hDBWnd=OpenDBWnd(WindowID(0),0,0,640,480)
dbSyncRate(60)
dbBackdropOn()
dbColorBackdrop(dbRGB(0,0,0 ...
Here is some sample code to illustrate the missing commands:
OpenWindow(0,0,0,640,480,"DarkBasic Professional - PureGDK",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
hDBWnd=OpenDBWnd(WindowID(0),0,0,640,480)
dbSyncRate(60)
dbBackdropOn()
dbColorBackdrop(dbRGB(0,0,0 ...
- Thu Apr 23, 2009 12:16 am
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
EZRotate commands
Any update on the EZRo_obj commands?
- Wed Apr 22, 2009 3:18 am
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
DarkPhysics 1.x support?
Does PureGDK support DarkPhysics 1.x support? The initial post of this message thread shows the beta as being supported, but has there been updates and verification that the full release of DarkPhysics works?
- Wed Apr 22, 2009 3:10 am
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
EZRotate Enhanced EZro_Obj commands missing
It appears all of the EZro_Obj commands do not work.
In other words, commands such as:
EZro_ObjOrbit
Are not recognized.
The syntax file does not include the commands either.
Can you please fix?
In other words, commands such as:
EZro_ObjOrbit
Are not recognized.
The syntax file does not include the commands either.
Can you please fix?
- Fri Mar 06, 2009 12:54 pm
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
New Release?
Any news on when the next release will be out?
- Mon Mar 02, 2009 4:31 pm
- Forum: Announcement
- Topic: PureGDK - 3D Programming for PureBasic
- Replies: 346
- Views: 166679
MouseZ functions
Mistrel,
It appears at least some of the MouseZ functions do not work. I converted a very basic DarkBasic example (less the mouse icon routines) over to test. Here's the PureBasic+PureGDK code:
OpenWindow(0,0,0,640,480,"DarkBasic Professional - PureGDK",#PB_Window_SystemMenu|#PB_Window ...
It appears at least some of the MouseZ functions do not work. I converted a very basic DarkBasic example (less the mouse icon routines) over to test. Here's the PureBasic+PureGDK code:
OpenWindow(0,0,0,640,480,"DarkBasic Professional - PureGDK",#PB_Window_SystemMenu|#PB_Window ...