Search found 1317 matches

by dafhi
Feb 01, 2020 15:20
Forum: General
Topic: virtual func not overriding
Replies: 7
Views: 209

Re: virtual func not overriding

aww. yeah I'll do it for you guys :3

if that was a joke thought i didn't get it
by dafhi
Feb 01, 2020 15:01
Forum: General
Topic: virtual func not overriding
Replies: 7
Views: 209

Re: virtual func not overriding

ah. thanks! i wasn't aware that const would have an effect in such a manner

mostly i'm chomping at the bit to get a new ray tracer running. once i'm satisfied i'll *possibly* do away with the shorthand
by dafhi
Feb 01, 2020 14:35
Forum: General
Topic: virtual func not overriding
Replies: 7
Views: 209

virtual func not overriding

sphere.hit is intended to take precedent /' -- "fb 1337 h4x.bas" - 2020 Jan 28 - by dafhi -- '/ #undef int #define def #define def int as Integer def sng as single def dbl as double def ac as const def decl declare def func function def prop property def virt virtual def op operator def cs...
by dafhi
Jan 31, 2020 17:30
Forum: General
Topic: "ray tracing in one weekend"
Replies: 0
Views: 307

"ray tracing in one weekend"

I'm progressing through the course by the same name. Jan 31 - updated Main() for quick image scale scatter function 3 params (from 4) dielectric material /' -- "Main.bas" - 2020 Jan 31 - by dafhi -- - differences from Peter Shirley's version color function "attenuation = albedo" ...
by dafhi
Jan 29, 2020 15:29
Forum: General
Topic: c++ inline
Replies: 2
Views: 161

c++ inline

i'm wondering what would FB's version of this be

Code: Select all

class vec3 {
        inline vec3& operator+=(const vec3 &v2);
by dafhi
Jan 28, 2020 14:08
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 2588

Re: Windows graphics tutorial

DJP when no aa i see 1.87 sec Sub RenderSpheres(byval spheres as tSphere ptr ptr, byval nSpheres as integer) 'dim as ulong pixelRed,pixelGreen,pixelBlue dim as integer iWidth=640,iHeight=400 'screeninfo iWidth,iHeight:iWidth*=0.8:iHeight*=0.8 screenres iWidth,iHeight,32 windowtitle "render &quo...
by dafhi
Jan 28, 2020 13:05
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 2588

Re: Windows graphics tutorial

mr. doe your "wulines" look very good. i might have to use them 42 fps on my lines #include once "fbgfx.bi" #define def #define #undef int def int as Integer def sng as single def flr(x) _ '' floor() by Stonemonkey (((x)*2.0-0.5)shr 1) '#include "inc/aaline.bas" ' ---- ...
by dafhi
Jan 28, 2020 3:31
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 2588

Re: Windows graphics tutorial

your demo. -gen gcc -O 3 71 fps #include once "fbgfx.bi" #define def #define #undef int def int as Integer def sng as single def flr(x) _ '' floor() by Stonemonkey (((x)*2.0-0.5)shr 1) #define pixel_r( c ) ( culng( c ) shr 16 and 255 ) #define pixel_g( c ) ( culng( c ) shr 8 and 255 ) #def...
by dafhi
Jan 28, 2020 1:40
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 2588

Re: Windows graphics tutorial

yow! paul doe - the trickiest pixel quad project for me was winamp "melt" visualizer. D.J.Peters - thanks for that! another to add to the ol' collection [update] paul doe - I'll see if i can compare your aa lines speed using my Alpha256 macro. It usually takes me a long time ;) [update] i ...
by dafhi
Jan 27, 2020 1:52
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 2588

Re: Windows graphics tutorial

thanks dodicat!

@hurtado thanks for sharing! the intersection from scratchapixel looks optimized
by dafhi
Jan 24, 2020 4:21
Forum: Tips and Tricks
Topic: Heapsort, up/down, integer, with Tagged array
Replies: 5
Views: 342

Re: Heapsort, up/down, integer, with Tagged array

hmm. running a speed comp on your qs, i'm seeing about 1.5% gain var i=l: j=r '' shared var j While I <= J While a(I)dot direction a(l) dot:I+=1:Wend While a(l) dot direction a(J)dot:J-=1:Wend If I<J Then Swap a(I),a(J) I -= i<=j J += i<=j wend [update] your original is 1% faster w/ few unique heres...
by dafhi
Jan 23, 2020 0:55
Forum: Tips and Tricks
Topic: Heapsort, up/down, integer, with Tagged array
Replies: 5
Views: 342

Re: Heapsort, up/down, integer, with Tagged array

dodicat

your qs

Code: Select all

Swap array(I)dot,array(J)dot

should be

Code: Select all

Swap array(I),array(J)
by dafhi
Jan 22, 2020 4:31
Forum: Projects
Topic: FreeBasic Framework
Replies: 29
Views: 1904

Re: FreeBasic Framework

.. Since colors are ordered by perceived luminance , you can create some cool gradients/effects that are very hard to do with other color ordering models. It's also quite useful for UI tasks, such as ensuring some text remains visible regardless of its background color. https://www.openprocessing.o...
by dafhi
Jan 22, 2020 3:52
Forum: Projects
Topic: FreeBasic Framework
Replies: 29
Views: 1904

Re: FreeBasic Framework

i love it

Go to advanced search