Search found 107 matches

by Gunslinger
Jan 08, 2024 20:18
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

i give up, 100 ways to make is crash. entitybox seems not implemented. This code below try to fix feets with 3 constraints for each feet. #include "openb3d.bi" #INCLUDE "crt/STDIO.BI" #include "fbgfx.bi" #if __FB_LANG__ = "fb" Using FB '' Scan code constants a...
by Gunslinger
Jan 05, 2024 9:58
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

Yes i think i already got all of this. About the ship with lading feets. I am tryng to make a more complex collision chape than a single raduis. The ship is a cone and from side its a triangel in 2d. Putting a cirkel or elipse collision on triangel chape is a bad fit. Zo i put 2 small cube feet on b...
by Gunslinger
Jan 04, 2024 18:13
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

ActNewtonian is a nice function to make beter motion. I wish i can get to current velocity of current movement speed. Also like to fix the z position at 0 because i make a 2d game in 3d space. In my code i made a sample space ship from a cone shape with 2 very small cube as landing feeds. The feet a...
by Gunslinger
Jan 02, 2024 9:45
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

You can modify the makefile and recompile it, in case you want to change its name Otherwise, you can put the two versions of the library in two different directories, and when you compile and launch your program you set the PATH variable to one directory or another (the library doesn't have to be i...
by Gunslinger
Dec 26, 2023 10:32
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

Uploaded an updated version with the fix, let me know if it works yeah, thanks now i can make my game. Setting EntityType to 0 works fine and FreeEntity works correct. I have one thing that is annoying about the DLLs That is the name for openB3D.dll is the same for 32 and 64 bit. this way i cant no...
by Gunslinger
Dec 25, 2023 10:26
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

ResetEntity is supposed to be used after moving an entity, and before updating the world, to avoid collisions to be checked. It's useful, for example, when you want to place the player in a specific place of the world, and you have already enabled collision checking (otherwise it will be considered...
by Gunslinger
Dec 24, 2023 16:05
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

Oke i'am trying to free entity collions. Because it's slow i like to only enable collisions that are in range of the player. I use the openB3D pdf you made, under ENTITY COLLISION i found the function RESETENTITY. Amusing it supposes to reset back to no collisions. not seem to work. There is also a ...
by Gunslinger
Dec 23, 2023 19:46
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

I got it. make groups. earth is the static group.
Thanks have nice christmas days
by Gunslinger
Dec 23, 2023 11:14
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

This code will do. It's not very hard to clip inside the planet with use of the blue stars close to the surface. At line 59 you van disable the stars, the function countCollisions is outputed to console. Only work correct with stars disabled. I like to use countCollisions to see if he can jump. Firs...
by Gunslinger
Dec 23, 2023 0:51
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

About the collisions probleems. Is was about to share my code. But i made a mase simplifing the probleem. You have to wait a bit. Let say countCollisions for the player object only works is there is only 1 object added to collision. Adding more it reports only 0. But collision with multiple spheres ...
by Gunslinger
Dec 20, 2023 21:06
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

Oke i got a bit more done now. I have a little man walking on a mini plannet. The basic openb3d physics are not good. Seem to go wrong by collisions with 2 or more bodies. I have to look at a other physics library as i done in the past. I found some small bugs in current openb3d version. FreeAction ...
by Gunslinger
Dec 19, 2023 18:49
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

Thank for your quick anwser. I was going for the low pixel look. Upscale 3 times did the trick and looks good for now. Still think it is a waste of memory, how cares. Now i'm looking at the animated texture. I keep setting the frame number in mainloop in my last code. Sure must be a beter way with a...
by Gunslinger
Dec 17, 2023 19:50
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1089
Views: 310723

Re: MiniB3d for FreeBasic

Oke i like some help with animate sprite render. Wrote some test code for this. #include "openb3d.bi" screen 18, 32, , &h10002 Graphics3d 640,480,32,1,1 var camera=createcamera(0) CAMERARANGE (camera,.1,1000) 'CAMERAPROJMODE(camera, 2) 'CAMERAZOOM(camera, 0.25) positionentity camera, 0...
by Gunslinger
Dec 13, 2023 2:58
Forum: Sources, Examples, Tips and Tricks
Topic: MultiPut V2.0 :-)
Replies: 39
Views: 13441

Re: MultiPut V2.0 :-)

Here a modified version with alpha channel transparent for 32bit color. color mixer optimized as good as i can do. :D #ifndef __MULTIPUT_BI__ #define __MULTIPUT_BI__ ' Multiput by D.J.Peters (Joshy) ' MultiPut_alpha32 [destination],[xmidpos],[ymidpos], source,[xScale],[yScale],[Rotate],[Trans] type ...
by Gunslinger
Dec 11, 2023 21:19
Forum: Sources, Examples, Tips and Tricks
Topic: MultiPut V2.0 :-)
Replies: 39
Views: 13441

Re: MultiPut V2.0 :-)

I have a problem with the code at line 5 first post, the example of the function inputs. ' MultiPut [destination],[xmidpos],[ymidpos], source,[xScale],[yScale],[Trans] think it's better to add rotation parameter option here. like this. ' MultiPut [destination],[xmidpos],[ymidpos], source,[xScale],[y...