OpenGL水折射(OpenGL water refraction)

编程入门 行业动态 更新时间:2024-10-14 06:23:52
OpenGL水折射(OpenGL water refraction)

我正在尝试用水波和折射创建一个OpenGL应用程序。 我需要从太阳投射光线然后照相机并弄清楚它们相交的位置,或者我需要从海底开始并找出我必须去哪个方向(s,如果有的话)才能击中太阳或相机。 我有点卡住了,任何人都可以给我一个OpenGL光线投射或高级几何的速成课程吗? 我不希望海底处于恒定的深度,我不希望水波是简单的正弦波。

I'm trying to create an OpenGL application with water waves and refraction. I need to either cast rays from the sun and then the camera and figure out where they intersect, or I need to start from the ocean floor and figure out in which direction(s, if any) I have to go in order to hit the sun or the camera. I'm kind of stuck, can any one give me an inpoint into either OpenGL ray casting or a crash course in advanced geometry? I don't want the ocean floor to be at a constant depth and I don't want the water waves to be simple sinusoidal waves.

更多推荐

本文发布于:2023-08-01 21:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1365855.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:OpenGL   water   refraction

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!