Search found 2289 matches
- May 05, 2024 22:59
- Forum: Libraries & Headers
- Topic: MiniB3d for FreeBasic
- Replies: 1089
- Views: 310943
Re: MiniB3d for FreeBasic
Yes, that's the file, a demo could be something like: #include "ob3dplus.bi" declare function CreateShadowMap cdecl alias "CreateShadowMap" (byval light as any ptr) as any ptr declare sub UpdateShadows cdecl alias "UpdateShadows" () screen 18, 32, , &h10002 Graphics...
- Apr 30, 2024 21:59
- Forum: Libraries & Headers
- Topic: MiniB3d for FreeBasic
- Replies: 1089
- Views: 310943
Re: MiniB3d for FreeBasic
An example of shader code for shadows (although pretty bare) is included in OpenB3D Plus add on
Regarding the chunk world system. have also a look at built in octrees (blocks cannot cast shadows, but meshes inside octrees can, I think)
Regarding the chunk world system. have also a look at built in octrees (blocks cannot cast shadows, but meshes inside octrees can, I think)
- Apr 29, 2024 22:26
- Forum: DOS
- Topic: FLTK for DOS
- Replies: 18
- Views: 4802
Re: FLTK for DOS
I have a question for the developers: since I have added the headers to the source code of FreeBasic, is there a way to add the libraries to the DOS distribution, to have it able to work out of the box?
- Apr 24, 2024 17:55
- Forum: Libraries & Headers
- Topic: MiniB3d for FreeBasic
- Replies: 1089
- Views: 310943
Re: MiniB3d for FreeBasic
Shadows are not children of a mesh, they are managed aside. From the screenshot I cannot tell for sure what happens, although I can make a hypothesis: the algorithm used by OpenB3D is called Stencil Shadows, and it basically work by creating a mesh that is not visible, and is shaped like the shadow ...
- Apr 22, 2024 9:14
- Forum: DOS
- Topic: FBFMlib - An easy-to-use OPL2 FM-synth library for FreeBASIC DOS.
- Replies: 3
- Views: 911
Re: FBFMlib - An easy-to-use OPL2 FM-synth library for FreeBASIC DOS.
Now, going to that “ADLIBEMU.C” program in your link that you just showed me, I am DEFINITELY looking into it, for if my memory serves, that code can be adapted for use to replicate a true-quality emulation of the OPL2 chip in both Windows and Linux... but there is one problem though. This will cre...
- Apr 18, 2024 20:33
- Forum: DOS
- Topic: FBFMlib - An easy-to-use OPL2 FM-synth library for FreeBASIC DOS.
- Replies: 3
- Views: 911
Re: FBFMlib - An easy-to-use OPL2 FM-synth library for FreeBASIC DOS.
The OPL2 chip can be emulated via software on systems that don't have it:
viewtopic.php?p=192395#p192395
viewtopic.php?p=192395#p192395
- Apr 12, 2024 20:36
- Forum: Sources, Examples, Tips and Tricks
- Topic: OpenB3D ASCII Art
- Replies: 2
- Views: 307
- Apr 12, 2024 18:57
- Forum: Sources, Examples, Tips and Tricks
- Topic: OpenB3D ASCII Art
- Replies: 2
- Views: 307
OpenB3D ASCII Art
I found this shader, and I ported it to FreeBasic/OpenB3D: https://www.shadertoy.com/view/lssGDj The BASIC code (it requires the library OpenB3D) #include "openb3d.bi" screenres 800,600, 32, , &h10002 Graphics3d 800,600,32,1,1 var camera=createcamera(0) cameraclscolor camera,0,0,255 'c...
- Mar 11, 2024 15:43
- Forum: Windows
- Topic: Interpretation
- Replies: 9
- Views: 784
Re: Interpretation
I remember it, it was mentioned on PetesQBSite years ago, I intervened too: http://www.petesqbsite.com/phpBB3/viewtopic.php?p=39070#p39070 It is an open source program, written in javascript (with some WASM and TypeScript). It can be downloaded for free here: https://github.com/IshikawaMasashi/QBasi...
- Mar 07, 2024 18:38
- Forum: Windows
- Topic: Interpretation
- Replies: 9
- Views: 784
Re: Interpretation
I managed to integrate a basic interpreter inside FreeBasic programs:
viewtopic.php?t=29109
But that interpreter is not FreeBasic, it is a different basic dialect
viewtopic.php?t=29109
But that interpreter is not FreeBasic, it is a different basic dialect
- Mar 05, 2024 18:04
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 270
- Views: 26091
Re: Freebasic 1.20.0 Development
I think worth investigating because I'm not sure at the moment; the compiler sometimes uses constructions internally involving`*(@(expression))` where it's probably expected that it doesn't immediately convert types. Another approach would be to at least warn (or even error) about things that certa...
- Mar 05, 2024 1:05
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 270
- Views: 26091
Re: Freebasic 1.20.0 Development
I have a simple suggestion: wouldn't be possible to return the address of a fixed length string not as a string pointer (it wouldn't work, since it would not contain the terminator, nor the string descriptor), but as an Unsigned Byte pointer? After all, a fixed length string with no zero at the end ...
- Feb 28, 2024 17:23
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 270
- Views: 26091
Re: Freebasic 1.20.0 Development
I wonder, will the update fix this bug too?
viewtopic.php?t=31753
viewtopic.php?t=31753
- Feb 27, 2024 18:30
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 270
- Views: 26091
Re: Freebasic 1.20.0 Development
This doesn't affect me so whatever, but I'm gonna be honest: Well, that's the point: finding out whom would be affected... or if anyone would ever be affected. potentially throwing your entire current user base under the bus and changing the ABI for some potential future code or mythical people who...
- Feb 27, 2024 0:44
- Forum: Community Discussion
- Topic: Freebasic 1.20.0 Development
- Replies: 270
- Views: 26091
Re: Freebasic 1.20.0 Development
I must also add another consideration: like I said before, the change might introduce incompatibilities in case an UDT containing fixed length strings is saved in a file, and then such file is read by the same program, compiled with the newer version. But the same incompatibility currently exists if...