Search found 122 matches
- Oct 09, 2021 19:39
- Forum: Projects
- Topic: FB SVG Clipper
- Replies: 2
- Views: 1497
Re: FB SVG Clipper
Hi TJF, I've yet seen the cairo graphics library but, even if it covers a wide range of applications I didn't use it never. At the moment I prefer to don't use external libraries in order to simplify the compiling process. Anyway thanks for the tip, I will give it a try as time allows. Concerning th...
- Oct 08, 2021 19:28
- Forum: Projects
- Topic: FB SVG Clipper
- Replies: 2
- Views: 1497
FB SVG Clipper
Here's a free and open source project I'm working on. FB SVG Clipper is a utility to clip bitmap images using the Bézier tool. https://github.com/Pitto/FB_SVG_Clipper It's possible to export the clipping as SVG file with a linked bitmap . List of commands are available in the readme.md file. For now...
- Apr 05, 2021 8:44
- Forum: General
- Topic: Bresenham thick line code
- Replies: 3
- Views: 1379
Re: Bresenham thick line code
Hi UEZ, It's a curious coincidence, just these days I was trying to translate the same function (I hadn't seen this post of yours), and I encountered the same problem, the starting edge seems to be drawed only at right angle. So I tried to make a comparison between six different ways to fill a thick...
- Nov 21, 2020 13:39
- Forum: Sources, Examples, Tips and Tricks
- Topic: Bresenham Triangle rasterization
- Replies: 1
- Views: 1158
Bresenham Triangle rasterization
For a project of mine I needed a class that allows to fill unregular triangles. The Bresenham's line can also be used as base to rasterize triangles (see https://cglearn.codelight.eu/pub/computer-graphics/task/bresenham-triangle). The triangle class: 'Fill a triangle using bresenham lines by Pitto '...
- Nov 15, 2020 21:59
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simply mouse class
- Replies: 10
- Views: 3048
Re: Simply mouse class
Hi Paul Doe, funny game and useful framework to improve my poor math. Just for the sake of learning & debug: this is the old keyboard class I've used in the compo https://github.com/Pitto/Impossible_Victhorse/blob/master/inc/keyboard.bi: '' A simple class to help us deal with the keyboard ' by p...
- Nov 15, 2020 18:19
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simply mouse class
- Replies: 10
- Views: 3048
Re: Simply mouse class
Hi paul doe, well done, it's much more powerful than mine version. I see that it recognizes also a button release outside the window. I will study it. Thanks. I go a little off topic: I was working on this mouse class because I wish to rewrite from scratch FB Low Poly Editor ( https://github.com/Pit...
- Nov 15, 2020 12:13
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simply mouse class
- Replies: 10
- Views: 3048
Re: Simply mouse class
Hi paul doe,
thank you.
Feel free to post it here.
Best regards
thank you.
Feel free to post it here.
Best regards
- Nov 15, 2020 11:38
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simply mouse class
- Replies: 10
- Views: 3048
Re: Simply mouse class
Hi Tourist Trap,
thanks for the review, I appreciate it.
I think that the problem may be fixed in this way: clipping the mouse to the to the foreground window (https://www.freebasic.net/wiki/KeyPgSetmouse).
I've updated the first post.
thanks for the review, I appreciate it.
I think that the problem may be fixed in this way: clipping the mouse to the to the foreground window (https://www.freebasic.net/wiki/KeyPgSetmouse).
Code: Select all
SetMouse 640\2, 480\2, 0, 1
- Nov 14, 2020 13:07
- Forum: Sources, Examples, Tips and Tricks
- Topic: Simply mouse class
- Replies: 10
- Views: 3048
Simply mouse class
Here's a simply mouse class , recognizes Left & Rigth button being pressed, held or released; double click of the left button, mouse wheel and dragging. No external libraries, only fbgfx. Based upon a snippet by Paul Doe (https://www.freebasic.net/forum/viewtopic.php?f=15&t=26673) The class ...
- Aug 07, 2019 12:04
- Forum: Game Dev
- Topic: The 50 years ago moon landing 4K contest!
- Replies: 33
- Views: 22524
Re: The 50 years ago moon landing 4K contest!
? "-Houston, we have a problem..." sleep 1000 ? "-What's the problem?" sleep 1000 ? "-Some issues on Linux here" sleep 1000 ? "-Swap line 202 with 203 and recompile... next time please read better the manual" ? " see https://www.freebasic.net/wiki/wikka....
- Jul 30, 2019 19:24
- Forum: Game Dev
- Topic: The 50 years ago moon landing 4K contest!
- Replies: 33
- Views: 22524
Re: The 50 years ago moon landing 4K contest!
Thank you.
I think I can squeeze other bytes and add some feature.
It's a funny contest.
I think I can squeeze other bytes and add some feature.
It's a funny contest.
- Jul 27, 2019 11:53
- Forum: Game Dev
- Topic: The 50 years ago moon landing 4K contest!
- Replies: 33
- Views: 22524
Re: The 50 years ago moon landing 4K contest!
Here's my entry… The moon landing from Collins' perspective there's still room for improvements… Use arrow Keys to move the module, spacebar to throttle. Even horizontal movement uses fuel. Don't waste the fuel. I didn't realize that my coding style wasted huge amount of bytes :) #include "fbgf...
- Jul 25, 2019 18:21
- Forum: Game Dev
- Topic: The 50 years ago moon landing 4K contest!
- Replies: 33
- Views: 22524
Re: The 50 years ago moon landing 4K contest!
@UEZ
Moonshine 700 bytes -> Simply beautiful
Best regards
Moonshine 700 bytes -> Simply beautiful
Best regards
- Apr 14, 2019 12:14
- Forum: Sources, Examples, Tips and Tricks
- Topic: 3D Geometry , basics
- Replies: 50
- Views: 13647
Re: 3D Geometry , basics
Hi Luxan, it's nice to see an application of scanline algorithm I've translated in Freebasic from a C snippet some time ago (and Mr Swiss improved the translation). I've used it in some 2d applications such FB LowPolyEditor, but seems to work fine also on 3d environment. Good job so far Best regards
- Mar 02, 2019 14:48
- Forum: Community Discussion
- Topic: "A Love Letter To FreeBASIC" Game Dev Competition Community Poll (ROUND 1)
- Replies: 12
- Views: 5089
Re: "A Love Letter To FreeBASIC" Game Dev Competition Community Poll (ROUND 1)
Hi Lachie, Thank you again for organizing this competition and for reviewing the various games with competence and objectivity. I read your reviews in the other forum, they are very accurate, detailed and written with competence. And they explain thoroughly the motivations of the various scores. Rea...