3ds Max贴图/自定义材质 [英] 3ds Max textures/custom materials

查看:58
本文介绍了3ds Max贴图/自定义材质的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Viewer Release Notes: v4.0.1中读到,现在支持Protein Materials tiling patterns(Revit 2019).这很棒!但是,作为3ds Max用户,我很好奇是否有计划支持3ds Max提供的bitmap-texturescustom materials吗?这确实会带来新的可能性.

I read in the Viewer Release Notes: v4.0.1 that Protein Materials tiling patterns (Revit 2019) are now supported. This is great! However, as a 3ds Max user I am curious whether there's any plans to support bitmap-textures or custom materials coming from 3ds Max? That would really generate new possibilities.

推荐答案

我不确定较旧的版本,但是正如您从同事之一创建的场景的以下屏幕截图中可以看到的那样:

I am not sure about the older version, but as you can see from the following screenshot on a scene created by one of colleagues:

只要遵循以下步骤,使用纹理转换最大文件应该没有问题:

There should not be problems on converting the max file with textures, as long as you follow the following steps:

  1. 将max文件及其纹理存档,并将其上传到存储桶. 例如(使用Python):
  1. Archive the max file along with its textures and upload it to a bucket. For example (with Python):

filename = 'max_archive.zip'
bucket_name = bucketKey

url = "https://developer.api.autodesk.com"
my_object_endpoint = "/oss/v2/buckets/" + bucket_name + "/objects/" + filename
header = {
           "Authorization": "Bearer " + token,
           "Content-Type": "application/octet-stream",
           "Content-Length": str(os.path.getsize(filename)),
         }    
with open(filename, 'rb') as object_to_upload:
        response_upload = requests.put(url + my_object_endpoint, headers=header, data=object_to_upload)

  1. 发送翻译作业,指定它是一个存档,并且该存档的根是您的最大文件. 例如(使用Python):
  1. Send a translation job specifying that it is an archive and the root of this archive is your max file. For example (with Python):

job_endpoint = '/modelderivative/v2/designdata/job'
header = {
    "Authorization": "Bearer " + token,
    "Content-Type": "application/json",
}

payload = json.dumps({
    "input" : {
        "urn": '"' + encoded_urn + '"',
        "rootFilename": "physical_material.max",
        "compressedUrn": True
    },
    "output": {
        "formats": [
            {
                "type": "svf",
                "views": [
                    "2d",
                    "3d"
                ]
            }
        ]
    }
})

response = requests.post(url+job_endpoint, headers=header, data=payload)

关键点是有效负载的 input 部分,您必须在其中指定 rootFilename 并设置压缩 true .

The key point here is the input part of the payload, where you have to specify the rootFilename and set the compression as true.

就我而言,我得到的结果如上图所示.

In my case I got the result as in the above presented screenshot.

这篇关于3ds Max贴图/自定义材质的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆