[tankpack] turret camera
by Pat AfterMoon · in Torque Game Engine · 01/19/2005 (3:23 pm) · 49 replies
This thread related to the BraveTree TankPack is intended to continue the discussion started here, but in private forum like Joe Maruschak from BraveTree has suggested.
So, I have commented BraveTree camera code and script, and reintroduced the eye/cam classic view like Michael Cozzolino has described. It works, but I have a little bug, similar to one already existing in Paul Dana Turret resource :
My eye node's parent is the codeWeapon node, so in 1st person view, It look where barrel aim. If I use the eye2 position the bug never occur. If I use the eye1 position the bug occur. I have modified tank datablock for allow horizontal 360 degree turn range and vertical 90 degree, for testing. The bug seem to occur when I look to the left or right (90 degree) or when I move the barrel up, first it work well, when I reach 45 degree the barrel and complete tank disappear, then if I move up a little bit it reappear.
I have enlarged the bound object with 3dsmax in case of, but no changement, any idea ?
So, I have commented BraveTree camera code and script, and reintroduced the eye/cam classic view like Michael Cozzolino has described. It works, but I have a little bug, similar to one already existing in Paul Dana Turret resource :
Quote:in first person view the turret's barrel disappears for certain pitch angles. I am not sure what causes this. The turret still functions...you just can't see the barrel at those angles in first person view.Look at the 3dsmax screenshot :
My eye node's parent is the codeWeapon node, so in 1st person view, It look where barrel aim. If I use the eye2 position the bug never occur. If I use the eye1 position the bug occur. I have modified tank datablock for allow horizontal 360 degree turn range and vertical 90 degree, for testing. The bug seem to occur when I look to the left or right (90 degree) or when I move the barrel up, first it work well, when I reach 45 degree the barrel and complete tank disappear, then if I move up a little bit it reappear.I have enlarged the bound object with 3dsmax in case of, but no changement, any idea ?
#42
I've found a problem in your code... or.. I think..
Everything work perfectly with horizontal rotation speed but not for vertical... have you found some problem with it?
01/07/2006 (11:16 am)
@JerryI've found a problem in your code... or.. I think..
Everything work perfectly with horizontal rotation speed but not for vertical... have you found some problem with it?
#43
01/07/2006 (12:24 pm)
Ok, my code post could be misleading because I intended the original code to be changed at the beginning of TankShape::getCameraTransform(), not replace the entire function. I went back and eliminated some of the redundant code and updated my post above with the entire function.
#44
Thank you so much... now it's working perfectly....
Now I'm able to start lerning from your mod....
01/07/2006 (4:55 pm)
@JosephThank you so much... now it's working perfectly....
Now I'm able to start lerning from your mod....
#45
I mean... I would like to draw a line of fire from my tank.. like a laser beam... where could I find some info about it?
thx
01/07/2006 (7:19 pm)
It's possible to draw a line, a circle, and arc, and so on.... in 3d?I mean... I would like to draw a line of fire from my tank.. like a laser beam... where could I find some info about it?
thx
#46
Your question aint exactly on topic of this thread, so you might be in better luck if you create a spesific thread for your question, or ask in one of the existing threads.
Now, since I felt like being helpfull, I can point you to this resource:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8006
01/07/2006 (11:14 pm)
I'm very sure you will find alot if you use the search feature of these forums.Your question aint exactly on topic of this thread, so you might be in better luck if you create a spesific thread for your question, or ask in one of the existing threads.
Now, since I felt like being helpfull, I can point you to this resource:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8006
#47
12/11/2006 (1:18 pm)
Has anyone got it to work to have those tanks drive by AI?
#48
12/12/2006 (12:27 pm)
Yes, something is going to be released soon to address this.
#49
12/12/2006 (12:35 pm)
@Jerry: What means "soon"? Something by GG or by you?
Torque Owner Dasca
My email for Messenger is zoo_bkp@libero.it
thanks joseph