Sprite3D engine with FX [cross-platform]

Share your advanced PureBasic knowledge/code with the community.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Sprite3D engine with FX [cross-platform]

Post by Rook Zimbabwe »

This is very well done! :mrgreen:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Sprite3D engine with FX [cross-platform]

Post by jamirokwai »

eddy wrote:Todo:
- text sprites
- text FXs
- bitmap font generator
This is great :)
Regards,
JamiroKwai
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: Sprite3D engine with FX [cross-platform]

Post by eddy »

Could you test this on Mac OSX / Linux ?
I want to know if containerGadget can contain a WindowedScreen.

Code: Select all

InitKeyboard()
InitSprite()

#w=300
#h=300
OpenWindow(0, 0, 0, #w, #h, "Screen")

contain=ContainerGadget(1, 5, 5, 200, 200, #PB_Container_Double)
OpenWindowedScreen(contain, 0, 0, 512, 512, 0, 0, 0)

Repeat
   StartDrawing(ScreenOutput())
      Box(5, 5, 32, 32, RGB(255, 0, 0))
   StopDrawing()
   FlipBuffers()
   ClearScreen(RGB(0, 0, 0))
   ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape) Or WaitWindowEvent(0)=#PB_Event_CloseWindow
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: Sprite3D engine with FX [cross-platform]

Post by eddy »

Image
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Sprite3D engine with FX [cross-platform]

Post by jamirokwai »

eddy wrote:Could you test this on Mac OSX / Linux ?
I want to know if containerGadget can contain a WindowedScreen.
I had to change OpenWindowedScreen(contain, 0, 0, 512, 512, 0, 0, 0) to OpenWindowedScreen(WindowID(0), 0, 0, 512, 512, 0, 0, 0).
The slightly changed code displays:

Image
Regards,
JamiroKwai
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Sprite3D engine with FX [cross-platform]

Post by jamirokwai »

eddy wrote:Image
Wow. The font-editor looks promising. Me thinks, the biggest advantage of using TTF-Fonts for this is, that you already own a license for the system-fonts on Mac OS or Windows. And there also are lots of free TTF-Fonts out there...

Maybe you should set up some donation-site when you reach v1.0?
I would donate maybe 10 or so Euros for a commercial grade engine if this engine works as I assume at the moment :)
Probably I will be using the Sprite3D engine for a bigger commercial project soon!

Thanks again!
Regards,
JamiroKwai
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Sprite3D engine with FX [cross-platform]

Post by jamirokwai »

I found a typo in line 1767. Is Procedure RandomSpriteAgnle(Sprite, angle1.f=0, angle2.f=360), should possibly be RandomSpriteAngle.

A little :wink: feature request...
Could you add collision detection? Would be very useful to detect if the mousecursor is actually touching another sprite.
Or for some kind of minimal physics-simulation, like in Billards, where you don't want to use the full physics package of Ogre.
Regards,
JamiroKwai
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: Sprite3D engine with FX [cross-platform]

Post by eddy »

jamirokwai wrote:
eddy wrote:Could you test this on Mac OSX / Linux ?
I want to know if containerGadget can contain a WindowedScreen.
I had to change OpenWindowedScreen(contain, 0, 0, 512, 512, 0, 0, 0) to OpenWindowedScreen(WindowID(0), 0, 0, 512, 512, 0, 0, 0).
The slightly changed code displays:
Hmm... :|
I'll try to use an MDI window. I hope a MDI child window can contain a windowed screen.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Re: Sprite3D engine with FX [cross-platform]

Post by Fluid Byte »

This is insane! Thanks eddy! 8)
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Re: Sprite3D engine with FX [cross-platform]

Post by byo »

This is an amazing work, eddy!
Thanks a lot for sharing.
Proud registered Purebasic user.
Because programming should be fun.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: Sprite3D engine with FX [cross-platform]

Post by eddy »

PB 4.40b6
you must replace the previous engine3d.DLL (or engine3d.so) file in your project directory.
If not, you can't test any examples.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Sprite3D engine with FX [cross-platform]

Post by Rook Zimbabwe »

Yep in 4.4 I get a compiler error that DirectX is not installed. I have DX9.0 installed aaccording to DXDIAG...

And the engine is in the same folder as the PB COde it is running from. And it is the PB4.4 dl from the fist page in the thread!

I am however using XP Pro SP3
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: Sprite3D engine with FX [cross-platform]

Post by eddy »

PB 3D engine has been updated, DirectX 9 is now the default PB subsystem.

You don't need to specify the subsystem in the compiler options.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
marc_1024
User
User
Posts: 10
Joined: Thu Feb 17, 2011 3:24 pm

Re: Sprite3D engine with FX [cross-platform]

Post by marc_1024 »

Hi Eddy,

The link :arrow: download : http://www.datafilehost.com/download-a1f2edf8.html
don't work anymore.

Where can I find the file or link ?

Thanks,
Marc
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Sprite3D engine with FX [cross-platform]

Post by Rook Zimbabwe »

I too have been waiting for news of this update!!! eddy dontcha luv us no more??? :mrgreen:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Post Reply