3D 照明 (OpenGl)
你好 我想创建一个漂亮的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我做这种事情是为了好玩,所以我可以说一下不同类型的照明技术:
定向光就像太阳一样;它们的光线是平行的,因此在错误的环境中它们可能看起来很奇怪。
点光源(显然)是点。它们没有形状,只是从空间中的一个点发射光线。它们是不可见的,但不会给出真实的结果(因为自然界中不存在点光源)。
区域灯是发出光的平面物体,就像摄影工作室中使用的伞一样。如果它们在相机的视野中,它们就是可见的,并且它们会产生非常逼真的结果。通常它们是正方形或长方形,但圆形也可以。
网格灯是用作灯光的实际 3D 对象。这些是最真实的,但最难计算和渲染。它们看起来与区域光没有太大区别,但在某些情况下很有用(例如制作发光的灯泡)。
我做这类事情(正如我的用户名建议的那样),所以这里有一些关于如何以工作室方式进行照明的教程:
工作室照明教程:http://www.yafaray.org/documentation/tutorials/studiolighting
不同类型灯光的示例:http:// www.yafaray.org/documentation/userguide/objects#Lights
如果您想要最好结果,放弃 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:
Directional lights act like the sun; their rays are parallel, so they might look strange when in the wrong context.
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).
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.
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:
Studio Lighting Tutorial: http://www.yafaray.org/documentation/tutorials/studiolighting
Examples of Different Types of Lights: http://www.yafaray.org/documentation/userguide/objects#Lights
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 ;)