
Convert Blitz to PB
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Convert Blitz to PB
I scanned the forums for this but saw no direct bit of info... Has anyone ever worked out an easy way to convert Blitz (especially B3D) to PB? 

- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
-
- Addict
- Posts: 1126
- Joined: Wed Oct 15, 2003 12:40 am
- Location: Sweden
- Contact:
Re: Convert Blitz to PB
I've done a couple (10 - 15) of conversions manually, but when it comes to some 3D commands - it's a pain in the ***...Rook Zimbabwe wrote:I scanned the forums for this but saw no direct bit of info... Has anyone ever worked out an easy way to convert Blitz (especially B3D) to PB?
[EDIT]
For 2D stuff a converter should be possible to make, at least for 90% of the code.

(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Automatically, I do not know program which makes it.
Personally , fan of Blitz3D, the best engine for me to convert of the code Blitz3D
is Dreamotion3D. Example:
Blitz3D code:
PB+Dreamotion3D code:
Personally , fan of Blitz3D, the best engine for me to convert of the code Blitz3D
is Dreamotion3D. Example:
Blitz3D code:
Code: Select all
Graphics3D 640,480,0,3
SetBuffer BackBuffer()
mesh = CreateMesh()
surf = CreateSurface(mesh)
v0 = AddVertex (surf, -5,-5,0, 0 ,0)
v1 = AddVertex (surf, 5,-5,0, 1 ,0)
v2 = AddVertex (surf, 0, 5,0, 0.5,1)
tri = AddTriangle (surf,v0,v2,v1)
cam = CreateCamera()
MoveEntity cam, 0,0,-7
RenderWorld
Flip
WaitKey
End
Code: Select all
IncludePath "Include\" : IncludeFile "dreamotion3d.pbi"
Global Quit.b
If InitSprite() = 0 Or InitKeyboard() = 0 Or InitMouse() = 0
End
EndIf
DM_Graphics3D(640, 480, 32, 0, 1)
*mesh = DM_CreateMesh()
*surf = DM_CreateSurface(*mesh)
v0 = DM_AddVertex (*surf, -5,-5,0, 0 ,0)
v1 = DM_AddVertex (*surf, 5,-5,0, 1 ,0)
v2 = DM_AddVertex (*surf, 0, 5,0, 0.5,1)
tri = DM_AddTriangle (*surf,v0,v2,v1)
*camera = DM_CreateCamera()
DM_MoveEntity(*camera, 0,0,-14)
DM_CameraClsColor(*camera, 125, 125, 125)
Repeat
ExamineKeyboard()
If KeyboardReleased(#PB_Key_Escape)
Quit=1
EndIf
DM_BeginScene()
DM_RenderWorld()
DM_EndScene()
Until Quit=1
DM_ClearGraphics()
End
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Last edited by blitzfan on Thu Mar 08, 2007 6:54 pm, edited 1 time in total.
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
The version beta2 is available in DownLoad:
Dreamotion3D -> Download -> PureBasic ->
Package for PB,
PhysX package,
and some tools...
PS: you must register to acces all download section...
It is really a very good engine, it in version beta, but its potential is really
very important, for me it is already over the top of much of another engine.
Doc. on line is under development, and these creators are very cool and
very accessible…
Dreamotion3D -> Download -> PureBasic ->
Package for PB,
PhysX package,
and some tools...

PS: you must register to acces all download section...
It is really a very good engine, it in version beta, but its potential is really
very important, for me it is already over the top of much of another engine.
Doc. on line is under development, and these creators are very cool and
very accessible…