Concerning BoundingBox, getSceneNodeFromRayBB and Lights
Posted: Thu May 01, 2008 5:14 pm
Hey there fellas!
I have three problems for first. More to come yet, I bet.
Though, I didn't scrape the whole forum yet, I still don't get the function recalculateBoundingBox() if it isn't able to fetch a Mesh's bounding vertexes and calculating it by itself. So how could it even recalculate a changed mesh buffer?
Then concerning getSceneNodeFromRayBB; I read that darn good explanation from rogerborg with that bit masking, but what if the enemies should be able to shoot themselves.
I got a solution in mind to place the line perpendicular to the bounding box, but I thought I might ask if there is a better solution.
Finally the most important: I got three or more light scene nodes and one attached right on the camera. Two are displaying correctly and one is just shown if I get right near the creation position. The one attached to the cam cast's no light, no matter what I do. (expect I disable all the other lights). So is there any good reason for this or has someone written a basic tutorial about lighting?
Best thanks in advance!
I have three problems for first. More to come yet, I bet.
Though, I didn't scrape the whole forum yet, I still don't get the function recalculateBoundingBox() if it isn't able to fetch a Mesh's bounding vertexes and calculating it by itself. So how could it even recalculate a changed mesh buffer?
Then concerning getSceneNodeFromRayBB; I read that darn good explanation from rogerborg with that bit masking, but what if the enemies should be able to shoot themselves.
I got a solution in mind to place the line perpendicular to the bounding box, but I thought I might ask if there is a better solution.
Finally the most important: I got three or more light scene nodes and one attached right on the camera. Two are displaying correctly and one is just shown if I get right near the creation position. The one attached to the cam cast's no light, no matter what I do. (expect I disable all the other lights). So is there any good reason for this or has someone written a basic tutorial about lighting?
Best thanks in advance!