Page 1 of 1

Convert Blitz to PB

Posted: Wed Mar 07, 2007 5:53 am
by Rook Zimbabwe
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? :?:

Posted: Wed Mar 07, 2007 6:21 am
by Joakim Christiansen
I guess you have to do it manually, but maybe someone have a converter, I don't know.

Posted: Wed Mar 07, 2007 10:23 am
by Derek
What's blitz??.................only kidding. :lol:

Re: Convert Blitz to PB

Posted: Wed Mar 07, 2007 1:53 pm
by techjunkie
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? :?:
I've done a couple (10 - 15) of conversions manually, but when it comes to some 3D commands - it's a pain in the ***...
[EDIT]
For 2D stuff a converter should be possible to make, at least for 90% of the code.

Posted: Wed Mar 07, 2007 4:05 pm
by Rook Zimbabwe
mmEngine3D... Have y'all looked at the source code examples... I think that would work! :wink:

Posted: Wed Mar 07, 2007 6:44 pm
by blitzfan
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:

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
PB+Dreamotion3D code:

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

Posted: Thu Mar 08, 2007 12:17 am
by Rook Zimbabwe
And a linky to Dreamotion? To make it easier to all who read these words with baited breath! :wink:

Posted: Thu Mar 08, 2007 7:51 am
by blitzfan

Posted: Thu Mar 08, 2007 2:08 pm
by Thalius
Irrlicht can read .b3d Files np.

Cheers, Thalius

Posted: Fri Mar 09, 2007 5:07 am
by Rook Zimbabwe


{sigh} No downloads available yet...

Posted: Fri Mar 09, 2007 7:55 am
by blitzfan
The version beta2 is available in DownLoad:
Dreamotion3D -> Download -> PureBasic ->

Package for PB,
PhysX package,
and some tools...

:wink:

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…