Search found 1347 matches

by dafhi
Feb 25, 2021 8:20
Forum: Tips and Tricks
Topic: sRGB delta map
Replies: 0
Views: 118

sRGB delta map

/' sRGB image pair delta - 2021 Feb 27 - by dafhi envisioned for progressive refinement rendering applications class tImagePair sRGBpair( x, y).col( page_0_or_1 ) delta map .out() with, in rare cases, low granularity. simply uncomment "def best_granularity" before tImagePair for fuller re...
by dafhi
Feb 20, 2021 3:41
Forum: General
Topic: help w/ Quake fast inv sqrt
Replies: 3
Views: 136

Re: help w/ Quake fast inv sqrt

facepalm .. thanks! =)
by dafhi
Feb 20, 2021 1:23
Forum: General
Topic: help w/ Quake fast inv sqrt
Replies: 3
Views: 136

help w/ Quake fast inv sqrt

can i get some help w/ this .. don't know what i'm doing wrong union suspicion_suppressor ' useful for bypassing suspicious ptr warn as any ptr a as byte ptr b as long ptr l as integer ptr i As Single Ptr s as double ptr d End Union dim shared as suspicion_suppressor gp #define sng as single Functio...
by dafhi
Feb 14, 2021 20:37
Forum: Community Discussion
Topic: Shorthand for setter/getter hell
Replies: 3
Views: 179

Re: Shorthand for setter/getter hell

Code: Select all

#define def #define

def uint  as uinteger
def decl  declare
def prop  property
def br    byref

 ...

decl prop top(br Value uint) { LocY = Value }
by dafhi
Feb 13, 2021 1:07
Forum: Tips and Tricks
Topic: The beauty / magic of math (28 examples) Vol. II + Vol. III - V
Replies: 10
Views: 1077

Re: The beauty / magic of math (28 examples) Vol. II

so it was a problem on my end. i tried downloading new fb yesterday to server error .. got it now and it works. hooray for me!
by dafhi
Feb 12, 2021 19:18
Forum: Tips and Tricks
Topic: The beauty / magic of math (28 examples) Vol. II + Vol. III - V
Replies: 10
Views: 1077

Re: The beauty / magic of math (28 examples) Vol. II

cool! quick feedback .. an error with Tunnel2 GDI.. (vol 3)
Variable not declared, SmoothingModeAntiAlias8x4
by dafhi
Dec 08, 2020 13:54
Forum: Community Discussion
Topic: Thank you fxm for 10K high quality posts !
Replies: 13
Views: 994

Re: Thank you fxm for 10K high quality posts !

arguably one of the greatest architects of freebasic and the community
by dafhi
Dec 06, 2020 1:05
Forum: Tips and Tricks
Topic: The beauty / magic of math (28 examples) Vol. II + Vol. III - V
Replies: 10
Views: 1077

Re: The beauty / magic of math (28 examples) Vol. II

From both the code here and zip file, WOW and Fractal Zoom don't work. zipped exe's work fine. i like: WOW, Binary Field (!), CHOO CHOO, Mountain Journey (!), Saturn 2 (!!), Sierpensky Dance, Ribbon2, Rain drop Mountain Journey reminds me of sub-pixel processing. More there than meets the eye. Binar...
by dafhi
Dec 05, 2020 13:15
Forum: Tips and Tricks
Topic: Palettator
Replies: 4
Views: 364

Re: Palettator

thanks fxm
by dafhi
Dec 05, 2020 8:41
Forum: Projects
Topic: The ultimate FBGFX thread
Replies: 18
Views: 1511

Re: The ultimate FBGFX thread

pset don't do rgba by default. it's fine. i'm just being my clownsome self. really like that example though. modifying to use my aa dot. [update] aadot was a bust. i colorized it though /' The Chaos Game '/ private function rng overload( aMin as double, aMax as double ) as double return( rnd() * ( a...
by dafhi
Dec 05, 2020 7:03
Forum: Projects
Topic: The ultimate FBGFX thread
Replies: 18
Views: 1511

Re: The ultimate FBGFX thread

Mr. doe #include "fbgfx.bi" function init( w as long, h as long, byref t as const string = "" ) as Resolution screenRes( w, h, 32,, fb.gfx_alpha_primitives ) color( rgb( 0, 0, 0 ), rgb( 255, 255, 255 ) ) windowTitle( iif( len( t ), t, "Untitled" ) ) cls() randomize() re...
by dafhi
Dec 05, 2020 6:38
Forum: Tips and Tricks
Topic: Palettator
Replies: 4
Views: 364

Palettator

/' Palettator by dafhi - 2020 Dec 12 A generator for great-looking palettes specifically by the promotion of thin stripes. Palettator also animates by rotating 2 "x"s in horizontal space. - updates increased wave height init (generally better looking) endpoints_delta formula whitespace co...
by dafhi
Nov 21, 2020 23:07
Forum: Game Dev
Topic: Problem with Fog-of-War
Replies: 15
Views: 1140

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

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

Re: [solved] Simple math question ?

Two Minute Papers video

Go to advanced search