intelligent camer
Posted: Sun Nov 16, 2008 1:38 pm
hi there,
fist of all you have done some awsome work! thank you for that cool peace of software! I'm happy I found it in the web.
Right now I am working on some kind of thirdperson-action-adventure-game (I will post some pics and other stuff here when we are done). And I think it comes along pretty good
.
But now I have some problems handling the camera. We need to have an "intelligent" camera that is kind of interactiv. So you can change the distance and hight and stuff like that. But the camera should never be able to break-through any walls or other objects in the scene so you can see it from the inside (I'm sure you know what I mean).
I'm quite sure this is usually handled by casting a ray from the back of the character in the reverse direction. My first guess was to use your methode called testRay. Perhaps I don't handle it right or miss understood it. But it seems to me that I have to check the ray with every object in the scene, but that would really kill our performance. So is there a more performant way to do this? We tried some for our own but they are not getting along to good.
the next question is, whether there is a possibility to check if the character is airborn?
ok that's it so far. thanky alot!
greetz leon
fist of all you have done some awsome work! thank you for that cool peace of software! I'm happy I found it in the web.
Right now I am working on some kind of thirdperson-action-adventure-game (I will post some pics and other stuff here when we are done). And I think it comes along pretty good

But now I have some problems handling the camera. We need to have an "intelligent" camera that is kind of interactiv. So you can change the distance and hight and stuff like that. But the camera should never be able to break-through any walls or other objects in the scene so you can see it from the inside (I'm sure you know what I mean).
I'm quite sure this is usually handled by casting a ray from the back of the character in the reverse direction. My first guess was to use your methode called testRay. Perhaps I don't handle it right or miss understood it. But it seems to me that I have to check the ray with every object in the scene, but that would really kill our performance. So is there a more performant way to do this? We tried some for our own but they are not getting along to good.
the next question is, whether there is a possibility to check if the character is airborn?
ok that's it so far. thanky alot!
greetz leon