3D 照明 (OpenGl)

发布于 2024-11-03 01:31:10 字数 108 浏览 1 评论 0原文

你好 我想创建一个漂亮的 3D 场景来展示一些 3D 模型。 我应该如何管理光照才能使模型看起来非常 3D! 像Solidworks之类的东西! 我需要多少个光源?方向还是位置?在哪里?车身用什么材料?

Hello
I want to create a nice 3D scene to show some 3D models.
How I should manage the lighting to made models appear quite 3D!
Some thing like Solidworks!
How many light source I need? Directional or position? Where? What kind of material for bodies?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

念﹏祤嫣 2024-11-10 01:31:10

我做这种事情是为了好玩,所以我可以说一下不同类型的照明技术:

  1. 定向光就像太阳一样;它们的光线是平行的,因此在错误的环境中它们可能看起来很奇怪。

  2. 点光源(显然)是点。它们没有形状,只是从空间中的一个点发射光线。它们是不可见的,但不会给出真实的结果(因为自然界中不存在点光源)。

  3. 区域灯是发出光的平面物体,就像摄影工作室中使用的伞一样。如果它们在相机的视野中,它们就是可见的,并且它们会产生非常逼真的结果。通常它们是正方形或长方形,但圆形也可以。

  4. 网格灯是用作灯光的实际 3D 对象。这些是最真实的,但最难计算和渲染。它们看起来与区域光没有太大区别,但在某些情况下很有用(例如制作发光的灯泡)。

我做这类事情(正如我的用户名建议的那样),所以这里有一些关于如何以工作室方式进行照明的教程:

如果您想要最好结果,放弃 OpenGL 并获得公正的渲染引擎,例如免费的 LuxRender

对于一个好的 3D 建模程序(导入 3D 场景进行渲染),请尝试免费程序 Blender。这是我最喜欢的;)

I do this kind of stuff for fun, so here's what I can say about the different types of lighting techniques:

  1. Directional lights act like the sun; their rays are parallel, so they might look strange when in the wrong context.

  2. Point lights are (obviously) points. They have no shape, and just emit rays out of a single point in space. They are invisible, but don't give realistic results (as point lights don't exist in nature).

  3. Area lights are flat objects which emit light, like those umbrella things they use in photography studios. They are visible if they are in the camera's view, and they create quite realistic results. Usually they're squares or rectangles, but circles work too.

  4. Mesh lights are actual 3D objects which are used as lights. These are the most realistic, but the hardest to compute and render. They look not too much different from area lights, but are useful in some situations (like making a glowing lightbulb).

I do this sort of stuff (as my username suggests), so here are a few tutorials on how to do lighting in a studio fashion:

If you want the best results, ditch OpenGL and get an unbiased rendering engine, like the free LuxRender.

And for a good 3D modelling program (to import your 3D scene to render), try the free program Blender. It's my favorite ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文