Search found 1356 matches

by dafhi
Feb 14, 2012 15:35
Forum: Community Discussion
Topic: Favorite Classic Arcade Game?
Replies: 24
Views: 3185

Re: Favorite Classic Arcade Game?

1943
Dragon's Lair
Spy Hunter
Rampage
Xevious
Gauntlet
Stun Runner
Raiden (prolly my fave)
Paperboy
Pole Position
Dig Dug
Elevator Action
Twin Cobra
Strikers 1945
Commando
by dafhi
Feb 12, 2012 7:59
Forum: General
Topic: Squares
Replies: 8041
Views: 596736

Re: Squares

Odd state of affairs of the software / hardware industry. Seems like if you buy a product, you should be able to use it. That's not the case when manufacturers won't give out foundational specifications. As much as I've ranted about seemingly inefficient modes of commercial products (file fragmentat...
by dafhi
Feb 12, 2012 7:24
Forum: General
Topic: Squares
Replies: 8041
Views: 596736

Re: Squares

OS creation is on my ToDo list :-)
by dafhi
Feb 12, 2012 5:48
Forum: General
Topic: The Mirage (silly doodle)
Replies: 4
Views: 664

Re: The Mirage (silly doodle)

Dim Shared As Integer PartCount = 10000 Dim Shared As Single avg_lifetime = 4.5 Dim Shared As Single lifetime_variance = 1 Dim Shared As Const Double pi = 4 * Atn(1) Dim Shared As Const Double TwoPi = 8 * Atn(1) Dim Shared As Const Double piBy2 = 2 * Atn(1) Dim Shared As Const Double piBy4 = 1 * At...
by dafhi
Feb 07, 2012 1:09
Forum: Tips and Tricks
Topic: terminal velocity
Replies: 5
Views: 1408

Re: terminal velocity sim

Interesting that k seems to represent the density of the surrounding medium, and that you've used e.
It gives a satisfying result.

I hope to be working with sequence sums again soon because I love exploring this stuff
by dafhi
Feb 06, 2012 8:01
Forum: Community Discussion
Topic: Bryce 7 Pro
Replies: 2
Views: 520

Bryce 7 Pro

is up for grabs "for a limited time". I've used Bryce before, and Pro has some cool features like indirect illumination.

Enjoy :)
by dafhi
Feb 02, 2012 5:31
Forum: Tips and Tricks
Topic: Sort Array
Replies: 62
Views: 13907

Re: Sort Array

My sort is about 6% faster than this crt qsort, but only up to about 70k elements. Dim As Integer NumElements = 65000 Dim Shared As double mTimeQ,mTimeG,MinLoopTime Dim Shared As String strNum,strDen #include "crt.bi" function compare naked cdecl( byval elem1 as any ptr, _ byval elem2 as a...
by dafhi
Jan 31, 2012 1:46
Forum: General
Topic: Bug in lbound and ubound within sub?
Replies: 4
Views: 404

Re: Bug in lbound and ubound within sub?

Code: Select all

sub test(ary() as integer)
    print lbound(ary,1),ubound(ary(423545),1)
end sub

dim as integer a(1 to 5)
test(a())
? LBound(a(23455242),1)
Sleep
by dafhi
Jan 31, 2012 1:19
Forum: Tips and Tricks
Topic: accurate alpha blend
Replies: 4
Views: 971

Re: accurate alpha blend

hi Dr_D Thanks for sharing your core blend function. Your original uses (255 * delta) Shr 8 which of course is not accurate, but meant for speed. #Include "fbgfx.bi" #Define TRUE -1 #Define FALSE 0 ScreenRes 400, 400, 32,, fb.GFX_ALPHA_PRIMITIVES Const MagicNumber = 256 * 255 + 128 Sub Sho...
by dafhi
Jan 30, 2012 23:49
Forum: Tips and Tricks
Topic: accurate alpha blend
Replies: 4
Views: 971

Re: accurate alpha blend

Hi Gonzo, The sub you have provided is good. The short answer to your question is "no" because you are still using a ruler that is the same size (256 - 1) while trying to divide it by a bigger ruler. Sub AlphaBlend32(ByRef dest As UInteger, ByVal src As UInteger, ByVal opacity as UByte) ' ...
by dafhi
Jan 30, 2012 21:04
Forum: Tips and Tricks
Topic: Dynamic arrays in UDTs (once again)
Replies: 15
Views: 4934

Re: Dynamic arrays in UDTs (once again)

Very nice.
by dafhi
Jan 30, 2012 3:38
Forum: Tips and Tricks
Topic: accurate alpha blend
Replies: 4
Views: 971

accurate alpha blend

' ---------------------------------- ' ' accurate alpha blend demo ' ' by cRex ' ' ---------------------------------- ' ' - Overview - 'Many internal alpha blending functions sacrifice quality for speed. 'Blending artifacts emerge because r,g,b get multiplied by an alpha 'ranging from 0 to 255, and...
by dafhi
Jan 29, 2012 2:43
Forum: Tips and Tricks
Topic: terminal velocity
Replies: 5
Views: 1408

terminal velocity

Finally. ( well, almost. identified a problem with my pre-loop logic ) [2020 Oct 13] - fast, accurate, framerate-independent /' -- fast terminal velocity - 2020 Oct 13 - by dafhi goal: fps-independence and simple physics currently 1. acceleration is not fps-independent 2. necessary pre-calcs aren't ...
by dafhi
Jan 17, 2012 10:26
Forum: Tips and Tricks
Topic: mandelbrot
Replies: 14
Views: 2482

Re: mandelbrot

Thanks for your input! It has been updated :)
by dafhi
Jan 16, 2012 5:04
Forum: Tips and Tricks
Topic: mandelbrot
Replies: 14
Views: 2482

Re: mandelbrot

Nice update

Go to advanced search