Search found 661 matches
- May 04, 2012 9:26
- Forum: General
- Topic: matrix 3d problem
- Replies: 7
- Views: 439
matrix 3d problem
i m also trying graphics whit matrix's i have a bug / typo somewere ? type matrix dim as single m( 3 , 3 ) end type operator * ( a as matrix , b as matrix ) as matrix dim as integer i , j , k dim uit as matrix for i = 0 to 3 for j = 0 to 3 '' uit.m( i , j ) = 0 for k = 0 to 3 '' uit.m( i , j ) += a....
- May 04, 2012 9:21
- Forum: General
- Topic: color problem
- Replies: 2
- Views: 322
color problem
the eye's shoot be white but are blue what is my typo / error ? '' 3d engine dim shared as single v( 20 , 6 ) dim shared as single sk( 64 , 2 ) declare sub link( no as integer , x as single , y as single , z as single _ , pan as single , tilt as single , rol as single , p as integer ) declare sub ch...
Re: *.bi ?
changed code of .bi [ see below ] got : undeclared defenition [ several times ] can i overload fb comands ? example : declare function len( x as complex ) as single can i do : #include "type\complex.bi" #ifndef COMPLEX_BI #define COMPLEX_BI type complex dim i as double dim r as double decl...
Re: *.bi ?
it shoot be done like this i think but i got a strange error .bi type complex dim i as double dim r as double declare constructor() declare constructor( a as double , bj as double ) declare sub fill( a as double , bj as double ) declare function lenght() as double end type .bas #include "t_comp...
- May 03, 2012 13:22
- Forum: Beginners
- Topic: split( a as string ) as string() ?
- Replies: 11
- Views: 1850
split( a as string ) as string() ?
i want to split a string into parts :
o = split( "a test of split" )
o( 1 ) => "a"
o( 2 ) => "test"
etc...
how do i do that in fb ?
o = split( "a test of split" )
o( 1 ) => "a"
o( 2 ) => "test"
etc...
how do i do that in fb ?
*.bi ?
i want to split my code into *.bi's and *.bas's
instructions please
instructions please
- May 03, 2012 10:45
- Forum: Sources, Examples, Tips and Tricks
- Topic: raytracer
- Replies: 13
- Views: 1635
raytracer
this is my first try at a raytracer in fb bug : the spheres dont have random positions ''RAYTRACER ''bluatigro ''start : 19 apr 2012 type t3d x as single y as single z as single declare constructor() declare constructor ( x as single , y as single , z as single ) declare sub fill( x as single , y as...
- May 03, 2012 10:31
- Forum: Beginners
- Topic: maze creation
- Replies: 2
- Views: 606
Re: maze creation
thans for help
see this forum | programming | game dev | a simple maze
what i did whit it
see this forum | programming | game dev | a simple maze
what i did whit it
- May 03, 2012 10:29
- Forum: Game Dev
- Topic: a simple maze
- Replies: 4
- Views: 1425
a simple maze
this is my first game in fb future : -windows fulscreen & no border -joystick control how big can de maze be max ? i took a save bet at 30 but i think it can be more #include once "GL/gl.bi" #include once "GL/glu.bi" #include "fbgfx.bi" #if __FB_LANG__ = "fb&qu...
- May 03, 2012 8:58
- Forum: Windows
- Topic: win32 + opengl ?
- Replies: 3
- Views: 780
win32 + opengl ?
this is a try at win32 + opengl i shoot get a blue blank screen [ the blue is only there to see if opengl is started right ] #include once "windows.bi" #include once "GL/gl.bi" #include once "GL/glu.bi" declare function WinMain ( byval hInstance as HINSTANCE, _ byval hP...
- May 03, 2012 8:49
- Forum: Windows
- Topic: gdi problem
- Replies: 4
- Views: 1071
gdi problem
i have 2 questions : -1: why dont i get a blank screen ? -2: how do i lose the blue bar at the top #include once "windows.bi" dim shared as integer key( 255 ) dim shared as integer mouse_x dim shared as integer mouse_y dim shared as integer mouse_left dim shared as integer mouse_right dim ...
- Apr 29, 2012 17:34
- Forum: Beginners
- Topic: maze creation
- Replies: 2
- Views: 606
maze creation
i want to create a maze at random i have this : const as integer maxx = 10 const as integer maxy = 10 dim shared as integer maze( maxx , maxy ) dim as integer x , y for x = 0 to maxx for y = 0 to maxy maze( x , y ) = not 0 if x mod 2 and y mod 2 then maze( x , y ) = 0 next y next x ''createmaze for ...
- Apr 29, 2012 17:21
- Forum: Beginners
- Topic: how to do a child class ?
- Replies: 6
- Views: 1591
Re: how to do a child class ?
thans for help
due to my eye problems i have difficultys whit searching
due to my eye problems i have difficultys whit searching
- Apr 29, 2012 17:11
- Forum: Beginners
- Topic: sub savescreenasbmp( file as string ) ?
- Replies: 12
- Views: 1234
Re: sub savescreenasbmp( file as string ) ?
i want to store the screen as *.bmp on disc
i m planning animations of more than 1000 bmp's
so i cant use bsave
whit a array of bmp's on disc i can create avi's
on the moment i m creating simple games / animations whit opengl + fb
i m planning animations of more than 1000 bmp's
so i cant use bsave
whit a array of bmp's on disc i can create avi's
on the moment i m creating simple games / animations whit opengl + fb
- Apr 28, 2012 10:15
- Forum: Beginners
- Topic: sub savescreenasbmp( file as string ) ?
- Replies: 12
- Views: 1234
sub savescreenasbmp( file as string ) ?
i want to create animations whit FB
i aready know how to do graphics
what i need to store the pictures is a
savescreenasbmp( file as string ) sub
how ?
i aready know how to do graphics
what i need to store the pictures is a
savescreenasbmp( file as string ) sub
how ?