Search found 115 matches

by Gunslinger
May 06, 2025 18:38
Forum: Game Dev
Topic: Equation of circle when three points are given
Replies: 7
Views: 1812

Re: Equation of circle when three points are given

screenres 1280, 720, 32 window screen(0, 0)-(12.8, 7.2) circle (0,0),109766.269893732, &HFFFFFF, 1.912081970313402, 1.912003984356504 This make my compiled code crash under 64bit windows 11 I can not test 32bit, then i get The system cannot execute the specified program. Must be a problem with 3...
by Gunslinger
May 04, 2025 9:53
Forum: Game Dev
Topic: Equation of circle when three points are given
Replies: 7
Views: 1812

Re: Equation of circle when three points are given

Thank you all for other code examples. I spend more time to find out what the hang/crash is and it the circle render that freebasic is using that makes it crash. Sure has to do with the combination of this code screenres 800, 600, 32 window screen(0, 0)-(8, 6) And also use segmented circle, when i d...
by Gunslinger
Apr 29, 2025 21:46
Forum: Game Dev
Topic: Equation of circle when three points are given
Replies: 7
Views: 1812

Re: Equation of circle when three points are given

dafhi wrote: Apr 29, 2025 21:27 i am unable to produce the issue but guess would be the circle .. comment it out, print the radius so u get an idea
good idea, also write my one circle function to be more accurate maybe.
also will test on a other pc tomorrow.
btw i use windows 11 64bit
by Gunslinger
Apr 29, 2025 11:08
Forum: Game Dev
Topic: Equation of circle when three points are given
Replies: 7
Views: 1812

Equation of circle when three points are given

I was in need of a circle through 3 point in 2d space. Nothing new so i just got source translated from here. https://www.geeksforgeeks.org/equation-of-circle-when-three-points-on-the-circle-are-given/ Now i was playing with segmented circle and tested workings. Soon found out the precision is bad w...
by Gunslinger
Dec 19, 2024 19:53
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1143
Views: 389082

Re: MiniB3d for FreeBasic

Yes i found a other maybe bug. i scale a sprite with scalesprite tmp, 10,10 now very big and problems happening around screen edge. sprite disappears when center is about 10% of screen. Also with scale 2 x 2 had problem at like 50% of screen disappearing. maybe scalesprite is only for making smaller...
by Gunslinger
Nov 25, 2024 18:28
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1143
Views: 389082

Re: MiniB3d for FreeBasic

Nice work with CAMERAZOOM(camera, 0.5) bug fix. Also shadows now work in orthographic projection mode camera. Still have problem with OpenB2D sometimes all 2d render text disappears. using multiple sprites seems to give problems. I have difficulty understanding types in openB3D.bi al functions retur...
by Gunslinger
Nov 05, 2024 16:53
Forum: Beginners
Topic: What is the path returned by the CurDir function
Replies: 6
Views: 4314

Re: What is the path returned by the CurDir function

What OS are you using?
seems fine in windows 10 64bit
by Gunslinger
Nov 02, 2024 20:47
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1143
Views: 389082

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 Graphic...
by Gunslinger
May 04, 2024 9:37
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1143
Views: 389082

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) Sorry i cant not find OpenB3D plus add-on examples. i know i se...
by Gunslinger
Apr 30, 2024 18:27
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1143
Views: 389082

Re: MiniB3d for FreeBasic

Thanks, camera bigger range works not a real solution for everything. So i have to add some kind of chunk world system again like i did with my other game. One other thing, shadow and fog is not working nice together. When object is complete in think fog it is still darker in shadow looks strange. R...
by Gunslinger
Apr 23, 2024 10:44
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1143
Views: 389082

Re: MiniB3d for FreeBasic

I have a new project the physics got to complex with mij space game. (for the time i have) Make a tile world now but run into shadow problems. Everting looks fine when i set camera view range bigger then my world. When i set the view range to max 60 then shadow have problems close to edge before bec...
by Gunslinger
Apr 20, 2024 13:01
Forum: Sources, Examples, Tips and Tricks
Topic: Custom typeface (font)
Replies: 8
Views: 2964

Re: Custom typeface (font)

Checkout Sebastian Lague on youtube
https://www.youtube.com/watch?v=SO83KQuuZvg
He going mad with the truetype font in 3D, very interesting to watch him struggle with al little bugs.
by Gunslinger
Feb 10, 2024 9:59
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1143
Views: 389082

Re: MiniB3d for FreeBasic

Ah yes got it now :) First i did think csg function is for subtracting mesh shapes from 2 bodies. I'm working as a engineer with 3D cad software a lot, where sometimes i use to subtract/add or intersect 3D bodies. I was mistaken this is the same idea. it's not. Maybe it's a good idea to pack some of...
by Gunslinger
Feb 09, 2024 12:05
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1143
Views: 389082

Re: MiniB3d for FreeBasic

The decal mesh is supposed to be on the sphere Sorry i did not know, and yes i got the last 1.3 version. Still think there are very big caps in csg mesh. My modifactaions #include "openb3d.bi" screenres 1920,1080, 32, , &h10002 Graphics3d 1920,1080,32,1,1 var camera=CreateCamera() var...
by Gunslinger
Feb 08, 2024 19:02
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1143
Views: 389082

Re: MiniB3d for FreeBasic

Nice work, thanks for the updates. I have played around with mesh svg and lighting seems to be fix. in version 1.3 I don't think gaps in the mesh is suppose to happen? Link to screen: https://ac1.servegame.com:88/Mesh-svg.png Also made some screen of state of my game the world/universe is almost inf...