Winblitz3d and Dreamotion3d????

Blitz3D Forums/Blitz3D Programming/Winblitz3d and Dreamotion3d????

GrumpyOldMan(Posted 2008) [#1]
Hi

I was just playing around and wanted to see if I could get Winblitz3d and Dreamotion3d working together. I think I'm not getting the right window handle.



Any help or pointers would be appreciated.

Cheers

GrumpyOldMan


John Blackledge(Posted 2008) [#2]
Sideways - What's the DX9.bb you're using?


Kev(Posted 2008) [#3]
I need to now more about Dreamotion3d, WinBlitz3D was wrote to plug into blitz3d and has some little tricks under the hood that takes control of blitz3d internal winproc

kev


GrumpyOldMan(Posted 2008) [#4]
Hi

John Blackledge
Sideways - What's the DX9.bb you're using?

John Blackledge


Kev
I need to now more about Dreamotion3d, WinBlitz3D was wrote to plug into blitz3d and has some little tricks under the hood that takes control of blitz3d internal winproc

kev


Dreamotion3d is a dx9 lib and Spike314 (who's also on this forum) wrote a b3d wrapper for an earlier version of it.
http://www.blitzbasic.com/Community/posts.php?topic=73206#852889 and it's available from here
[a http://files.filefront.com/MMSDX9+BetaV02exe/;8795433;/fileinfo.html]http://files.filefront.com/MMSDX9+BetaV02exe/;8795433;/fileinfo.html[/a] . There's a Blitzmax wrapper available for the current version at http://www.dreamotion3d.com/_download/BlitzMaxDM3D.zip which I believe has the c++ source for the current engine. I'll have a look and see if I've got the source to the older version.

Cheers

GrumpyOldMan


markcw(Posted 2008) [#5]
I think you just pass the app class rather than finding it, like this. Edit: SystemProperty("AppHWND") does the same thing as FindWindow but doesn't need the names.
.lib "User32.dll"
Api_FindWindow%(classname$, windowname$):"FindWindowA"
; Const class$="GX_WIN32_CLASS" ;BlitzPlus 1.11
; Const class$="BLITZMAX_WINDOW_CLASS" ;BlitzPlus 1.34
Const class$="Blitz Runtime Class" ;Blitz3D, app class
Const title$ = "My Blitz Window" ;app title

AppTitle title$
hwnd = Api_FindWindow(class$, title$)



GrumpyOldMan(Posted 2008) [#6]
Hi markcw

I tried this but the problem seems to be that the window created by the Dreamotion Graphics command isn't a Blitz Runtime Class window. What happens when you use the SystemProperty is that two windows are formed one the Blitz background window and the other the Dreamotion3d window :(. I was going to raise this on the Dreamotion3d forum but it seems to have disappeared.

Thanks for replying.

Cheers

GrumpyOldMan


Spike314(Posted 2008) [#7]
hi GrumpyOldMan

hwnd = Api_FindWindow("WindowClass_0", title$)
That will give you access to the dreamotion window


GrumpyOldMan(Posted 2008) [#8]
Hi Spike314

I am just going to test it now, thank you for the reply. Now that the Dreamotion3d site has been revamped and the forum reactivated hopefully we can move dreamotion3d on further :).

Cheers

GrumpyOldMan


GrumpyOldMan(Posted 2008) [#9]
Hi Spike314

I tried your info but I still end up with "Class Info Error". It modifies the Dreamotion3d window but comes up with an error and won't allow you to create gadgets in the window so there must be something happening in the Winblitz3d WB3D_InitializeGUI command that relies on a standard Blitz3d type window.

Oh well, there goes my delusions on having Dreamotion3d together with a great GUI :)))).

Cheers

GrumpyOldMan


Spike314(Posted 2008) [#10]
GrumpyOldMan
i am working on the new version of the wrapper but im unsure when it will be released.


GrumpyOldMan(Posted 2008) [#11]
Hi Spike314

i am working on the new version of the wrapper but im unsure when it will be released.



Good news, it's very good to see the Dreeamotion3d stuff back up and running :).

Cheers

GrumpyOldMan