Search found 2574 matches

by badidea
Apr 11, 2024 22:36
Forum: Sources, Examples, Tips and Tricks
Topic: Custom typeface (font)
Replies: 5
Views: 333

Re: Custom typeface (font)

Thanks, I will look into that. Sometimes you have to try the ugly work yourself to better appreciate what others have already done, I guess.
by badidea
Apr 10, 2024 22:42
Forum: Sources, Examples, Tips and Tricks
Topic: Custom typeface (font)
Replies: 5
Views: 333

Re: Custom typeface (font)

dodicat wrote: Apr 10, 2024 1:19 Many years ago I painfully made up the keyboard characters ,British, including chr(163) the £ sign.
I don't know how £ will show over there!.
Looks like a lot of work indeed. The £ only shows if set set the file encoding to e.g. ISO-8859-1 instead of UTF8.
by badidea
Apr 09, 2024 22:13
Forum: Linux
Topic: Show Application in CLI
Replies: 6
Views: 2819

Re: Show Application in CLI

I don't mind robots joining the forum, as long as they contribute something useful. And summarizing your problems is not so useful :-)
by badidea
Apr 09, 2024 22:00
Forum: Linux
Topic: Show Application in CLI
Replies: 6
Views: 2819

Re: Show Application in CLI

Is Kevin498 human?
by badidea
Apr 08, 2024 21:37
Forum: Sources, Examples, Tips and Tricks
Topic: Custom typeface (font)
Replies: 5
Views: 333

Custom typeface (font)

Just for fun I was trying to design a typeface. The plan is to convert the characters into 3d-objects, but in 2d this might also be useful. Only "A...Z" and "0..9" created, "a..z" is more challenging. Code: #include "fbgfx.bi" const SW = 800, SH = 600 'screen ...
by badidea
Feb 21, 2024 21:37
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307254

Re: MiniB3d for FreeBasic

Ok, I will also try a particle emitter.
by badidea
Feb 20, 2024 0:08
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307254

Re: MiniB3d for FreeBasic

Continuation of the project above. Control keys: up/down, left/right, a/z. Any idea how to best simulate a laser beam spot? A light cone with small angle does not look so nice. #include "fbgfx.bi" #ifdef __FB_64BIT__ #include "openb3d-64/openb3d.bi" #else #include "openb3d-3...
by badidea
Feb 15, 2024 0:01
Forum: General
Topic: Uncompressed Game Graphics
Replies: 4
Views: 427

Re: Uncompressed Game Graphics

PNG work well for certain graphics. Not sure what the best PNG library for freebasic is at the moment however.
by badidea
Feb 14, 2024 23:56
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307254

Re: MiniB3d for FreeBasic

Trying out meshCsg (subtract and intersect). Works well: #include "fbgfx.bi" #ifdef __FB_64BIT__ #include "openb3d-64/openb3d.bi" #else #include "openb3d-32_old/openb3d.bi" #endif const ENTITY_FX_NONE = 0 const ENTITY_FX_FULL_BRIGHT = 1 const ENTITY_FX_VERTEX_COLOR = 2 ...
by badidea
Feb 12, 2024 20:30
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307254

Re: MiniB3d for FreeBasic

Small remark, the 1.26 guide says on CreateCylinder:
"solid (optional) - true for a cylinder with a base, false for a tube. Defaults to true."
But it must be 1 for solid, not freebasic's boolean true.
by badidea
Feb 08, 2024 21:44
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307254

Re: MiniB3d for FreeBasic

The decal mesh example (with camera zoom 6) looks like this here:
https://surfdrive.surf.nl/files/index.p ... esh_01.png

Is there a way to check which version of openb3d is installed?
by badidea
Feb 08, 2024 20:59
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307254

Re: MiniB3d for FreeBasic

angros47 wrote: Feb 08, 2024 0:56 Uploaded a new version, with bug fixed.
Thanks, looks good here as well.
by badidea
Feb 05, 2024 23:00
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307254

Re: MiniB3d for FreeBasic

There is something weird going on with multiple camera's and camera fog. The code below should display 3 rubik's cubes. 2 with fog, 1 without. What I get is only 2 cubes visible. 1 with fog, 1 without. Uncommenting line 85 CameraFogMode(cam1, 1) makes the cube on cam3 appear. #include "openb3d/...
by badidea
Jan 27, 2024 22:39
Forum: Sources, Examples, Tips and Tricks
Topic: Langton's ant
Replies: 27
Views: 1773

Re: Langton's ant

Ok, final update, I think. The project is getting boring. I included Langton's ant movement and BasicCoder2 ant movement as an alternative for the random walk during food search. Set WALK_METHOD at line 34 to WALK_RANDOM or WALK_BC2 or WALK_LANGTON 'https://www.freebasic.net/forum/viewtopic.php?p=30...
by badidea
Jan 25, 2024 0:32
Forum: Game Dev
Topic: Gravity test program
Replies: 4
Views: 429

Re: Gravity test program

neil wrote: Jan 25, 2024 0:23Could someone let me know if the gravity simulation for the moon is OK?
Both acceleration and gravity implementation look good. For a real simulation with "meters" en "seconds", numbers will be different, but for a more game-like use, that is not so relevant.