Search found 1363 matches

by dafhi
Jul 20, 2021 2:43
Forum: General
Topic: sng problem, fbc, gcc
Replies: 2
Views: 116

Re: sng problem, fbc, gcc

okay. this seems to be the way to fix it for sng

[updated]

Code: Select all

dim as single s = a / (2^32 + 128)
by dafhi
Jul 20, 2021 0:36
Forum: General
Topic: sng problem, fbc, gcc
Replies: 2
Views: 116

sng problem, fbc, gcc

num / (num+1) supposed to be less than 1

on my machine i am seeing 1

Code: Select all

dim as ulong a = 4294967282
dim as single s = a / 2^32
? s, a; " "; culng(-1)
by dafhi
Jul 19, 2021 9:46
Forum: General
Topic: need particular prng
Replies: 16
Views: 482

Re: need particular prng

new criteria: must also be simple in test phase /' -------- rng hash - 2021 July 23 - by dafhi '/ '#include "inc/dsi util.bas" #undef int #define def #define '' replaces int() def flo(x) (((x)*2.0-0.5)shr 1) '' http://www.freebasic.net/forum/viewtopic.php?p=118633 def ceil(x) (-((-(x)*2.0-...
by dafhi
Jul 18, 2021 22:44
Forum: General
Topic: need particular prng
Replies: 16
Views: 482

Re: need particular prng

thanks guys. ill give them a shot. i am thinking xor128 might do. laptop issues, will write later
by dafhi
Jul 18, 2021 13:06
Forum: General
Topic: need particular prng
Replies: 16
Views: 482

need particular prng

fast, quality
most importantly instant warm up

will check back in abt 8 hrs or so. thanks!
by dafhi
Jul 08, 2021 7:14
Forum: Game Dev
Topic: Tetris, but with hexagons
Replies: 10
Views: 572

Re: Tetris, but with hexagons

how did i not try this until now? i love it! yes it is hard
by dafhi
Jun 23, 2021 11:02
Forum: Tips and Tricks
Topic: Starfield with trails
Replies: 3
Views: 387

Re: Starfield with trails

neat! had to tweak. also looks cool with the lines uncommented var rad = .01 + 250 * rnd var ang = rnd * tau sx = cos(ang) sy = sin(ang) x=w/2 + rad * sx y=h/2 + rad * sy rad = rnd + .1 sx *= rad sy *= rad 'sx = (rnd()*2.0)-1.0 'sy = (rnd()*2.0)-1.0
by dafhi
May 09, 2021 6:08
Forum: Tips and Tricks
Topic: weighted summation blending
Replies: 0
Views: 233

weighted summation blending

/' -- weighted average blending - 2021 May 9 - by dafhi intuition: make 'foreground' with iteration (a simple multiplier) more natural looking anti-bonus: slow updates: May 9 - removed ulong associates from types sRGB and rgbi '/ '#include "inc/dsi aadot.bas" '#include "dsi colorspac...
by dafhi
Apr 13, 2021 9:39
Forum: General
Topic: FreeBASIC Programming (or any programming)?
Replies: 5
Views: 434

Re: FreeBASIC Programming (or any programming)?

something like .. function answer(mystr as string) as single #define a val( left( mystr, i+1)) #define b val( right( mystr, len(mystr)-1 - i)) for i as integer = 0 to len(mystr) var c = chr(mystr[i]) select case c case "+": return a+b case "-": return a-b case "/": retu...
by dafhi
Mar 23, 2021 1:24
Forum: General
Topic: Pentacles
Replies: 153
Views: 10127

Re: Pentacles

saw badidea's hex grid a few days ago. nice work!
by dafhi
Mar 15, 2021 3:37
Forum: Projects
Topic: Another neural network experiment
Replies: 5
Views: 534

Re: Another neural network experiment

this stuff's pretty interesting. I pick up things here and there. 2 things I have in mind as I work on my image thing

1. weight randomization (in my NN i never even bothered with backprop) (mostly because i don't get it)
2. importance of a non-linear function. even something as simple as ReLU
by dafhi
Mar 12, 2021 2:22
Forum: General
Topic: personal project - new image format
Replies: 4
Views: 423

Re: personal project - new image format

couldn't have put it better myself :-) well a bit more info .. i have a new dot renderer, i have yet to write its final form, but each dot gets, right now i am seeing a maximum of 6 bytes for an 8k by 8k image. I have a c++ version showcasing the visual quality which is superior to alpha blending in...
by dafhi
Mar 12, 2021 0:28
Forum: General
Topic: personal project - new image format
Replies: 4
Views: 423

Re: personal project - new image format

i'm just sharing my excitement. sussing out "whitepaper" as both source and comments. i'll post code as i go, and the whole thing all at once when i'm done
by dafhi
Mar 11, 2021 19:23
Forum: General
Topic: personal project - new image format
Replies: 4
Views: 423

personal project - new image format

I'm developing a new image format. It's super-savage. And lossy.

I'm storing position data and if array position is odd, using subtractive synthesis. Just a snippet! Super excited, wanted to share. Hope y'all are having fun!
by dafhi
Mar 09, 2021 1:53
Forum: General
Topic: Draw string on buffer mistake, no warning?
Replies: 6
Views: 483

Re: Draw string on buffer mistake, no warning?

wondered if it had to do with optional parameter so i tried
line pImg,(2, 0)-(1,1)

same result

Go to advanced search