Search found 115 matches
- 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...
- 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...
- Apr 29, 2025 21:46
- Forum: Game Dev
- Topic: Equation of circle when three points are given
- Replies: 7
- Views: 1812
- 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...
- 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...
- 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...
- 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
seems fine in windows 10 64bit
- 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...
- 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...
- 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...
- 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...
- 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.
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.
- 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...
- 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...
- 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...