|
回复 54# mirale999 的帖子
或許是我搞錯了.......:-?
但是我看Jackson的原文,是有提到渲染前期材質處理過慢的問題.
但我查看過英文官網論壇的討論每一篇,這個插件好像是解決平滑沒錯吧.
點選plugins選Remove CG materials後再點選yes就會出現done! (數字) material components/groups deleted..我試過原本有貼材質而不平滑的組件就會變得平滑了....有錯再請您多多指正:Z
原文
Title: Ruby Script for ALL VfSU users- Reduces Render Time
Matthieu Noblet has very kindly spent many hours developing a free SU ruby script which will strip all materials assigned to groups and components and apply them instead directly to the geometry, which makes parsing SU files easier (and therefore much quicker) and more reliable for VfSU. After running this ruby script in SU some of my parse times dropped from as much as 20 minutes to less than 1 minute. The script will fix a smallish model (a villa, 100+ components, maybe 20 materials) in just a few seconds and a huge model (4sq kilometres of city, thousands of components, 50+ materials) in less than an hour (it's a one time fix for existing geometry and materials, so it's worth it for big models).
If any of you are not familiar with using SU ruby scripts, just download it and save it to the "Plugins" folder in your Google SketchUp program files. The next time you open SU it will be accessible under the "Plugins" menu under the name "Remove C-G Materials".
Four things to note:
Firstly, it DOES NOT DELETE any of your materials, it just reassigns them from the outside of groups and components to any geometry within that was assigned the default SU material. As such you won't actually see any difference in your model after running it, all UV mapping should be exactly as it was before.
Secondly, because of the very nature of the script you will no longer be able to apply materials to default elements of groups or multiple groups and components just by applying a material to them. It's a shame to lose this useful feature of SU modelling, but if you use VfSU often it's a very worthwhile sacrifice to make for a huge increase in speed and reliability.
Thirdly, it doesn't perform miracles- if your skp file is huge, with lots of materials and thousands of groups VfSU is still going to take quite a while to parse SU. What this ruby script really helps with is VfSU taking a long time just to parse even relatively small files.
Finally, as with all ruby scripts, this is not created, endorsed or tested by Google or ASGvis in any way and therefore you use at your own risk. Although many many users have been using it for months and have reported no problems or bugs, you run it at your own risk. If you're paranoid, "save as" your skp file before running it!The ruby script can be downloaded here (RapidShare: 1-CLICK Web hosting - Easy Filehosting).
If you'd like to say thanks to Matthieu for this very generous contribution to the VfSU community (he doesn't even use VfSU, which makes his generosity all the more remarkable) post here (SketchUcation Community Forums • View topic - [PLUGIN] Remove group materials, leave geometry materials?), he's a good guy and deserves some thanks!
Jackson |
|