Search found 684 matches

by h4tt3n
Feb 20, 2021 17:21
Forum: Tips and Tricks
Topic: 2D shadows
Replies: 26
Views: 3999

Re: 2D shadows

Big big big thankyou! You're welcome sero! :-) I'll see if I can dig out some more stuff. Now I just need to crack the 2d shadow problem, or I won't be able to sleee again... Edit: I noticed that you initially revived this thread in search of line to circle tangent intersection. This type of proble...
by h4tt3n
Feb 19, 2021 10:46
Forum: Tips and Tricks
Topic: 2D shadows
Replies: 26
Views: 3999

Re: 2D shadows

I found a small, and very simple SAT test of mine: ''**************************************************************************************** '' '' separating axis theorem collision detection, Mike "h4tt3n", february 2012 '' test # 02, vector projection '' '' pick up control points and mov...
by h4tt3n
Feb 19, 2021 7:45
Forum: Tips and Tricks
Topic: 2D shadows
Replies: 26
Views: 3999

Re: 2D shadows

That's a great example, sero :-) In retrospect I am sorry for having not written a more elaborate reply regarding the SAT algorithm. My main point here is: the idea of SAT is casting the shadow of a pair of objects on a flat surface for every vertex, and if there is a ray of light between any of tho...
by h4tt3n
Feb 16, 2021 18:02
Forum: Tips and Tricks
Topic: 2D shadows
Replies: 26
Views: 3999

Re: 2D shadows

Looks great! I am completely certain that you can do this with pure vector math (no cos / sin / sqr / atan2) by modifying the Separating Axis Theorem (SAT), which is used for very fast geometrical object collision detection. Google is your friend.
by h4tt3n
Jul 05, 2020 15:42
Forum: Community Discussion
Topic: Problems with downloading from Sourceforge
Replies: 5
Views: 1318

Problems with downloading from Sourceforge

Hello folks, For quite a while I have had notorious problems when dl'ing FB from sorceforge. I am using Win 10 + Chrome. This goes for the following files: FreeBASIC-1.07.1-win64.zip FreeBASIC-1.07.1-win64.7z FreeBASIC-1.07.1-win64-gcc-8.1.0.zip The top file will dl but never finish, and can't be op...
by h4tt3n
Apr 10, 2020 6:49
Forum: Tips and Tricks
Topic: fbgfx versus opengl graphics
Replies: 25
Views: 3392

Re: fbgfx versus opengl graphics

With lang fb it's in namespace FB fb.GET_WINDOW_TITLE works. That's it! Forgot the namespace. Should have learned by now not to code when tired. So, to turn on open gl back end rendering, you simply calll: ScreenConrtol fb.SET_GL_2D_MODE Without parameters? I tried the following before secreenres, ...
by h4tt3n
Apr 09, 2020 16:10
Forum: Tips and Tricks
Topic: fbgfx versus opengl graphics
Replies: 25
Views: 3392

Re: fbgfx versus opengl graphics

My Mistake: Here in the Screen Control: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgScreencontrol You can set OpenGL as the backend driver for FBGFX. I'm having a little trouble deciphering the info from the link and getting this to work. I keep getting the following error. "error 42: ...
by h4tt3n
Dec 07, 2019 19:57
Forum: Community Discussion
Topic: Sharing some good news :-)
Replies: 9
Views: 1529

Re: Sharing some good news :-)

leopardpm wrote:will you be using FB as your main language at the job?


No, they aren't using FB in-house. But, I'll be pestering my colleagues about how awesome it is, and maybe some day they'll give in :-)
by h4tt3n
Dec 06, 2019 14:16
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 57
Views: 29258

Re: FreeBasic communication with Arduino logic error?

Hello folks, This was a great read, thanks for a super tutorial on just exactly the topic I was searching for! Can you tell me what the best strategy is for sending large amounts of data between a running FB application and an Arduino? Basically I want to update a group of member vars in a type inst...
by h4tt3n
Dec 06, 2019 8:18
Forum: Community Discussion
Topic: Sharing some good news :-)
Replies: 9
Views: 1529

Re: Sharing some good news :-)

D.J.Peters wrote:Congratulations on the new job, in which programming area ?Joshy


It's at a small company that develops sensor hardware and writes all software from low-level controller code to customer user interfaces in the house. So, it's a mixed bag, but to begin with I think it will be mostly high-level stuff.
by h4tt3n
Dec 03, 2019 17:05
Forum: Community Discussion
Topic: Sharing some good news :-)
Replies: 9
Views: 1529

Re: Sharing some good news :-)

dodicat wrote:Well done.
Well written fb looks cool and runs well.
You forum contributions are all in this category.


Thank you for the kind words dodicat.
by h4tt3n
Dec 03, 2019 10:30
Forum: Community Discussion
Topic: Sharing some good news :-)
Replies: 9
Views: 1529

Sharing some good news :-)

Hello folks,

I just wanted to tell you this. Yesterday I was at a programming job interview, and I only used FreeBASIC code examples to show my skills. And I got the job! :-)

Cheers, Mike
by h4tt3n
Nov 11, 2019 20:58
Forum: Projects
Topic: FreeBASIC Extended Library build
Replies: 4
Views: 5149

Re: FreeBASIC Extended Library build

Great, thanks!
by h4tt3n
Sep 22, 2019 9:23
Forum: General
Topic: Function parameter call by reference?
Replies: 3
Views: 1800

Re: Function parameter call by reference?

Thanks. This confirms what I thought, that it should simply be @w, @h, but this returns a suspicious pointer warning and doesn't work. So, I'm guessing there may be a small error either in the original code or in the FB SDL header.

Go to advanced search