|
Post by NovaGene on Jun 12, 2004 7:00:54 GMT -5
Does any1 have ideas on how to track or capture camera coordinates? I am thinking of doing a flying shooting game. Testing of collision requires the coordinates of the camera (player), enemy objects, bullets/missiles, ground, etc. I have tried to modify the camera.gb demo and play ard with the camera# matrix (camera#(3) - row vector of translation. Is this correct? ) but doesn't seem to go anywhere. Tks! - Lucas Tan -
|
|
|
Post by AHBanen on Jun 28, 2004 4:39:47 GMT -5
Lucas, Just as a first look at camera.gb I tried to add to camera coordinates into the display like this - at the end of the program (the lines indicated with '<== were added): [I'm still looking for my references on 3D translations, rotations and scaling to remember where the calculated coordinates in the resulting 4*4 matrix always went up (I would like to sure before giving any advise ).] Enter the matrix of Basic4GL... André
|
|
|
Post by NoVaGene on Jul 6, 2004 4:47:59 GMT -5
Thanks André! I shd have tot of tat.... am currently focusing most of my attention in making a simple sequencer to animate reasonable good linear motion. Its abt 50% completed. (got couple of teething bugs tho!). Hopefully to port it mechs adversary game when its done. Rgds, Lucas Tan
|
|