MiniB3d for FreeBasic

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

Re: MiniB3d for FreeBasic

Postby D.J.Peters » Aug 29, 2019 5:15

@Gunslinger you never posted the problem of .3ds loading with my build of the lib.
The right forum section is libOpenB3D-1.25 not MiniB3d !
How ever I will look for the problem on weekend, but I self never changed or used the 3ds loader before.

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

Re: MiniB3d for FreeBasic

Postby D.J.Peters » Aug 29, 2019 7:03

It works with libOpenB3D-1.25 from 2019 tested on Windows and Linux both 32 and 64-bit !
I upload "fighter.3ds" in the zip file see LoadMesh.bas.
By the way your code is "2018" you have to read the notes about changes in the "openb3d.bi" file.

Again "MiniB3d or OpenB3d" and "libOpenB3D" isn't the same !

Both use the C++ library but the interface are different.
For example in my build RGBA colors are in range of 0.0 - 1.0 each
while the other or original interface use 0-255 for RGB but 0.0-1.0 for A.

Use MiniB3d/OpenB3d if it the right for you
but if you use "libOpenB3D-1.25" use the right forum section for any questions or problems.

Happy 3D coding.

Joshy
angros47
Posts: 1670
Joined: Jun 21, 2005 19:04

Re: MiniB3d for FreeBasic

Postby angros47 » Oct 24, 2019 23:10

IvanisIvan
Posts: 20
Joined: Nov 07, 2019 21:57

Re: MiniB3d for FreeBasic

Postby IvanisIvan » Sep 14, 2020 23:16

How do I install a Library to FBIDE?
MrSwiss
Posts: 3569
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: MiniB3d for FreeBasic

Postby MrSwiss » Sep 15, 2020 2:52

IvanisIvan wrote:How do I install a Library to FBIDE?
Sorry, but the question is 'all wrong'.
Libraries are installed into the Compiler-Tree (FBC's file structure) and not any IDE.

E.g.: you have FBC (64 bit) in C:\FreeBASIC\fbc.exe (and more files) then
Libraries go to C:\FreeBASIC\lib\win64\ (..\win32\ for 32 bit FBC)
(just a example for a Windows installation)
Important: the bitness of compiler and libraries must be the same (mandatory).
dodicat
Posts: 6629
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: MiniB3d for FreeBasic

Postby dodicat » Sep 15, 2020 7:42

Put the library file (.a or .dll) into the same folder as your code calling it.
It will work perfectly well this way.
If you really like the library (static .a), then do as Mr Swiss advises.
Any .dll you like you can put into your system folder (system32 windows) and put the .dll.a file into the lib folder as Mr Swiss advises.
FB will always produce a .dll.a file if you create a .dll with fb.
Otherwise you will have to create your own with dlltool.exe and gendef.exe.
jj2007
Posts: 1606
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

Re: MiniB3d for FreeBasic

Postby jj2007 » Sep 15, 2020 7:48

IvanisIvan wrote:How do I install a Library to FBIDE?
Hi Ivan,

As an example, the Cairo library would sit in two locations:
C:\MyBasics\FreeBasic\lib\win32\Cairo\*.dll
C:\MyBasics\FreeBasic\inc\Cairo\*.bi

Once the necessary files sit there, you can compile e.g. C:\MyBasics\FreeBasic\lib\win32\Cairo\line.bas (if you do it from other locations, it will not find the necessary includes, unless you manually set the PATH variables).

P.S.:
MrSwiss wrote:Sorry, but the question is 'all wrong'.
Ignore him ;-)
IvanisIvan
Posts: 20
Joined: Nov 07, 2019 21:57

Re: MiniB3d for FreeBasic

Postby IvanisIvan » Sep 15, 2020 21:47

jj2007 wrote:
IvanisIvan wrote:How do I install a Library to FBIDE?
Hi Ivan,

As an example, the Cairo library would sit in two locations:
C:\MyBasics\FreeBasic\lib\win32\Cairo\*.dll
C:\MyBasics\FreeBasic\inc\Cairo\*.bi

Once the necessary files sit there, you can compile e.g. C:\MyBasics\FreeBasic\lib\win32\Cairo\line.bas (if you do it from other locations, it will not find the necessary includes, unless you manually set the PATH variables).

P.S.:
MrSwiss wrote:Sorry, but the question is 'all wrong'.
Ignore him ;-)

Thank you! If I could upvote this, I would. :D
IvanisIvan
Posts: 20
Joined: Nov 07, 2019 21:57

Re: MiniB3d for FreeBasic

Postby IvanisIvan » Sep 15, 2020 22:11

I'm going to sound real stupid but I can't seem to find minib3d.bi. I downloaded the zip file from https://sourceforge.net/projects/minib3d/. Please tell me what I am doing wrong.
jj2007
Posts: 1606
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

Re: MiniB3d for FreeBasic

Postby jj2007 » Sep 15, 2020 23:32

IvanisIvan
Posts: 20
Joined: Nov 07, 2019 21:57

Re: MiniB3d for FreeBasic

Postby IvanisIvan » Sep 15, 2020 23:51

jj2007 wrote:Try this post: viewtopic.php?f=14&t=27233

thank you, that was very helpful!
angros47
Posts: 1670
Joined: Jun 21, 2005 19:04

Re: MiniB3d for FreeBasic

Postby angros47 » Sep 16, 2020 0:01

IvanisIvan wrote:I can't seem to find minib3d.bi


In the later version it's called openb3d.bi

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 6 guests