Search found 35 matches

by Gunslinger
Oct 22, 2019 21:23
Forum: Beginners
Topic: Calculating intersection points
Replies: 8
Views: 398

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: 398

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: 398

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...
by Gunslinger
Oct 20, 2019 17:15
Forum: Beginners
Topic: Calculating intersection points
Replies: 8
Views: 398

Calculating intersection points

Hello Everyone, I have been working on some code for my 3d-world ans i made a simple 2d version of the problem Don't seem to get it right and it's more complicated then i did think. I have a part working function but i need some help with the yellow line insite the function crosspoint it needs to ca...
by Gunslinger
Sep 09, 2019 18:12
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 21740

Re: Physics question

Just got 189 seconds on second run full hd :-)
I'm a drone drone pilot and that is 3 axels, gravity and momentum to fight with.
by Gunslinger
Sep 09, 2019 8:59
Forum: General
Topic: Help with direct mouse input
Replies: 3
Views: 586

Re: Help with direct mouse input

Yes. Tested this and only works when a window is created.
And it not doing any thing special. Just keeps moving the mouse back to the middel of the window.

I wil just make a easy fix for linux users.
With get/set mouse function.
by Gunslinger
Sep 07, 2019 9:55
Forum: General
Topic: Help with direct mouse input
Replies: 3
Views: 586

Help with direct mouse input

Hello i'm trying to read the mouse pointer relative movement. I fount this piece of code that works. http://users.freebasic-portal.de/freebasicru/directinput.html And i have a hard time finding something similar for Linux. I do remember powerbasic in msdos had the function to read this very simple. ...
by Gunslinger
Aug 29, 2019 22:16
Forum: Libraries
Topic: libOpenB3D Win32/64 Linux32/64
Replies: 12
Views: 6142

Re: libOpenB3D Win32/64 Linux32/64

Wow this is some very nice work, and yes i did not know that the lipOpenB3d is so different from OpenB3D. I need to study this one later, first this. I had to change a line in your openB3D.bi declare sub ScaleTexture (byval _Texture as tTexture, byval fUScaleFactor as single, byval fVScaleFactor as ...
by Gunslinger
Aug 28, 2019 21:49
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 947
Views: 180770

Re: MiniB3d for FreeBasic

Oke thats is clear now.

Then what about the fighter.3ds file?
Is the problem also in the file it self.
That does not explain why your version 1.25 openB3D build is not load it.
While the other from angros47 works fine.
by Gunslinger
Aug 27, 2019 15:52
Forum: Tips and Tricks
Topic: animated toroid in OpenB3D
Replies: 8
Views: 4124

Re: animated toroid in OpenB3D

I was thinking is it possible to add texture to the moving fluid like this.
Seem kind of difficult to do.

Has to scale en remap the model?
Or do you know a way angros47
Map the texture on x and y only?
I don't have any experience with texture.
by Gunslinger
Aug 27, 2019 15:44
Forum: Projects
Topic: Marching Cubes
Replies: 6
Views: 2877

Re: Marching Cubes

There is no window it is full screen so I can't see the fps in the window title. When I say slow I should have asked can the speed be changed by changing some increment or decrement somewhere? No there is no setting for speed i just feel like show it as it is If you get 60 fps it is still kind of s...
by Gunslinger
Aug 27, 2019 8:18
Forum: Projects
Topic: Marching Cubes
Replies: 6
Views: 2877

Re: Marching Cubes

BasicCoder2 wrote:
Gunslinger wrote:Tell me what you think of it.

Looks good. Moving about is a bit slow? Couldn't see any marching cubes.

what is your fps in window title?
by Gunslinger
Aug 26, 2019 18:12
Forum: Tips and Tricks
Topic: animated toroid in OpenB3D
Replies: 8
Views: 4124

Re: animated toroid in OpenB3D

Yes, it works now with a warning. warning 3(1): Passing different pointer types, at parameter 2 of FLUIDFUNCTION() I'm not sure why because i don't get whats going on in the FluidFunction that is a sub with a function in it? declare sub FluidFunction cdecl alias "FluidFunction" (byval flui...
by Gunslinger
Aug 26, 2019 16:12
Forum: Tips and Tricks
Topic: animated toroid in OpenB3D
Replies: 8
Views: 4124

Re: animated toroid in OpenB3D

Sorry, that demo gives me a error
Aborting due to runtime error 12 ("segmentation violation" signal) in Toroid.bas::()
by Gunslinger
Aug 25, 2019 23:28
Forum: Projects
Topic: Marching Cubes
Replies: 6
Views: 2877

Marching Cubes

I came across a term called Marching Cubes on youtube somewhere. He pointed me to this source http://paulbourke.net/geometry/polygonise/ So i tested my freebasic skills and made this from it. With the help of the nice openB3D lib it was not so hard. http://ac1.servegame.com:88/Screens/Screenshot05.p...

Go to advanced search