Search found 1003 matches

by dafhi
Jul 09, 2018 0:54
Forum: Projects
Topic: Making an ANN
Replies: 1
Views: 147

Re: Making an ANN

I highly recommend Luis Serrano's videos, especially this one
by dafhi
Jul 07, 2018 21:04
Forum: Tips and Tricks
Topic: GDI+ Star Wars Intro build 2018-07-07 [Windows and x86 only]
Replies: 17
Views: 386

Re: GDI+ Star Wars Intro build 2018-07-05 [Windows and x86 only]

still crashes

Code: Select all

If bFont = 1 Then GdipDeletePrivateFontCollection(hCollection)
sleep
by dafhi
Jul 07, 2018 20:20
Forum: Tips and Tricks
Topic: GDI+ Star Wars Intro build 2018-07-07 [Windows and x86 only]
Replies: 17
Views: 386

Re: GDI+ Star Wars Intro build 2018-07-05 [Windows and x86 only]

no crash

Code: Select all

GdipDeletePath(hPath_Temp)
sleep
GdipDeletePrivateFontCollection(hCollection)

crash

Code: Select all

GdipDeletePath(hPath_Temp)
GdipDeletePrivateFontCollection(hCollection)
sleep
by dafhi
Jun 29, 2018 22:35
Forum: Projects
Topic: monte-carlo weights
Replies: 0
Views: 88

monte-carlo weights

weight randomizer - 2018 July 6 /' -- weight randomizer --- ! ! ! W A R N I N G ! ! ! - lots of flashing here! Project Info: monte-carlo approach to finding a set of weights to promote caustics (blurry reflection and transmission) 1. path tracer will render a scene for a short time 2. followed by we...
by dafhi
Jun 22, 2018 9:53
Forum: General
Topic: Machine Learning
Replies: 39
Views: 1056

Re: Machine Learning

Thanks guys for posting these. I'm working on my own ML, way off the beaten path. Haven't looked at either of your codes much yet.

[updated]
@BasicCoder2 - I just realized an int(rnd * (n+1)) optimization. Rnd * (N+1) - .5 does the trick
by dafhi
Jun 21, 2018 4:31
Forum: Projects
Topic: A practical working ANN
Replies: 1
Views: 188

Re: A practical working ANN

thanks for that. poking around #include "BackPropagationNet.bi" #Ifndef floor '' http://www.freebasic.net/forum/viewtopic.php?p=118633 #Define floor(x) (((x)*2.0-0.5)shr 1) #define ceil(x) (-((-(x)*2.0-0.5)shr 1)) #EndIf type v3s as single x,y,z declare operator cast as ulong declare const...
by dafhi
Jun 15, 2018 1:36
Forum: Tips and Tricks
Topic: lofac
Replies: 4
Views: 271

lofac

2018 June 16 - updated with comments. '"lofac" is my own invention. The function returns the lowest factor. inspired by https://en.wikipedia.org/wiki/Primality_test type myint as integer function lofac(i as myint) as myint if i<4 then return 1 if (i and 1)=0 then return 2 var n=3 while n*n...
by dafhi
Jun 13, 2018 12:44
Forum: Tips and Tricks
Topic: sparse fill 2D
Replies: 0
Views: 151

sparse fill 2D

'#include "general.bas" /' ---- sparse fill 2d - 2018 June 12 - by dafhi fill 2d space with the following conditions: 1. large step 2. no holes or overlap (modulus-bound position) 3. minimal banding (please with current result) this project is inspired by my interest in global illuminatio...
by dafhi
Jun 12, 2018 1:56
Forum: General
Topic: new complete FB version ?
Replies: 34
Views: 1147

Re: new complete FB version ?

I typically take at least 3 naps a day. No pills. No drugs or alcohol. I'm only 44.

congrats on being a high-powered human
by dafhi
Jun 11, 2018 10:50
Forum: General
Topic: FPU grief
Replies: 15
Views: 255

Re: FPU grief

also the bits between ulong and single are tricky type sng_x2 as Single a,b END TYPE type ulong_x2 as ULong a,b END TYPE union Union64_test as sng_x2 s as ulong_x2 u as double d as ULongInt uu END UNION Sub ShowBits32( p as any ptr, Newline As boolean = true) '' init gfx or u will see wrong color ''...
by dafhi
Jun 11, 2018 9:54
Forum: General
Topic: FPU grief
Replies: 15
Views: 255

Re: FPU grief

progress? 'mov edx, dword Ptr [x] ' Put x into edx 'mov edx, [edx] ' address now in edx [1] finit fld dword ptr [tempvar] ' Put contents of edx onto FPU stack fld dword ptr [x] ' Put contents of TempVar onto FPU stack fdiv st(0), st(1) ' Divide st(0) by st(1) and store in st(0) fstp qword ptr [funct...
by dafhi
Jun 11, 2018 5:25
Forum: Game Dev
Topic: What is good cross platform gameloop?
Replies: 41
Views: 1902

Re: What is good cross platform gameloop?

super-excited! Haven't looked at the code too much but it's going in the vault

Go to advanced search