PureGDK - 3D Programming for PureBasic

Developed or developing a new product in PureBasic? Tell the world about it.
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: PureGDK - 3D Programming for PureBasic

Post by Olby »

Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: PureGDK - 3D Programming for PureBasic

Post by Mistrel »

This is a general link for reference to another post I've made regarding false positives from other antivrirus software and this experimental build:

http://www.purebasic.fr/english/viewtop ... 17&t=39237

I'll update with more information once I get responses from these companies.
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: PureGDK - 3D Programming for PureBasic

Post by Olby »

Thanks for checking this out,
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
Captn. Jinguji
User
User
Posts: 94
Joined: Sun Oct 24, 2004 9:25 am

Re: PureGDK - 3D Programming for PureBasic

Post by Captn. Jinguji »

Mistrel wrote:If anyone can test this experimental executable and make sure it works on their operating system it would help a lot:

http://puregdk.com/files/upload/gdk_experimental.zip

It works perfectly here on Windows XP x64 and Windows 7 x64.

All you should see is a small DBP window that loops random numbers. The only important goal right now is that is opens, runs, and closes without crashing.

Thanks. :)
Just for completeness: seems to be working fine here on XP 32bit current patchlevel, c2d, nvidia 8600GSM Driver Vsn. 6.14.11.8681.
Is this an artifact or should it be disposed of ?
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Re: PureGDK - 3D Programming for PureBasic

Post by Poshu »

work fine on my 2003.
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: PureGDK - 3D Programming for PureBasic

Post by Olby »

I have found a bug in PureGDK.

This code in native DBPro returns correct object animation speed:

Code: Select all

sync on
sync rate 0

load object "aiko.dbo",1
loop object 1
set object speed 1,5
msgbox str$(object speed(1))

do
	sync
loop
But in PureGDK the same code doesn't return 5 but instead 1084227585:

Code: Select all

; Open the PureGDK render window
OpenWindow( 0, 0, 0, 640, 480, "DarkBasic Professional - PureGDK", #PB_Window_SystemMenu | #PB_Window_ScreenCentered )
hDBWnd = OpenDBWnd( WindowID( 0 ), 0, 0, 640, 480 )

; Load model
dbSyncRate(0)
dbLoadObject("aiko.dbo",1)
dbSetObjectSpeed(1,5)
dbLoopObject(1)
Debug dbObjectSpeed(1)

Repeat
  dbSync()
Until WindowEvent() = #PB_Event_CloseWindow
Replace aiko with any other model with animation if you cant find it in the DBPro folder.
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: PureGDK - 3D Programming for PureBasic

Post by Mistrel »

Fixed for the next release. It's returning a float as a long (bitwise). You can work around it for now by doing this:

Code: Select all

Long.l=1084227585
Debug PeekF(@Long)

Outputs: 5.00000047683716
The function actually returns an unsigned long but it should be an integer because Set Speed() only accepts integers.

Expect it to return an integer in the next release, for consistency. Or a long, I suppose, because DBP is 32-bit. :)
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: PureGDK - 3D Programming for PureBasic

Post by Olby »

Thanks.

[Edit]

My anti-virus finally got the update required and no more triggered a false positive for that gdk experiment and I could launch it.
It all worked out nicely and I could close it without crashing. Guess yours idea is working then?
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: PureGDK - 3D Programming for PureBasic

Post by Olby »

Image

There is another problem, this time with GDK setup. You have hard coded the name of the ODE physics library which mater of fact is not a part of the official command set and is required for FPSC only. I use the latest available release with bug fixes and new commands which is not called DBProODEDebug.dll but instead compiled as release version called DBProODERelease.dll and thats why when I install the GDK it gives me this error and I cant continue as it silently closes. I guess it would be best if the setup searched for both versions of the library (you cant have two similar DLL's in plugins folder anyway as the compiler will give errors), for example if the debug version is not found then search for the release version if that also cannot be found then give a warning and continue.

Hope I'm not tiresome !! :lol:

Olby
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: PureGDK - 3D Programming for PureBasic

Post by Mistrel »

It searches for this file as a way to make sure you've installed a recent update. I have other checks so I can remove it for this one file.

If you want a simple work-around just rename a 0 byte .txt file to the required name. That shouldn't interfere with your release DLL.
Olby wrote:Hope I'm not tiresome !! :lol:
Tiresome? Not at all. :)
Olby wrote:My anti-virus finally got the update required and no more triggered a false positive for that gdk experiment and I could launch it.
I just got a reply from Avira sometime this morning. Glad to see the update was pushed out quickly.
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: PureGDK - 3D Programming for PureBasic

Post by Olby »

Yeah I simply renamed my Release dll into Debug one. Works ok.
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: PureGDK - 3D Programming for PureBasic

Post by Mistrel »

PureGDK has just been given its own board on The Game Creators forum. Consider this its new home away from home. :)

http://forum.thegamecreators.com/?m=forum_read&i=38
UUICEO
User
User
Posts: 57
Joined: Tue Mar 10, 2009 9:09 pm
Location: Shakopee, Minnesota. USA

Re: PureGDK - 3D Programming for PureBasic

Post by UUICEO »

Thats good to see. Hopefully you can get some use out of it.
Windows 7 Ultimate x64 / PureBasic 5.21 LTS / ProGUI Platinum / PureVision / http://www.linkedin.com/groups/PureBasi ... =&trk=tyah
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PureGDK - 3D Programming for PureBasic

Post by IdeasVacuum »

Last post to this thread was in 2009.

Is PureGDK still supported? Is up to speed with PB5.31?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: PureGDK - 3D Programming for PureBasic

Post by Thunder93 »

Is PureGDK still compatible with PureBasic? Is it compatible with PureBasic v5 ? - hxxp://forum.thegamecreators.com/?m=forum_view&t=201873&b=38
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
Post Reply