Search found 31 matches

by Haubitze
May 25, 2019 9:25
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 922
Views: 146099

Re: MiniB3d for FreeBasic

hello angros47, now a demo for my problem with the internal 2d renderer for opengl, #Include once "fbgfx.bi" #Include Once "crt.bi" #Include Once "crt/math.bi" #Include Once "math.bi" #Include Once "crt/limits.bi" #Include Once "gl\gl.bi" #...
by Haubitze
May 24, 2019 0:06
Forum: Beginners
Topic: File i/o question.
Replies: 3
Views: 156

Re: File i/o question.

read the complete line in a string and then split the string you get like this

Code: Select all

a=mid(in,1,50)
b=mid(in,51,50)
c=mid(in,101,10)

then you can convert all these strings to intergers or what else you will. see for that the 'string operations' in the FB-help.
by Haubitze
May 12, 2019 15:14
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 922
Views: 146099

Re: MiniB3d for FreeBasic

hi angros47, i have a question about your 2d fbgfx patch for opengl. if you know i use OpenB3D, i also use sGUI from Muttonhead and i have patched the sGUI to work with the old 2d.bi. the last version of sGUI uses now 32 bit images mostly all cleared to rgba(0,0,0,0) and then painted with sGUI stuff...
by Haubitze
May 10, 2019 16:34
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 922
Views: 146099

Re: MiniB3d for FreeBasic

i made a function to create a spherized Cube. i hope anyone find it usefull. only problem i cant solve is the texturemapping so you have to solve it by your own :/ ' ---------------------------------------------------------------------------- ' Creates a spherized Cube ' ----------------------------...
by Haubitze
Mar 05, 2019 0:28
Forum: General
Topic: Squares
Replies: 6391
Views: 366794

Re: Squares

i think this will work

13/16=0.8125
100.000Kb * 0.8125=81.250Kb

oh yeah you calculate it right :D
by Haubitze
Jan 05, 2019 14:25
Forum: Community Discussion
Topic: Building FreeBASIC 1.06 Release
Replies: 46
Views: 3948

Re: Building FreeBASIC 1.06 Release

@ST_W yeah you are absolutly right with the argument of using ARM v7 on the RPi, i also use the official Raspian that is only 32 bit. but here i found a experimental OS based on Debian. i dont have test it so far but eventualy you will take a look at it. https://github.com/bamarni/pi64 my RPi curren...
by Haubitze
Jan 04, 2019 17:14
Forum: Community Discussion
Topic: Building FreeBASIC 1.06 Release
Replies: 46
Views: 3948

Re: Building FreeBASIC 1.06 Release

for the RPiv3 i wish ARMv8 support where nice. but ARMv7 are good for now to test it on a ARM SoC.
by Haubitze
Dec 02, 2018 12:16
Forum: General
Topic: Too restrictive compilation control on dynamic arrays in the main code?
Replies: 30
Views: 1189

Re: Too restrictive compilation control on dynamic arrays in the main code?

here my version for 32 and 64 bit, but i think only for windows. sub dothis static as long locked if locked then return print "Greetings from " + __function__ locked=1 end sub dothis '============================ 'one code line to be greeted again '============================ dim x as lon...
by Haubitze
Dec 02, 2018 11:18
Forum: General
Topic: Too restrictive compilation control on dynamic arrays in the main code?
Replies: 30
Views: 1189

Re: Too restrictive compilation control on dynamic arrays in the main code?

hm yeah for 64bit the code is sub dothis static as long locked if locked then return print "Greetings from " + __function__ locked=1 end sub dothis '============================ 'one code line to be greeted again '============================ 'dim x as long ptr=cast(long ptr,@dothis):*(x+8...
by Haubitze
Dec 01, 2018 23:13
Forum: General
Topic: Too restrictive compilation control on dynamic arrays in the main code?
Replies: 30
Views: 1189

Re: Too restrictive compilation control on dynamic arrays in the main code?

a little hack where works by me sub dothis static as long locked if locked then return print "Greetings from " + __function__ locked=1 end sub dothis '============================ 'one code line to be greeted again '============================ dim x as long ptr=cast(long ptr,@dothis):*(x+...
by Haubitze
Nov 12, 2018 10:07
Forum: Tips and Tricks
Topic: simulate oldscool amber/green monitor with rgb inputs
Replies: 4
Views: 512

Re: simulate oldscool amber/green monitor with rgb inputs

oh my fault. you can delete this line, all you need is in the posted code ;) here is an newer version, the above version has an bug with the orginal picture colors, now it is fixed. #Include "fbgfx.bi" '#Include "colorizer.bi" Using FB Static scr_w As Integer=1024 Static scr_h As...
by Haubitze
Nov 11, 2018 18:42
Forum: Tips and Tricks
Topic: simulate oldscool amber/green monitor with rgb inputs
Replies: 4
Views: 512

Re: simulate oldscool amber/green monitor with rgb inputs

so now an bether version of this thing, its a bit slow but it works. todo: improve speed render curvature of an crt screen blur the output a bit phosphor glow has to imlement you need an image, you can use any rgb bmp or create your own 32 bit image. edit: speed nearly doubled, using a macro to get ...
by Haubitze
Nov 10, 2018 8:45
Forum: General
Topic: [Code question] variables and unwanted results.
Replies: 10
Views: 604

Re: [Code question] variables and unwanted results.

how fxm says, in your last code example in the XC sub you have to print out NewZ/Y not x/y ;) sub TheXC (x as integer, y as integer, z as integer, xangle as integer, yangle as integer, zangle as integer) DIM AS INTEGER NewY, NewZ NewY = y * cos(XAngle * (D_PI / 180)) - z * sin(XAngle * (D_PI / 180))...
by Haubitze
Nov 02, 2018 20:40
Forum: Tips and Tricks
Topic: simulate oldscool amber/green monitor with rgb inputs
Replies: 4
Views: 512

simulate oldscool amber/green monitor with rgb inputs

hey there, i have write an simple thing that converts normal rgb values to any else "monocrome" values. i dont know if and how it can improved. you can use keys a and d to anjust the brighness of the output. i hope anyone can use this for projects that matchs "oldscool". so here ...

Go to advanced search