gpt4 book ai didi

c++ - 从移动的相机看到固定点 opengl

转载 作者:行者123 更新时间:2023-11-30 04:30:23 26 4
gpt4 key购买 nike

我的相机放在一个移动的物体上,但它总是指向场景中的一个点。我怎样才能做到这一点?如何计算垂线?如果观察者的位置一直在移动,如何使方向始终聚焦在那个点上?

最佳答案

My camera is place on a moving object, but it always be pointed to a point in scene. How can I do that? How, if the position of the observator [sic] always moves, the direction stay focused on that point?

gluLookAt() .

How can I calculate the perpendiculars?

Cross-product .

关于c++ - 从移动的相机看到固定点 opengl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8719576/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com