Search found 652 matches

by bluatigro
May 17, 2012 12:08
Forum: Projects
Topic: raytracer
Replies: 13
Views: 1175

Re: raytracer

@ fxm : i now see it [ i have a eyeproblem ] update : - added lightsources [ red , green , blue ] ''RAYTRACER ''bluatigro ''start : 19 apr 2012 declare function mix( kla as integer , f as single , klb as single ) as integer const as single pi = atn( 1 ) * 4 const as integer black = &h000000 cons...
by bluatigro
May 16, 2012 11:58
Forum: Game Dev
Topic: invaders from space
Replies: 16
Views: 3036

Re: invaders from space

what shoot hapen : you have 3 lives every time you are hit you loose one you fire at the enemy's if you hit one you get 10 points if have hit al enemy's you get a new level in eatch level the agresion of the enemy's increases [ trey fire more ] in this code somethings are REMed because if i use them...
by bluatigro
May 12, 2012 20:56
Forum: Projects
Topic: raytracer
Replies: 13
Views: 1175

Re: raytracer

@ fxm : - al smal speedups give [ hopefuly ] 1 big one @ frisian : - in the future i wil add reflection and refraction - then i wil need a recusive ray( n , d ) - and 2e color in mix( kla , d , klb ) update : - added perspertive error : - my spheres are stil black why ? ''RAYTRACER ''bluatigro ''sta...
by bluatigro
May 11, 2012 14:29
Forum: Game Dev
Topic: invaders from space
Replies: 16
Views: 3036

Re: invaders from space

what shoot hapen : - you have 1 live - the enemy fires at you - if you are hit the game ends - you fire at the enemy's - if you hit one it disappers - if a shield is hit it stops the enemyfire and disappers future : - points system - 3 lives at begin - levels ? ''primary colors const as integer blac...
by bluatigro
May 11, 2012 13:20
Forum: Game Dev
Topic: invaders from space
Replies: 16
Views: 3036

invaders from space

this is my 2e try at a game what shoot happen : red enemy's come slowly donward the sceen the player fires at them if a enemy is hit he disappers furure : enemy fires back if a shield is hit it stops the enemyfire and dissappers player has 3 lives at the start if player is hit he loses 1 live if al ...
by bluatigro
May 11, 2012 11:00
Forum: Tips and Tricks
Topic: E motions sim
Replies: 6
Views: 720

Re: E motions sim

taking al "lessons" into 1 i think this looks good to : type e_motion dim naam as string dim x as single dim y as single dim z as single declare constructor( n as string = "" , nx as single = 0 , ny as single = 0 , nz as single = 0 ) declare function move( e as integer , speed as...
by bluatigro
May 11, 2012 10:21
Forum: General
Topic: Position item in an array larger than 3D
Replies: 94
Views: 8223

Re: Position item in an array larger than 3D

you can use a index() function like : [ this is non working code : its a example ] this is whit 4 dimensions it can be more than that const as integer maxa = 4 const as integer maxb = 5 const as integer maxc = 6 const as integer maxd = 7 dim q( maxa * maxb * maxc * maxd ) as something ''etc.. declar...
by bluatigro
May 11, 2012 9:52
Forum: Projects
Topic: raytracer
Replies: 13
Views: 1175

Re: raytracer

tryed : - altering tsphere.normal( td3 ) t3d - altering angle( t3d , t3d ) single i cant find the error[s] i left in - a hint wil be welkome added : const's color's same output : ''RAYTRACER ''bluatigro declare function mix( kla as integer , f as single , klb as single ) as integer const as single p...
by bluatigro
May 10, 2012 11:43
Forum: General
Topic: matrix 3d problem
Replies: 7
Views: 285

Re: matrix 3d problem

now i can do things like this : ''create matrix type to hold position & orentation type matrix dim as single m( 3 , 3 ) end type ''create multyplycation operator for matrix 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...
by bluatigro
May 10, 2012 11:33
Forum: Projects
Topic: raytracer
Replies: 13
Views: 1175

Re: raytracer

thanks that improves the draw-speed many times !! update : now trying to get a lightsource to work error : al my spheres look black ''RAYTRACER ''bluatigro declare function mix( kla as integer , f as single , klb as single ) as integer const as single pi = atn( 1 ) * 4 type t3d x as single y as sing...
by bluatigro
May 09, 2012 12:28
Forum: Projects
Topic: raytracer
Replies: 13
Views: 1175

Re: raytracer

update : - place bug fount it runs verry slow i dont think i gone extend this or has someone a idea how to speed this up ? ''RAYTRACER ''bluatigro ''start : 19 apr 2012 ''sphere on place : 9 may 2012 type t3d x as single y as single z as single declare constructor() declare constructor ( x as single...
by bluatigro
May 07, 2012 14:11
Forum: Game Dev
Topic: a simple maze
Replies: 4
Views: 1047

Re: a simple maze

a try at a windows maze so i have fulscreen error : -cubes not visible -the scene keeps rotating -so does not react to mouse -opengl window not ful screen [ right is missing ] code reacts wel to keyboard #include once "windows.bi" #include once "GL/gl.bi" #include once "GL/g...
by bluatigro
May 07, 2012 12:20
Forum: Windows
Topic: gdi problem
Replies: 4
Views: 606

Re: gdi problem

this i can use

thans
by bluatigro
May 07, 2012 12:03
Forum: Beginners
Topic: *.bi ?
Replies: 7
Views: 374

Re: *.bi ?

i want to take a c++ like way to do this

and store every class into its own *.bi and *.bas file

so i dont have to cut and paste every time i use a object

and opengl stuf in one big one

i m using fbide to code stuf
by bluatigro
May 07, 2012 11:49
Forum: General
Topic: color problem
Replies: 2
Views: 233

Re: color problem

used the shr example

it works now

tanks

Go to advanced search