libOpenB3D Win32/64 Linux32/64

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
D.J.Peters
Posts: 7810
Joined: May 28, 2005 3:28

libOpenB3D Win32/64 Linux32/64

Postby D.J.Peters » Dec 13, 2018 10:30

I share my personal version of MiniB3D/OpenB3D with you I name it libOpenB3D.
I fixed some small bugs in and changed all color arguments and added new stuff also.

I wrote "openb3d.bi" completely new.
All in #lang "FB" OOP style now

download a FreeBASIC package and some tests: libOpenB3D-1.25.zip last upload: Aug 31 2019
(openb3d.bi libOpenB3D-32.so libOpenB3D-64.so OpenB3D-32.dll OpenB3D-64.dll)

source code with Code::Blocks project libOpenB3D-1.25-src.zip last upload: Aug 29, 2019
(source code and pre compiled static libs of gLee are included Win32/64 Linux32/64)

I commented the most command's but not all 400 in the include file "openb3d.bi" !

Most commands was documented from BlitzBasic 3D (so far I know)
but the commercial BB3D site is down and was published as open source.

I found other places with documentations.
help: english
Hilfe: german

Joshy
Last edited by D.J.Peters on Sep 03, 2019 10:44, edited 7 times in total.
D.J.Peters
Posts: 7810
Joined: May 28, 2005 3:28

Re: libOpenB3D Win32/64 Linux32/64

Postby D.J.Peters » Dec 13, 2018 18:16

The 32-bit DLL in the zip file was out of date is fixed now.

Joshy
D.J.Peters
Posts: 7810
Joined: May 28, 2005 3:28

Re: libOpenB3D Win32/64 Linux32/64

Postby D.J.Peters » Dec 22, 2018 12:12

new upload available (see first post)
I added a small fix: viewtopic.php?f=14&t=15409&p=256248#p256248

Joshy
veggie
Posts: 75
Joined: May 17, 2009 12:52

Re: libOpenB3D Win32/64 Linux32/64

Postby veggie » Jan 17, 2019 2:20

Thanks for this Joshy.

As a long time past user I've recently reacquainted myself with OpenB3D. It used to have quite a few bugs, are there any bugs in the latest version I need to be aware of?
D.J.Peters
Posts: 7810
Joined: May 28, 2005 3:28

Re: libOpenB3D Win32/64 Linux32/64

Postby D.J.Peters » Aug 27, 2019 20:51

New upload available (see first post)

I added some new commands (now ~400 before 324)
All new stuff marked with NEW: optional (new) arguments commented with NOTE:

I improved the shadow object with an optional second mesh argument.
compare file "shadow.bas" with "shadownew.bas"

I added many comments in file "openb3d.bi" read it or let it :-)

I improved many parts of the C++ source code search for !!! with your favorite IDE you will find more than 150 places with changes.

Joshy
Last edited by D.J.Peters on Aug 27, 2019 22:56, edited 1 time in total.
Knatterton
Posts: 139
Joined: Apr 19, 2019 19:03

Re: libOpenB3D Win32/64 Linux32/64

Postby Knatterton » Aug 27, 2019 21:14

Another project that worked out of the box here on Mint 19,2 64.
Gunslinger
Posts: 31
Joined: Mar 08, 2016 19:10

Re: libOpenB3D Win32/64 Linux32/64

Postby Gunslinger » Aug 29, 2019 22:16

Wow this is some very nice work, and yes i did not know that the lipOpenB3d is so different from OpenB3D.
I need to study this one later, first this.

I had to change a line in your openB3D.bi

Code: Select all

declare sub      ScaleTexture   (byval _Texture as tTexture, byval fUScaleFactor as single, byval fVScaleFactor as single)

to

Code: Select all

declare sub      ScaleTexture   (byval _Texture as tTexture ptr, byval fUScaleFactor as single, byval fVScaleFactor as single)


The loadtexture function returns a tTexture pointer
I think this counts for more lines, RotateTexture, PositionTexture, ...
D.J.Peters
Posts: 7810
Joined: May 28, 2005 3:28

Re: libOpenB3D Win32/64 Linux32/64

Postby D.J.Peters » Aug 30, 2019 0:12

@Gunslinger good find I will fix it.

Joshy
D.J.Peters
Posts: 7810
Joined: May 28, 2005 3:28

Re: libOpenB3D Win32/64 Linux32/64

Postby D.J.Peters » Aug 31, 2019 0:10

All fixed and added some error check's for all loading stuff in the *.bas files !

Joshy

Code: Select all

var craft = LoadMesh("fighter.3ds")
if craft = 0 then
  windowtitle "fatal error: loading 'fighter.3ds'"
  beep:sleep:end 1
end if

Return to “Libraries”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 54 guests