简体   繁体   English

3DSMax 中的 GLSL 着色器

[英]GLSL Shaders in 3DSMax

So I've looked around, and since I have found no information on the subject, I assume 3DSMax does not support GLSL shaders?所以我环顾四周,因为我没有找到关于这个主题的信息,我认为 3DSMax 不支持 GLSL 着色器? Is this correct?这个对吗?

I am using 3DSMax 2010 and 2011, and am sick of writing two versions of the same sets of shaders - one for my application and one for 3DSMax.我正在使用 3DSMax 2010 和 2011,并且厌倦了编写同一组着色器的两个版本 - 一个用于我的应用程序,一个用于 3DSMax。 So much gets lost on the crappy workflow:(在糟糕的工作流程中丢失了很多东西:(

Does anyone have any information on how to render with GLSL shaders in 3DSMax 2010 or 2011?有人知道如何在 3DSMax 2010 或 2011 中使用 GLSL 着色器进行渲染吗?

Any help would be greatly appreciated.任何帮助将不胜感激。

Thanks in advance!提前致谢!

it supports DirectX shaders and metasl shaders.它支持 DirectX 着色器和 metasl 着色器。

You can code your own shaders (maxscript, c++ plugin, metasl) to fill the gap.您可以编写自己的着色器(maxscript、c++ 插件、metasl)来填补空白。 But you will not be able to see a unsupported material in the viewport.但是您将无法在视口中看到不受支持的材质。

For 2010 and higher the directX material also supports CGFX shaders as well as HLSL.对于 2010 及更高版本,directX 材质还支持 CGFX 着色器以及 HLSL。 Both formats might require slight tweaking to support 3ds max's parameter system as well as a game engine.两种格式都可能需要稍微调整以支持 3ds max 的参数系统以及游戏引擎。

In 2011 and 2012, Autodesk added support for metaSL , a format from NVIDIA (formerly mental images).在 2011 年和 2012 年,Autodesk 增加了对metaSL的支持,这是一种来自 NVIDIA(以前称为 mental images)的格式。 MetaSL shaders can export into CG, HLSL, GLSL, and also MentalRay Shaders. MetaSL 着色器可以导出为 CG、HLSL、GLSL 以及 MentalRay 着色器。

  • The metaSL export or compliation engine is available via the mental mill integrators edition (expensive). metaSL 导出或编译引擎可通过mental mill 集成器版本(昂贵)获得。 This is for game engine writers that want users to author additional shaders.这适用于希望用户编写其他着色器的游戏引擎编写者。 eg.例如。 UnReal, Unity3d etc.虚幻,Unity3d 等。
  • Content (ie. metasl, glsl,hlsl, etc,) can be created via mental mill standard edition which is free with a license of 3ds max 2011 and higher.可以通过mental mill 标准版创建内容(即metasl、gslsl、hlsl 等),该版本是免费的,具有3ds max 2011 及更高版本的许可证。 (500$ without 3ds max) (500 美元,不含 3ds max)
  • There is also a way to author metaSL shaders directly in the 3ds max 2012 schematic material editor removing the need for mental mill as a standalone product.还有一种方法可以直接在 3ds max 2012 原理图材质编辑器中创作 metaSL 着色器,无需将mental mill作为独立产品。

Vray 2.0 supports rendering of GLSL shaders on 3dsmax 2011 and above, though it is by no means a free rendering engine. Vray 2.0 支持在 3dsmax 2011 及更高版本上渲染 GLSL 着色器,尽管它绝不是免费的渲染引擎。

Vray: http://chaosgroup.com/en/2/vray.html Vray: http://chaosgroup.com/en/2/vray.html

GLSL Documentation: http://www.spot3d.com/vray/help/200R1/vrayglsltex.htm GLSL 文档: http://www.spot3d.com/vray/help/200R1/vrayglsltex.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM