News:

Function Finder  Find all the functions within source code files

Main Menu

3D engine for PlayBasic!

Started by Jedive, June 05, 2005, 06:15:52 PM

Previous topic - Next topic

Jedive

I've been working on a extremely easy to use 3D engine for some time now, named 3D Zone. The engine is distributed as a dll, and works with a lot of Basic flavours.

Now that PlayBasic has been released, I have decided to include support for this new language. Here is the result:



The code used to run the demo shown in the screenshot:

;Device
zDeviceOpen(800, 600, 32, DF_STENCILBUFFER Or DF_DIRECTX Or DF_FULLSCREEN, 0)
zMouseHide(True)

;Ambient light
zSceneAmbient(zGetColor(255, 150, 150, 150))

;Create map
zSceneTexturePath("media/space/")
mesh = zMeshLoad("media/space/space.my3d")
map = zMeshOctreeNode(mesh, 0, 3)
zMeshFree(mesh)

;Create camera
cam = zCameraNode(0)
zNodePosition(cam, 0, 250, -500)
zNodeCollision(cam, map, 48, 256, 48)

font = zFontLoad("media/fonts/courier.bmp")

zMousePosition(zDeviceWidth()/2, zDeviceHeight()/2) : mx = zMouseX() : my = zMouseY()

While zDeviceClosed() = 0 And zKeyHit(KEY_ESCAPE) = 0
  mxs = zMouseX() - mx : mys = zMouseY() - my
  zMousePosition(zDeviceWidth()/2, zDeviceHeight()/2)
  mx = zMouseX() : my = zMouseY()

  pitch# = zNodePitch(cam) - mys
  If pitch# < -80 Then pitch# = -80
  If pitch# > 80 Then pitch# = 80
  zNodeRotate(cam, pitch#, zNodeYaw(cam) + mxs, 0)

  If zKeyDown(KEY_UP) Then zNodeMove(cam, 0, 0, 6)
  If zKeyDown(KEY_DOWN) Then zNodeMove(cam, 0, 0, -6)
  If zKeyDown(KEY_LEFT) Then zNodeMove(cam, -6, 0, 0)
  If zKeyDown(KEY_RIGHT) Then zNodeMove(cam, 6, 0, 0)
  zNodePosition(cam, zNodeX(cam,0), zNodeY(cam,0) - 6, zNodeZ(cam,0))

  zSceneBegin 3, 0
  zSceneRender(cam)
  zSetColor(zGetColor(255,255,255,255))
  zDrawText(font, Str$(zDeviceFPS()) + " FPS", 0, 0)
  zSceneEnd()
EndWhile

zDeviceClose()

End


I will release this dll, with full documentation, for a really low price.

The estimated release date is mid-july.
== Jedive ==
AthlonXP 1600+, 512MB, GeForce5200, WinXP/DX9, Fedora Core 3
iBook G4 1Ghz, 256MB, Radeon9200, Mac OS X Panther

empty

That looks really good, Jedive, and from the code example it seems to be easy to use.

kevin

#2
It's does look pretty damn good.  I just wonder when i'll get a private demo :)

kevin

A link to this same thread on TGC

http://forum.thegamecreators.com/?m=forum_view&t=55233&b=8

Jedive

Feature lists and a few screenshots about this project shown here:

http://www.coldsteel.tk
== Jedive ==
AthlonXP 1600+, 512MB, GeForce5200, WinXP/DX9, Fedora Core 3
iBook G4 1Ghz, 256MB, Radeon9200, Mac OS X Panther

Squiffy

Any more news on this? July has come and gone......:)

kevin

Here's the last i heard from the author on 22nd Aug,

Quote3D Zone is now called ColdSteel, and is going much further than what I
would ever have thought. You can use the engine in three ways:

- As a .dll, being compatible with Blitz3D/Plus/Max, PureBasic, C++,
IBasic, PlayBasic, PureBasic, and any language which supports loading of
dlls.

- As a standalone engine, coding your game in a .dll, in a similar way
in which the Quake3 or Cipher engines work. You code your game, for
example, in a .dll made in C, and then the engine runtime runs the code
from the dll.

I will make an official announcement about this soon, I mainly have to
deal with bugfixes before release. I may release a beta version of
ColdSteel Lite, the free version of the engine. Will keep you updated as
soon as there's more.


HellDragon

#7
The ColdSteel is not working for me  :(

What's the official website(if there's any) ?

EDIT: ColdSteel  :P
PlayBasic Rulz!

kohai

#8
Yup, seems the site is not available anymore ...

But it can be reached here : http://www.coldsteelengine.com/ :)

Though i don't mean any bashing, this engine is very much alike a port of the opensource IRRLICHT engine ( according to the features which are VERY similar ).

Word !

HellDragon

Can I use  IRRLICHT with Play Basic?
PlayBasic Rulz!

kevin

Kohai,

Quoteopensource IRRLICHT engine

Yeah, Cold steel is based upon it.




HellDragon,

 Perhaps, might require some wrapping though I dunno, never looked at it.

ale870

I found this interesting thread... Have you any news about PlayBasic and ColdSteel (or another 3D engine)?

--Alessandro

kevin