Search found 2291 matches

by angros47
May 28, 2024 23:25
Forum: Sources, Examples, Tips and Tricks
Topic: OpenB3D procedural wood material
Replies: 0
Views: 111

OpenB3D procedural wood material

Just a port of this example: https://shaderfrog.com/app/view/123 Basic code: #include "openb3d.bi" screenres 800,600, 32, , &h10002 Graphics3d 800,600,32,1,1 var camera=createcamera(0) cameraclscolor camera,0,0,255 'camerarange camera,3,10000 var woodshader=LoadShader("wood",...
by angros47
May 24, 2024 16:31
Forum: Community Discussion
Topic: File protected by Norton Data Protector - New User
Replies: 3
Views: 303

Re: File protected by Norton Data Protector - New User

Welcome to the forum

It is impossible to help you without the source code of your program. A possible issue could be a variable referenced as INTEGER and as LONG in different spots (in 32 bit mode INTEGER and LONG are the same data type, in 64 bit mode no)
by angros47
May 05, 2024 22:59
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 314691

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...
by angros47
Apr 30, 2024 21:59
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 314691

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)
by angros47
Apr 29, 2024 22:26
Forum: DOS
Topic: FLTK for DOS
Replies: 18
Views: 5431

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?
by angros47
Apr 24, 2024 17:55
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 314691

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 ...
by angros47
Apr 22, 2024 9:14
Forum: DOS
Topic: FBFMlib - An easy-to-use OPL2 FM-synth library for FreeBASIC DOS.
Replies: 3
Views: 979

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...
by angros47
Apr 18, 2024 20:33
Forum: DOS
Topic: FBFMlib - An easy-to-use OPL2 FM-synth library for FreeBASIC DOS.
Replies: 3
Views: 979

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
by angros47
Apr 12, 2024 18:57
Forum: Sources, Examples, Tips and Tricks
Topic: OpenB3D ASCII Art
Replies: 2
Views: 348

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...
by angros47
Mar 11, 2024 15:43
Forum: Windows
Topic: Interpretation
Replies: 9
Views: 872

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...
by angros47
Mar 07, 2024 18:38
Forum: Windows
Topic: Interpretation
Replies: 9
Views: 872

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
by angros47
Mar 05, 2024 18:04
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 295
Views: 29645

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...
by angros47
Mar 05, 2024 1:05
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 295
Views: 29645

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 ...
by angros47
Feb 28, 2024 17:23
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 295
Views: 29645

Re: Freebasic 1.20.0 Development

I wonder, will the update fix this bug too?
viewtopic.php?t=31753