Search found 1326 matches

by dafhi
Feb 23, 2020 20:26
Forum: Tips and Tricks
Topic: Growing plant in the breeze v0.70
Replies: 10
Views: 693

Re: Growing plant in the breeze v0.6

I didn't realise that anti aliasing actually is not too easy. hahaha .. I can briefly describe my algo. It's "thickline," so to avoid too many if - else blocks I have a set of "virtual" x / y var sets (pitch included for both). If line width is greater than length, I reorient th...
by dafhi
Feb 22, 2020 22:58
Forum: Tips and Tricks
Topic: Growing plant in the breeze v0.70
Replies: 10
Views: 693

Re: Growing plant in the breeze v0.6

this here demo inspired me to write a thickline aa
http://www.pouet.net/prod.php?which=8758

There are many versions of mine. I'm hard-pressed to recommend any b/c I'm not sure which is most up-to-date.

nice-looking demo dodicat. paul's crashes
by dafhi
Feb 20, 2020 23:39
Forum: Tips and Tricks
Topic: Growing plant in the breeze v0.70
Replies: 10
Views: 693

Re: Growing plant in the breeze v0.6

'thicc' aa and such short code. took me 10 years and 6-7 attempts to get working. and my code is huge. but the results are also perfect except where x0=x1,y0=y1,or endcap < 0 and len <= 0, an issue i never got around to ironing out. why not make the endpoints single? [edit:] well i know why: 'aa' is...
by dafhi
Feb 17, 2020 18:30
Forum: General
Topic: Let woes
Replies: 2
Views: 316

Re: Let woes

var knows what to do with it :P
by dafhi
Feb 17, 2020 17:59
Forum: Tips and Tricks
Topic: Simple tangent.
Replies: 16
Views: 786

Re: Simple tangent.

nice catch, dodicat :-) now you're reminding me of myself :P
by dafhi
Feb 10, 2020 16:24
Forum: Game Dev
Topic: Moving on random spline loops with near const speed !
Replies: 8
Views: 670

Re: Moving on random spline loops with near const speed !

nice work. the movement looks organic
by dafhi
Feb 06, 2020 0:25
Forum: General
Topic: Let woes
Replies: 2
Views: 316

Let woes

really think i found a bug this time type foo as integer q declare property length as integer end type property foo.length as Integer return q end property operator -(l as foo, r as foo) as foo return type(l.q-r.q) end operator type bar as integer a declare property some_int(in as integer) end type ...
by dafhi
Feb 05, 2020 14:18
Forum: Community Discussion
Topic: SSD's life expectancy
Replies: 26
Views: 1356

Re: SSD's life expectancy

most of the stuff I care about is < 20K in source code.

Media I have on an external USB. Recently bought 4 flash drives on the cheap - mostly for trying different OS's. Probably going to grab another.
by dafhi
Feb 01, 2020 15:43
Forum: General
Topic: virtual func not overriding
Replies: 7
Views: 271

Re: virtual func not overriding

well thanks guys. ima keep pushing till i get this thing done then i'll .pp it out

[edit] nice example there Mr. doe. It took me some time away from the screen and then a re-visit .. the code is short enough .. to grok what you were showcasing
by dafhi
Feb 01, 2020 15:20
Forum: General
Topic: virtual func not overriding
Replies: 7
Views: 271

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

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

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

"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: 193

c++ inline

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

Code: Select all

class vec3 {
        inline vec3& operator+=(const vec3 &v2);

Go to advanced search