Convert Blitz to PB

Everything else that doesn't fall into one of the other PB categories.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Convert Blitz to PB

Post 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? :?:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

I guess you have to do it manually, but maybe someone have a converter, I don't know.
I like logic, hence I dislike humans but love computers.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

What's blitz??.................only kidding. :lol:
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Re: Convert Blitz to PB

Post 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.
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

mmEngine3D... Have y'all looked at the source code examples... I think that would work! :wink:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
blitzfan
New User
New User
Posts: 6
Joined: Wed Nov 29, 2006 9:23 am
Location: France/Canada

Post 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
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

And a linky to Dreamotion? To make it easier to all who read these words with baited breath! :wink:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
blitzfan
New User
New User
Posts: 6
Joined: Wed Nov 29, 2006 9:23 am
Location: France/Canada

Post by blitzfan »

Last edited by blitzfan on Thu Mar 08, 2007 6:54 pm, edited 1 time in total.
Thalius
Enthusiast
Enthusiast
Posts: 711
Joined: Thu Jul 17, 2003 4:15 pm
Contact:

Post by Thalius »

Irrlicht can read .b3d Files np.

Cheers, Thalius
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone! ;)"
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »



{sigh} No downloads available yet...
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
blitzfan
New User
New User
Posts: 6
Joined: Wed Nov 29, 2006 9:23 am
Location: France/Canada

Post 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…
Post Reply