在3ds格式中,如何确定texutre的寻址模式?
我对 3ds 文件中纹理的寻址模式有疑问。 (不是3ds max)
我成功加载了3ds文件的所有材质信息,如材质颜色、纹理文件名等。但我无法确定纹理的寻址模式。例如,砖块的纹理将被重复,但门的纹理不会重复。当然,我认为3ds文件有关于它们的寻址模式的信息,但我找不到它。 (也许是0xa351?)
在哪里可以找到有关3ds文件中纹理寻址模式的信息?
I have a trouble about texture's addressing mode in 3ds file. (not 3ds max)
I succeeded in loading all material information of 3ds file like material color, texture file name and so on. But I couldn't determine texture's addressing mode. For example, a texture of bricks will be repeated, but a texture of doors will not. Of course, I think 3ds file has a information about their addressing mode but I could not find it. (maybe 0xa351?)
Where do I find the information about texture's addressing mode in 3ds file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你的猜测是正确的,正如这里他们所说的A351:
我认为
tile
选项(位 0 和 4)可能就是您正在寻找的。我猜当tile
打开时,texCoords 会重复,否则它们会被夹紧。I think you're right with your guess, as here they say about A351:
I think the
tile
option (bits 0 and 4) could be what you're looking for. I guess whentile
is on, the texCoords are repeated and otherwise they're clamped.