projection - opengl: avoid clipping in perspective mode? -
Sorry I did not explicitly explain the question before, I changed the way down and it seems that Replace the solution-on-projection matrix? Please do me some research to see how to do it correctly.
My scenario is: ===> Say, now, I have created a 3D box in the window under Windows 7 that perspective mode is enabled. With the view to see users, when users come out of the window, this box should be (/ partly hidden) when it is correct but when the box is taken inside the window, then the box is completely Should be shown (not bitten!), Is not it? But my problem is, some time when users move the box inside the window, they will see that parts of this box are cut (for example, a top of this box is cut). There is no limit on how many users can transfer this box.
I understand: ===> When users move the box, this box is out of frustration, which is why it has been cut. In this case, the frustration should be adjusted when flying in my code (then, the launch matrix has been changed) or the camera should adjust on flying (maybe even adjust the near-distant plane) or do something else ?
My question is: ===> What is the popular technique to avoid this type of clipping? And make sure that the users think that those boxes are easily running, no "shock" (i.e., suddenly, the location of the box does not reach any other place (because our frustration suddenly changes) when users Boxes are running). I think this is a very classic problem, a correct solution should be any code / reference is appreciated!
I've attached a picture to show the problem.
I suspect that your frustration is very narrow, so when you rotate your object, it is moving beyond the visible area. As an experiment, increase the angle of your frustration Try, increase your remote value like 1000 or 10000 and move your camera forward from the center (a more negative value on z-plane). You should have a lot of frustration, which should fit within your object. To run and rotate your project - If the clipping effect is over, then you know that your problem is frustrating or the model scale (or both)
Comments
Post a Comment