Search found 586 matches

by Stonemonkey
Jan 05, 2020 19:36
Forum: Hardware Interfaces / Communication
Topic: fbvideoclass (Windows 32/64-bit)
Replies: 22
Views: 8703

Re: fbvideoclass (Windows 32/64-bit)

I have something kind of working now (in 32bit) and the effect is quite good even though its all pretty rough so far. The lag to the screen is there but it's not too bad but there seems to be a slight lag between the cameras, so when triangulating head position if I move my head to one side it think...
by Stonemonkey
Jan 03, 2020 23:32
Forum: Hardware Interfaces / Communication
Topic: fbvideoclass (Windows 32/64-bit)
Replies: 22
Views: 8703

Re: fbvideoclass (Windows 32/64-bit)

Thanks, and no worries, I can do it in 32 bit, it's just a test to see what sort of results I can get.
Got some coloured LEDs ordered, but now wondering if IR might be better, tried out an LED light and it results in bad reflection off screen, and with an IR pass filter it would be easier to track.
by Stonemonkey
Jan 03, 2020 19:13
Forum: Hardware Interfaces / Communication
Topic: fbvideoclass (Windows 32/64-bit)
Replies: 22
Views: 8703

Re: fbvideoclass (Windows 32/64-bit)

@Joshy thanks, I've installed the 32 bit compiler now and im_capture is working on that, both streams and not too much lag but I'm not sure how my project will work with even a little lag, might just end up with motion sickness or something.
by Stonemonkey
Jan 03, 2020 3:33
Forum: General
Topic: Squares
Replies: 7687
Views: 481050

Re: Squares

i'm getting myself confused, i thought you were just trying to get the overloaded operator to work.
by Stonemonkey
Jan 03, 2020 3:32
Forum: General
Topic: Squares
Replies: 7687
Views: 481050

Re: Squares

sorry, it was working, ive edited the code in my post above.
by Stonemonkey
Jan 03, 2020 3:11
Forum: General
Topic: Squares
Replies: 7687
Views: 481050

Re: Squares

@albert, looks like it works, it was writing the value into i screen 19 type number i as integer orig as integer end type operator abs overload( byref n as number ) as integer n.orig = n.i return abs( n.i )' or n.i*sgn(n.i) end operator print "number" , "abs(number)" , "orig...
by Stonemonkey
Jan 03, 2020 2:18
Forum: Hardware Interfaces / Communication
Topic: fbvideoclass (Windows 32/64-bit)
Replies: 22
Views: 8703

Re: fbvideoclass (Windows 32/64-bit)

Hi Joshy, just come across this and there's something I'm wanting to try. There's someone called Johnny Lee on youtube with a video on headtracking using the wii camera and remote, if you've not seen it then check it out to see what im talking about. I'm wanting to try something similar, I have a US...
by Stonemonkey
Dec 27, 2019 23:32
Forum: General
Topic: Date & Time Compression
Replies: 10
Views: 350

Re: Date & Time Compression

Why does it feel like I'm doing someone's homework? #define encode(t,d,m,o) t=t*m+(d-o) #define decode(s,t,m,o) print s;(t mod m)+o:t\=m function encode_time_and_date(byval _year as ulong,_ byval _month as ulong,_ byval _day as ulong,_ byval _hour as ulong,_ byval _minute as ulong,_ byval _second as...
by Stonemonkey
Dec 27, 2019 0:39
Forum: General
Topic: Squares
Replies: 7687
Views: 481050

Re: Squares

@albert MERRY CHRISTMAS!

I'm away for a few days, no PC, only tablet, will there ever be any chance of FB on arm Android?
by Stonemonkey
Dec 27, 2019 0:35
Forum: General
Topic: Rounding of Single
Replies: 7
Views: 346

Re: Rounding of Single

No, not a bug, it's rounding to nearest but in the case of x.5 the nearest is neither round up or down so it rounds to even. It's possible to change the FPU rounding mode on x86 but I'm not sure if FB on x64 makes use of the FPU or SSE units for floating point ops, I'll have a look to see what's goi...
by Stonemonkey
Dec 21, 2019 14:38
Forum: General
Topic: Squares
Replies: 7687
Views: 481050

Re: Squares

@albert I think we must have quite large drawing boards.
by Stonemonkey
Dec 13, 2019 20:45
Forum: General
Topic: Squares
Replies: 7687
Views: 481050

Re: Squares

@albert An idea I just tried, taking say 7 bits at a time and counting the number of set bits, direct each 7 bits to one of 2 streams, one stream with mostly 0s and the other with mostly 1s, then compress each stream separately, so the stream with mostly 0s is compressed using 00=0, 1=1 and 01=2, st...
by Stonemonkey
Dec 08, 2019 11:08
Forum: General
Topic: Squares
Replies: 7687
Views: 481050

Re: Squares

@albert I posted code to do that a page or two back. Change the '4' in the main sub to value from 1 to 4 to get permutations containing 1 to 4 different digits. function make_map(byval b as ulong)as ulong return (1 shl(b and 3))or(1 shl((b shr 2)and 3))or(1 shl((b shr 4)and 3))or(1 shl((b shr 6)and ...
by Stonemonkey
Dec 05, 2019 19:13
Forum: General
Topic: Squares
Replies: 7687
Views: 481050

Re: Squares

But was he able to bring all the sheep back?
by Stonemonkey
Dec 03, 2019 20:13
Forum: General
Topic: Squares
Replies: 7687
Views: 481050

Re: Squares

@albert, looks like you've got 0x and x0 giving out the same code.

Go to advanced search