2014-03-02 25 views
-1

我目前正在尋找一種方法來創建一個類似於http://digitaldraping.com/configurator/furniture-sofa/?Cushions_Plain-Cream.png,Sofa_Stripe-Orange.png的裝潢工具的「配置器」,您可以選擇您的織物並自動在沙發上「繪製」 。任何CLI工具都可以在飛行中執行3D紋理貼圖

不幸的是,我所看過的所有網站似乎都使用了預先渲染的透明PNG,這些透明PNG彼此重疊以構建完整圖片。這裏的問題是,我們發現我們需要超過120,000張不同的圖像來覆蓋所有模型,面料等!

我已經看過幾個3d紋理工具,例如http://www.arahne.si/products/arah-drape.html,希望其中的一個將有一個CLI選項,您可以在其中爲其提供預先創建的線框以及要覆蓋的結構,並生成所需的圖像在飛行中,但到目前爲止,一切似乎都需要實時使用GUI來使用它。

那麼,是否有一個CLI工具可以完成我之後的工作,或者任何人都可以提出一種自動操作GUI的方法? (從技術角度來看,我很喜歡C,Bash,Python或PHP作爲解決方案!)

謝謝!

回答

0

ArahDrape 2.2現在可以從沒有任何GUI界面的命令行工作。您也可以將ArahDrape作爲C庫調用。通過這種方式,它可以在Web服務器中用於即時創建紋理映射圖像。命令行選項在下面解釋。

ArahDrape 2.2j command line version, ©2015 Arahne 
usage: 
adCommand -o /tmp/outputImage.png -tN /home/user/texture.png [-hidemodel] [-divide 2] [-filterPNG] [-compressPNG 2] [-m /home/user/model.png] -owner name -activation 174b3cfb49e9 /home/user/project.drape 
Input and output images can have png, .tif or .jpg extensions 
-o output_image_file 
-tN texture_image_file [N goes from 0 to 199] 
-hidemodel will render all areas not in region as white 
-divide N [N goes from 2 to 5] divide resulting image pixel size 
-filterPNG if you do not filter it, rendering is faster 
-compressPNG N [N goes from 0 to 9] lower number saves faster, but bigger files 
-m model_image_file use this if you want to replace model image from the project; must have same pixel size 
-owner owner_name pass the given owner name 
-activation activation_code pass the given activation code 
last parameter should be ArahDrape project file 
All files should be entered with full path. 
If you need spaces in filenames, use quotes "" around the filename. 
If you provide only Owner name, without activation code, program returns registration code. 
0

ArahDrape支持批量導出。 打開ArahDrape項目,點擊你想要替換的紋理,把你的所有紋理放在一個目錄中,從菜單中選擇 紋理>瀏覽紋理,並且當你點擊紋理加載它時,程序將保存被疊加的圖片。如果您有成千上萬的圖像,請使用鍵盤快捷鍵=,程序會自動完成這些操作。 只要您使用PNG或TIFF,在加載模型圖像或紋理以及保存疊加圖像時都支持Alpha通道透明度。

請檢查該視頻,看看如何 ArahDrape works in batch mode

0

我們(http://digitaldraping.com/)可以做你剛纔的問題。我們有兩個選項可以創建圖像並即時渲染網格圖像。如果您仍需要此解決方案,請與我們聯繫。

相關問題