Search found 2288 matches

by angros47
Dec 24, 2023 16:27
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1087
Views: 309604

Re: MiniB3d for FreeBasic

ResetEntity is supposed to be used after moving an entity, and before updating the world, to avoid collisions to be checked. It's useful, for example, when you want to place the player in a specific place of the world, and you have already enabled collision checking (otherwise it will be considered ...
by angros47
Dec 23, 2023 17:01
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1087
Views: 309604

Re: MiniB3d for FreeBasic

There is no need to assign a different collision type to each star. You can just replace the lines 76-77 with: ENTITYTYPE star(i), collision_earth 'collisions collision_player1, collision_earth, 2, 2 'not needed anymore and everything will work. You will still be able to detect which entity is the p...
by angros47
Dec 20, 2023 23:53
Forum: General
Topic: Sprites and LTPB
Replies: 1
Views: 477

Re: Sprites and LTPB

NorbyDroid wrote: Dec 18, 2023 15:35 Without help I am unable to do any of the sound commands. Any help will be appreciated.
Can my sfx library help? https://www.freebasic.net/wiki/ExtLibsfx

I don't know how sound worked in LTPB, if you tell me more maybe I can help you implementing something similar.
by angros47
Dec 20, 2023 23:44
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1087
Views: 309604

Re: MiniB3d for FreeBasic

What issues did you encounter with the collisions? About CreateCylinder, it happens because that parameter is checked with "if(solid==true)", internally, and "true" is defined as 1. I guess it could be replaced with something like "if(solid!=false)" if it's needed to be...
by angros47
Dec 19, 2023 23:17
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1087
Views: 309604

Re: MiniB3d for FreeBasic

Actually, no, there isn't a better way in OpenB3D (nor in the original Blitz3D) to animate a texture. There are commands to translate, rotate or scale a texture (they might be useful when the animation is just a movement in one direction), otherwise you have to set the frame manually. Other solution...
by angros47
Dec 18, 2023 22:58
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1087
Views: 309604

Re: MiniB3d for FreeBasic

my problem is that it is very blurred. i have tried everything as texture filter setting. wonder if it's my vide card settings? I like to force it to pixels with blurred smooth look. It's not your video card. The issue is that the starting picture is too small (the picture you have rendered is more...
by angros47
Dec 04, 2023 0:49
Forum: Sources, Examples, Tips and Tricks
Topic: OpenB3D: Creating a 3d level from multiple tilemaps
Replies: 2
Views: 532

OpenB3D: Creating a 3d level from multiple tilemaps

This is an example of how to build a level using only simple 3d blocks (of course, they can have different texture or material), just as a 2d tilemap uses only small bitmaps that are connected together to form a large picture. #include "openb3d.bi" const w=9, d=9, h=3 dim shared level(9,2)...
by angros47
Dec 02, 2023 23:52
Forum: General
Topic: Parallel for loop in freebasic idea
Replies: 7
Views: 938

Re: Parallel for loop in freebasic idea

Shouldn't such a feature be something that happens under the hood? The GCC compiler has something like that: https://gcc.gnu.org/wiki/AutoParInGCC https://hub.packtpub.com/gnu-community-announces-parallel-gcc-for-parallelism-in-real-world-compilers/ Since FreeBasic can use GCC as backend, it should ...
by angros47
Nov 24, 2023 21:57
Forum: Emscripten
Topic: Prebuild fbc+emscripten installer
Replies: 7
Views: 1559

Re: Prebuild fbc+emscripten installer

Basically, you need FreeBasic for your system, and its source code. Then, you need to install Emscripten: under Linux, the procedure is something like: git clone https://github.com/emscripten-core/emsdk.git cd emsdk git pull ./emsdk install latest ./emsdk activate latest source ./emsdk_env.sh As des...
by angros47
Nov 24, 2023 7:39
Forum: Community Discussion
Topic: Possible bug? Undefined behavior in C emitted code?
Replies: 13
Views: 2606

Re: Possible bug? Undefined behavior in C emitted code?

The question is for me or for VANYA?
by angros47
Nov 21, 2023 18:17
Forum: Emscripten
Topic: What happened to the Emscripten branch?
Replies: 131
Views: 38731

Re: What happened to the Emscripten branch?

Tried the last version of Emscripten, they haven't fixed that bug yet
by angros47
Nov 13, 2023 22:04
Forum: DOS
Topic: [SOLVED] its possible Read a method from a executable file ?
Replies: 9
Views: 2109

Re: its possible Read a method from a executable file ?

Also, to load a .DXE module you must specify the extension ",dxe", while under Windows and Linux this is not required, so the program requires slight changes
by angros47
Nov 02, 2023 18:33
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1087
Views: 309604

Re: MiniB3d for FreeBasic

Some examples of shader for OpenB3D can be found in the package OB3DPlus. There is a PBR shader, a bump mapping one, an interior mapping one, a glass one, a shadow mapping one, and several post processing ones (including SSAO , Depth of Field, and more), and even an experimental (barely working) exa...
by angros47
Nov 02, 2023 0:32
Forum: Libraries & Headers
Topic: FLTK headers for FreeBasic OOP (no C wrapper)
Replies: 232
Views: 26990

Re: FLTK headers for FreeBasic OOP (no C wrapper)

Another example: inactive.bi: ' generated by Fast Light User Interface Designer (fluid) version 1.0305 #include once "FLTK/Fl.bi" #include once "FLTK/Fl_Double_Window.bi" #include once "FLTK/Fl_Group.bi" 'extern the_group as Fl_Group ptr #include once "FLTK/Fl_Butt...