3D engine written in PB?

Advanced game related topics
mp303

3D engine written in PB?

Post by mp303 »

Any such beast?

I was just wondering ... using Macros, it should be possible to implement a really, really fast 3D engine in PB. Has anyone tried?
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Nope. Best we've seen are wrappers. I think DarkDragon came up with something but its far from optimal ro feature complete.

You'd have a better bet converting a c/c++ engine or wrapping one especially since you'll hit some pb limitations quite fast.
mp303

Post by mp303 »

What engines have been ported or wrapped? Is there a list?

and Macros would still speed things up, wouldn't they? you wouldn't have a function-call overhead in the PB wrapper itself, only perhaps C functions around a C++ class-based interface, or not?
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

dracflamloc wrote:Nope. Best we've seen are wrappers. I think DarkDragon came up with something but its far from optimal ro feature complete.
Yes, I was a newbie, when I started, but now it's working good for a mini game and after I finished my game, I will restart coding it with Interfaces por ejemplo.
bye,
Daniel
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

mp303 wrote:What engines have been ported or wrapped? Is there a list?

and Macros would still speed things up, wouldn't they? you wouldn't have a function-call overhead in the PB wrapper itself, only perhaps C functions around a C++ class-based interface, or not?
Irrlicht has been somewhat ported a few times, and OGRE of course comes with it, but otherwise 3d in pb is something that is severly lacking. Personally I'd like to see lightfeather ported/wrapped well
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

there are also somewhere on this forum low-level wrappers for DirectX and OpenGL.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
mp303

Post by mp303 »

Flype wrote:there are also somewhere on this forum low-level wrappers for DirectX and OpenGL.
Any reason why someone couldn't implement a custom 3D engine using low-level wrappers? Just wondering...
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

It would be possible to write something fast. But you would have to use assembly to get maximum performance! Macro's isnt the problem.
Thalius
Enthusiast
Enthusiast
Posts: 711
Joined: Thu Jul 17, 2003 4:15 pm
Contact:

Post by Thalius »

btw.. has anyone tried accessing the ogredll's directly yet ? ( Starting some wrapper ? ). If i had some more knowledge about wrappers id do it and atm i cant find the time ( as usual ... ) to look into it.... God i need a new Job !

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! ;)"
mp303

Post by mp303 »

Thalius wrote:btw.. has anyone tried accessing the ogredll's directly yet ? ( Starting some wrapper ? )
I've looked briefly at SOW (Simple Ogre Wrapper) ... This is a "flat" Ogre wrapper for BlitzMax, but the DLL itself is "just a DLL", so I expect it would be possible to use the wrapper DLL in PB as well??

This would be considerably less work than starting a new wrapper.

And from the demos, it seems this wrapper DLL has a fairly complete function set - it even has support for physics with ODE ... looks nifty :)
Thalius
Enthusiast
Enthusiast
Posts: 711
Joined: Thu Jul 17, 2003 4:15 pm
Contact:

Post by Thalius »

hmm worth a look at !

Currently we have ODE aswell.. tho id like to be flexible...

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! ;)"
Post Reply