Search found 47 matches

by Gunslinger
Oct 31, 2020 7:08
Forum: Libraries
Topic: Tokamak physics SDK V1.2 (Windows/Linux 32/64-bi)
Replies: 12
Views: 710

Re: Tokamak physics SDK V1.2 (Windows/Linux 32/64-bi)

Thanks Joshy for your hard work. I will give this one a try again.
And i don't think Someone has to understand physics completely to make a game with it.
by Gunslinger
Sep 20, 2020 15:02
Forum: Libraries
Topic: ReactPhysics3D 0.7.1 C wrapper Windows/Linux 32/64-bit
Replies: 10
Views: 6716

Re: ReactPhysics3D 0.7.1 C wrapper Windows/Linux 32/64-bit

I am also thinking about raylib to use with this. Not that i really like raylib but it seems to fit with basic programming style. And very easy to understand. Lot of nice stuff in raylib. About this react physics i like it to use the Static Concave Mesh for static terrain. I can really use som help ...
by Gunslinger
Sep 19, 2020 13:27
Forum: Libraries
Topic: ReactPhysics3D 0.7.1 C wrapper Windows/Linux 32/64-bit
Replies: 10
Views: 6716

Re: ReactPhysics3D 0.7.1 C wrapper Windows/Linux 32/64-bit

I am trying to develop a basic carrom game with this library. How do I create a cylinder? This is what i got so far. (no cilinders) I did try to translate a demo (CubesScene), but i don't know C+ I had to change TransformEntity in openB3D.bi Declare sub TransformEntity(byval _Entity as tEntity ptr,...
by Gunslinger
Sep 09, 2020 21:25
Forum: Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 94
Views: 20022

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

Hello i have tested this in the SNC in the passed. Nicely done. only problem i had is in the function NetworkConnection.GetData(byref pData as any ptr, byval maxSize as integer) as integer Think it is not the right way to keep waiting or delayed in this function for data to be fully revived or to ti...
by Gunslinger
Sep 09, 2020 17:46
Forum: Tips and Tricks
Topic: Perlin noise flow field with particles
Replies: 7
Views: 493

Re: Perlin noise flow field with particles

your code ! screenres w,h,bits, 1 screenset 1,0 while program_is_runnng __screenlock _____do_gfx_stuf __screenunlock __flip wend how it schould be: screenres w,h,bits, 2 screenset 1,0 while program_is_runnng __do_gfx_stuf ' gfx on the hidden page __flip ' show hidden page on monitor wend Joshy Yes ...
by Gunslinger
Sep 08, 2020 17:09
Forum: Tips and Tricks
Topic: Perlin noise flow field with particles
Replies: 7
Views: 493

Re: Perlin noise flow field with particles

Last version as screensaver 'https://www.freebasic.net/forum/viewtopic.php?f=7&t=28799 #include once "Windows.bi" FreeConsole() #lang "fb" #include "fbgfx.bi" Using FB #define funny_B &H100 #define funny_BYTE_MASK &Hff #define funny_N &H1000 #define funn...
by Gunslinger
Sep 07, 2020 3:41
Forum: Tips and Tricks
Topic: Perlin noise flow field with particles
Replies: 7
Views: 493

Re: Perlin noise flow field with particles

Thanks for clearing up mij code.
I kown i did mixup the screen page handeling.
I just dont have the time and focus to clean up.

In the function getNoise3D you put = any
Dim n as vec2 = any
That is the reason for that?
To indicatie it can have any value or for performance?
by Gunslinger
Sep 06, 2020 18:04
Forum: Tips and Tricks
Topic: Perlin noise flow field with particles
Replies: 7
Views: 493

Perlin noise flow field with particles

Juist for fun en code practice i wrote this little demo. It will launch in a full HD window screen with checking if you pc is ready ! Perlin noise code part from: https://www.freebasic.net/forum/viewtopic.php?f=3&t=21275&p=188338 'https://www.freebasic.net/forum/viewtopic.php?f=7&t=28799...
by Gunslinger
Apr 13, 2020 9:13
Forum: Libraries
Topic: libOpenB3D Win32/64 Linux32/64
Replies: 21
Views: 9985

Re: libOpenB3D Win32/64 Linux32/64

Hello again, i have modified Tokamak physics example for OpenB3D https://www.freebasic.net/forum/viewtopic.php?f=14&t=25110&p=237993&hilit=tokamak#p237993 I had to change TransformEntity in openB3D.bi Declare sub TransformEntity(byval _Entity as tEntity ptr, byval as const single) to Dec...
by Gunslinger
Mar 22, 2020 20:04
Forum: Projects
Topic: Marching Cubes
Replies: 7
Views: 4854

Re: Marching Cubes

Update to voxels I don't have a lot of time to work on mij hobby projects like this. recently i have become full time father for mij dochter. Here is a update move around with W,A,S,D and E, Z space = jump with red bal. Mouse left-button = paint green Mouse right-button = add voxels Mouse wheel to c...
by Gunslinger
Mar 09, 2020 21:39
Forum: Libraries
Topic: Modern GL 2D game lib needed
Replies: 15
Views: 3451

Re: Modern GL 2D game lib needed

Could be very useful for quickly upscaling old games. Test code: #define NO_BLUR 0 'change to 1 #include "fbgfx.bi" using fb screencontrol(SET_GL_2D_MODE, OGL_2D_MANUAL_SYNC) screencontrol(SET_GL_SCALE, 3) screenres 320, 200, 32, , GFX_OPENGL #if (NO_BLUR = 1) #include "GL/gl.bi"...
by Gunslinger
Mar 04, 2020 0:01
Forum: Game Dev
Topic: Path-finding for 2d-grid-based games, using Dijkstra's algorithm
Replies: 16
Views: 3335

Re: Path-finding for 2d-grid-based games, using Dijkstra's algorithm

A* Implantation in badidea's code Added code at line 235 and a heuristic function, seem to work fine. #include once "fbgfx.bi" #define heuristic2(ax, ay, bx, by) (abs(ax - bx ) + abs(ay - by)) '# Manhattan distance on a square grid const as integer ALLOW_DIAGONAL_MOVEMENT = 1 '------------...
by Gunslinger
Oct 22, 2019 21:23
Forum: Beginners
Topic: Calculating intersection points
Replies: 8
Views: 858

Re: Calculating intersection points

Very funny i almost fixed my code my why :) the yellow line is tested to works fine now it seems i still have to patch the red P6 value to get the right result. declare function my_line(vertex1 as single, vertex2 as single, noise1 as single, noise2 as single, div_noise as ubyte) as single 'my linear...
by Gunslinger
Oct 21, 2019 20:15
Forum: Beginners
Topic: Calculating intersection points
Replies: 8
Views: 858

Re: Calculating intersection points

Thanks dodicat that is juist what i needed. I think i can finish the code with this. In 3D the white lines (2D from top) are faces so you need a 3D segemt face intersection or 3D ray triangle intersection ! Joshy I don't need to go 3D intersections of planes. This function is to make the full resolu...
by Gunslinger
Oct 21, 2019 14:00
Forum: Beginners
Topic: Calculating intersection points
Replies: 8
Views: 858

Re: Calculating intersection points

Sorry for the compilation failed stated. No i don't want to intersect the red and yellow line. I like to return the right value for P5 so the 2 small yellow circles and up on the yellow line. I think i need to calculate the intersection point for the gray middle line at horizontal. And then calculat...

Go to advanced search