Search found 1322 matches

by dafhi
May 16, 2020 23:29
Forum: General
Topic: Squares
Replies: 7830
Views: 488254

Re: Squares

The energy that creates worlds and human imagination are one in the same
by dafhi
May 10, 2020 23:16
Forum: General
Topic: Line Benchmark w/o AA
Replies: 6
Views: 566

Re: Line Benchmark w/o AA

it's gorgeous =) i must do some tests 75% improvement w/ Alpha256 [update 2] #define def #define #undef int def int as integer def sng as single def dbl as double '' http://www.freebasic.net/forum/viewtopic.php?p=118633 def floor(x) (((x)*2.0-0.5)shr 1) Type d2 As Single x,y End Type Sub fill(p() As...
by dafhi
May 10, 2020 21:16
Forum: General
Topic: Line Benchmark w/o AA
Replies: 6
Views: 566

Re: Line Benchmark w/o AA

finally got it /' -- line-rect clipper 2020 May 11 - by dafhi -- updates auto exit @1 min unused vars wm hm moved namespace 'slope' after subs that don't use simplified clip and clip_hypervisor renamed loopstart to loop_positive '/ #undef int #define def #define def int as Integer def sng as single ...
by dafhi
Apr 29, 2020 22:17
Forum: General
Topic: Line Benchmark w/o AA
Replies: 6
Views: 566

Re: Line Benchmark w/o AA

I suppose i should shut my trap and wait till i have something complete =)

Clean, efficient bounds checks for me will be the next step. I'm usually playing video games but when I have a-ha moments I can plow through code quickly
by dafhi
Apr 29, 2020 2:59
Forum: General
Topic: Line Benchmark w/o AA
Replies: 6
Views: 566

Re: Line Benchmark w/o AA

I'm sure you know only FB Line does not crash out of bounds. I might have a go at this. From my AA I recall having a set of 'virtual' dimension variables which i swap if dx < dy, as seen from drawline4 here's what i have so far #undef int #define def #define def int as Integer def sng as single name...
by dafhi
Mar 13, 2020 22:58
Forum: Tips and Tricks
Topic: WIN-API without any #Include "..."
Replies: 13
Views: 703

Re: WIN-API without any #Include "..."

I for one find this post interesting. Thank you Mr. Swiss
by dafhi
Mar 10, 2020 11:43
Forum: Tips and Tricks
Topic: MiniLight 1.7 a minimal global illumination renderer.
Replies: 7
Views: 1638

Re: MiniLight 1.7 a minimal global illumination renderer.

really nice! when i get time i can speed it up :)

[edit] i tried. over the long haul, what you've got is hard to beat
by dafhi
Mar 06, 2020 5:23
Forum: General
Topic: Squares
Replies: 7830
Views: 488254

Re: Squares

albert you are on the right track. i've been thinking about writing a compression routine for the longest time. Frequency analysis is one of two major concepts i have in mind. The other is the invention of a new numbering system (like roman numerals vs decimal)
by dafhi
Mar 04, 2020 7:30
Forum: Tips and Tricks
Topic: Magnifier build 2020-03-05 [Windows only] ^^
Replies: 5
Views: 385

Re: Magnifier build 2020-03-03 [Windows only] ^^

In addition to being nice source material for people who don't know how to do this on their own, this "cute" project is quite useful, although I already have an easy way to scale pixels in my own projects. Will I switch? Don't know yet
by dafhi
Feb 23, 2020 20:43
Forum: General
Topic: triangle world try
Replies: 12
Views: 656

Re: triangle world try

hahaha .. that's great. It's interesting what people build once they have the tools.

[edit] I thought your previous demo looked a bit "off" but now I understand
by dafhi
Feb 23, 2020 20:26
Forum: Tips and Tricks
Topic: Growing plant in the breeze v0.70
Replies: 10
Views: 612

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

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

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

Re: Let woes

var knows what to do with it :P

Go to advanced search