Search found 1335 matches

by dafhi
Nov 21, 2020 23:07
Forum: Game Dev
Topic: Problem with Fog-of-War
Replies: 15
Views: 562

Re: Problem with Fog-of-War

is this what you want? sub tiledelete() dim as integer t = 0 while t <= numoffogtiles if afogtile(t).xplace>=playerx-64 and afogtile(t).xplace<=playerx+8+64 and afogtile(t).yplace>=playery-64 and afogtile(t).yplace<=playery+8+64 then '' fog for this position is no longer needed afogtile(t) = afogtil...
by dafhi
Nov 20, 2020 19:39
Forum: Game Dev
Topic: Problem with Fog-of-War
Replies: 15
Views: 562

Re: Problem with Fog-of-War

how i would do it

swap tile(new visible tile), tile(numoffogtiles)
numof.. -= 1

redim preserve seems unnecessary
by dafhi
Oct 28, 2020 3:30
Forum: Community Discussion
Topic: [solved] Simple math question ?
Replies: 10
Views: 510

Re: [solved] Simple math question ?

Two Minute Papers video
by dafhi
Oct 25, 2020 1:26
Forum: Libraries
Topic: fbsound 1.2 Windows/Linux (sid wav mp3 ogg mod it xm s3m)
Replies: 19
Views: 781

Re: fbsound 1.2 Windows/Linux (sid wav mp3 ogg mod it xm s3m)

SID playback as expertly as you have done here is to be commended. Busy with my own projects as usual though =)

regards
by dafhi
Sep 19, 2020 13:22
Forum: Tips and Tricks
Topic: depth-of-field aadot
Replies: 3
Views: 229

Re: depth-of-field aadot

in the beginning.

the focus plane animates via sine
by dafhi
Sep 19, 2020 7:32
Forum: Tips and Tricks
Topic: Around the Sphere build 2020-09-22
Replies: 24
Views: 1016

Re: Around the Sphere build 2020-09-17

thanks for the inspiration!

didn't know my depth-of-field dots wanted to be worked on. also been overhauling my 3d system
by dafhi
Sep 19, 2020 7:28
Forum: Tips and Tricks
Topic: depth-of-field aadot
Replies: 3
Views: 229

depth-of-field aadot

- Depth of Field anti-aliased dots - *** Note: if you don't want to save the include, you can 1. comment out #include 2. paste the code instead (defocus dot.bas) have fun! example 1 - basic 3d /' depth of field aadots - 2020 Sep 21 - by dafhi hard-coded "basic" 3d example '/ #include "...
by dafhi
Sep 17, 2020 4:21
Forum: Tips and Tricks
Topic: Around the Sphere build 2020-09-22
Replies: 24
Views: 1016

Re: Around the Sphere build 2020-09-15

updates: removed FL (focal length)
aadot namespace
by dafhi
Sep 15, 2020 23:51
Forum: Tips and Tricks
Topic: Around the Sphere build 2020-09-22
Replies: 24
Views: 1016

Re: Around the Sphere build 2020-09-15

we like dots 'Coded by UEZ build 2020-09-15 'Thanks to dodicat for some funtions I used from his code :-) and Martijn van Iersel for the CreateGradientSphere function. ^^ /' -- modified by dafhi (2020 Sep 16) vec5 -> dotvars col.argb -> col after screenres .. windowtitle .. particles you can adjust:...
by dafhi
Sep 09, 2020 2:40
Forum: General
Topic: Star Wars "Light Saber"
Replies: 15
Views: 445

Re: Star Wars "Light Saber"

you had me at "The laser is at an angle"

Hacksmith on YT made something
by dafhi
Sep 03, 2020 22:55
Forum: Tips and Tricks
Topic: Simple 3D Starfield build 2020-09-03
Replies: 17
Views: 1019

Re: Simple 3D Starfield build 2020-09-03

my defocus aadot doesn't play nicely with the other kids
[update: yes it does]

clevv new nebula .. without filter, technique becomes apparent
by dafhi
Sep 02, 2020 0:25
Forum: Tips and Tricks
Topic: Simple 3D Starfield build 2020-09-03
Replies: 17
Views: 1019

Re: Simple 3D Starfield build 2020-09-01

[code updated] with a slightly more intuitive approach

cool demo. weak intel gpu w/ Pixar quality effects
by dafhi
Sep 01, 2020 19:27
Forum: Tips and Tricks
Topic: Simple 3D Starfield build 2020-09-03
Replies: 17
Views: 1019

Re: Simple 3D Starfield build 2020-09-01

done a few starfields myself. nebula effect looks amazing! might have a go with starfield later using my depth-of-field sim. [edit - done!] ' depth-of-field effect - 2017 Nov 15 - by dafhi 'original demo by UEZ - https://www.freebasic.net/forum/viewtopic.php?f=7&t=28778 ' -- changes ' maxRadius ...
by dafhi
Jul 31, 2020 15:38
Forum: General
Topic: A PRNG for graphics programs?
Replies: 84
Views: 2724

Re: A PRNG for graphics programs?

thought i'd share this before i go to bed /' My fascination with high period RNGs continues. My state variable is 8 bits. I'm getting period greater than 256 with the combination of multiplier weyl xorshift looking to extend this '/ #undef int #define int as integer type rect int w, h End Type '' gr...
by dafhi
Jul 23, 2020 3:57
Forum: Game Dev
Topic: Liquid Fabric. A fast water ripple engine object for games.
Replies: 2
Views: 314

Re: Liquid Fabric. A fast water ripple engine object for games.

that FPS tho. A lot of integer with FP sprinkles. Good for us old dogs.

Go to advanced search