PureGDK - 3D Programming for PureBasic

Developed or developing a new product in PureBasic? Tell the world about it.
AndyMK
Enthusiast
Enthusiast
Posts: 582
Joined: Wed Jul 12, 2006 4:38 pm
Location: UK

Post by AndyMK »

Hi Mistrel, the link is a zip file containing a folder with 4 files. Just open test.pb from the folder and run with debugger off. I also noticed that you cant compile an exe with either the debugger on or off. Hope its a simple fix :)

http://www.hotlinkfiles.com/files/24030 ... v/test.zip
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Try this. It should fix the import bug as well as the "Garbage at end of line" error when using non-ASCII encoding in your source files. The compiler output window now also correctly display all POLINK errors instead of just "Error: Linker Error".

This file goes in your "..\Program Files\PureBasic\PureGDK" folder or wherever the PureBasic installation folder is that was specified during the installation of PureGDK.

http://puregdk.com/files/upload/PureGDK ... patch2.zip
Last edited by Mistrel on Tue Mar 31, 2009 12:48 pm, edited 2 times in total.
AndyMK
Enthusiast
Enthusiast
Posts: 582
Joined: Wed Jul 12, 2006 4:38 pm
Location: UK

Post by AndyMK »

So far everything working perfectly :) Super quick bug fixing Mistrel!! Thank you very much :)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Thanks for the great bug report. That should be it for any outstanding bug reports pertaining to PureGDK 1.1.0. I'll upload the new release shortly. :)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

PureGDK 1.1.1 is available for all registered users at PureGDK.com. I've also sent the update to The Game Creators. It should be available there within the next few days.
PureGDK 1.1.1
====================

Bug fixes:
- Fixed a bug introduced in the final release which broke dbLoadMusic, dbLoadImage, dbLoadAnimation, dbLoadDVDAnimation when compiling with the debugger.
- The PureGDK compiler will now correctly display all POLINK errors instead of just "Error: Linker Error".
- The PureGDK compiler can now parse non-ASCII encoded source files.
- Fixed a bug which would cause the PureBasic compiler to throw a POLINK error in some cases were the Import keyword was used.
Onyx
User
User
Posts: 31
Joined: Mon Aug 07, 2006 10:19 pm

EZRotate Enhanced EZro_Obj commands missing

Post by Onyx »

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?
Onyx
User
User
Posts: 31
Joined: Mon Aug 07, 2006 10:19 pm

DarkPhysics 1.x support?

Post by Onyx »

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?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

If the help file says that it's supported then it should work. If it doesn't then either there is a misconfiguration or a bug. Have you tried testing it?
Onyx
User
User
Posts: 31
Joined: Mon Aug 07, 2006 10:19 pm

EZRotate commands

Post by Onyx »

Any update on the EZRo_obj commands?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: EZRotate commands

Post by Mistrel »

Onyx wrote:Any update on the EZRo_obj commands?
Is there any reason for an update? I'm not aware of any problems with this library.
Onyx
User
User
Posts: 31
Joined: Mon Aug 07, 2006 10:19 pm

EZRotate Missing Commands

Post by Onyx »

Mistrel,

Here is some sample code to illustrate the missing commands:

Code: Select all

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)) 

rotateflag=1


dbMakeObjectCube(2,2)
dbColorObject(2,dbRGB(255,255,0))
dbPositionObject(2,8,0,0)

dbMakeObjectSphere(1,10)
dbColorObject(1,dbRGB(0,2550,0))

Repeat 

    

    EZro_ObjOrbit(2,rotateflag,0,0,0,0,1,0,0.1)
    
    
    dbSync() 
Until WindowEvent()=#PB_Event_CloseWindow Or dbKeyState(#VK_ESCAPE) 
End 
Note the EZro_ObjOrbit command is just one of many EZRotate Object commands that are missing from PureGDK. If I look in the EZRotate.gde file, the commands are not there. Since you supposedly support EZRotate Enhanced, could you please verify and fix the issue?

Here's the DarkBasic equivalent if you want to verify:

Code: Select all

sync on : sync rate 0 : hide mouse:cls 0
rotateflag=1

make object cube 2,2
color object 2,rgb(255,255,0)
position object 2,8,0,0
make object sphere 1,10
color object 1,rgb(0,255,0)

while mouseclick()=0
   EZro_ObjOrbit 2, RotateFlag, 0, 0, 0, 0, 1, 0, 0.1


   sync
endwhile

delete objects 1,2
end
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Onyx wrote:Since you supposedly support EZRotate Enhanced ..
I don't appreciate that comment. If you're not familiar with it I've already stated in the help file:
Each of these command libraries has been tested for functionality. Not every command has been tested and functionality of every command is not guaranteed. If you do encounter a problem getting any of these plugins to work with PureGDK please contact support@puregdk.com.
Considering there are well over 1,000 commands across all of the supported libraries it's not possible to test each and every one.
Onyx wrote:Note the EZro_ObjOrbit command is just one of many EZRotate Object commands that are missing from PureGDK.
I'll gadly fix this bug with the EZRotate library. But first, can you clarify if it's only the EZro_Obj commands that are missing? The more detailed your report is the faster I'll be able to fix this.

Thanks.
Onyx
User
User
Posts: 31
Joined: Mon Aug 07, 2006 10:19 pm

EZRotate Object commands

Post by Onyx »

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.
Onyx
User
User
Posts: 31
Joined: Mon Aug 07, 2006 10:19 pm

EZRotate Object commands

Post by Onyx »

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 with your objects in DarkBasic Professional.



Command List:



Setup:

EZro_SetupFromObject - Setup EZrotate with the data from an object

EZro_ApplyToObject - Apply EZrotate’s internal data to an object

EZro_ObjApplyQuaternion - Rotate an object with the specified Quaternion data

EZro_ObjApplyAxisAngles - Rotate an object with the specified Axis Angle data



Rotation:

EZro_ObjGX - Rotate the object on the global X axis

EZro_ObjGY - Rotate the object on the global Y axis

EZro_ObjGZ - Rotate the object on the global Z axis

EZro_ObjLX - Rotate the object on its local X axis

EZro_ObjLY - Rotate the object on its local Y axis

EZro_ObjLZ - Rotate the object on its local Z axis

EZro_ObjVector - Rotate the object on an axis based at its origin

EZro_ObjOrbit - Rotate and move the object around a created axis



Pointing:

EZro_ObjRotateTo - Rotate towards coordinate using the X,Y and Z axis.

EZro_ObjTurnPitchTo - Rotate towards coordinate using only the Y and X axis (preventing roll).

EZro_ObjTurnTo - Rotate towards coordinate using only the Y axis (preventing roll and pitch).

EZro_ObjPitchTo - Rotate towards coordinate using only the X axis (preventing roll and turn).

EZro_ObjRotateSurfToSurf - Rotate an object from a surface to a surface of another object.

EZro_ObjPolyAlign - Align the object to a surface

EZro_ObjFindLocalYangleToPoint - returns the object's local Y angle between its facing axis (z) and the specified 3D coordinate.



Offsets:

EZro_ObjFindPointFromOffset - Converts offset distances relative to your objects rotation into a global coordinate

EZro_ObjFindOffsetFromPoint - Converts a global point into offset distances to each axis of your object relative to its rotation.
Onyx
User
User
Posts: 31
Joined: Mon Aug 07, 2006 10:19 pm

EZRotate Camera commands

Post by Onyx »

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 a camera

EZro_ApplyToCamera - Apply EZrotate’s internal data to a camera

EZro_CamApplyQuaternion - Rotate a camera with the specified Quaternion data

EZro_CamApplyAxisAngles - Rotate a camera with the specified Axis Angle data



Rotation:

EZro_CamGX - Rotate the camera on the global X axis

EZro_CamGY - Rotate the camera on the global Y axis

EZro_CamGZ - Rotate the camera on the global Z axis

EZro_CamLX - Rotate the camera on its local X axis

EZro_CamLY - Rotate the camera on its local Y axis

EZro_CamLZ - Rotate the camera on its local Z axis

EZro_CamVector - Rotate the camera on an axis based at its origin

EZro_CamOrbit - Rotate and move the camera around a created axis



Pointing:

EZro_CamRotateTo - Rotate towards coordinate using the X,Y and Z axis.

EZro_CamTurnPitchTo - Rotate towards coordinate using only the Y and X axis (preventing roll).

EZro_CamTurnTo - Rotate towards coordinate using only the Y axis (preventing roll and pitch).

EZro_CamPitchTo - Rotate towards coordinate using only the X axis (preventing roll and turn).

EZro_CamRotateSurfToSurf - Rotate a camera from a surface to a surface of another object.

EZro_CamPolyAlign - Align the camera to a surface

EZro_CamFindLocalYangleToPoint - returns the camera's local Y angle between its facing axis (z) and the specified 3D coordinate.


Offsets:

EZro_CamFindPointFromOffset - Converts offset distances relative to your camera’s rotation into a global coordinate

EZro_CamFindOffsetFromPoint - Converts a global point into offset distances to each axis of your camera relative to its rotation.
Post Reply