Issue with “blocky” model in x3dom

梦想的初衷 提交于 2021-01-29 02:01:59

问题


I am trying to use a 3d Studio Max model with x3dom. I did not create the model nor do I know much about 3d rendering/animation. The image on the left shows the rending of the model from 3d Studio Max. The image on the right shows the same model inside of x3dom.

link to image

I started off with a .3ds, a .max, and a .wrl file. I converted all three of these to .x3d. Each one gave the same results.

I am new to x3dom, but it seems pretty straightforward as far as displaying pre-made models. Is there some settings that I need to implement to get the x3dom to look as smooth as the original model? I have looked at other samples on the x3dom web site and they seem to all render properly/smoothly.

Any advice is greatly appreciated!


回答1:


Problem is that mesh does not contain normal vectors and you have to say x3dom to calculate them. Check Online normal creation, that might help..




回答2:


You should also check the creaseAngle of the geometries: something like 3.14 would be good whereas the default 0 would render blocky like on your screenshot.



来源:https://stackoverflow.com/questions/15046187/issue-with-blocky-model-in-x3dom

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!