试试看是什么东东。。上图更有说服力哦..浪费我金币。。
My[L3KTTp 62zlO{ >rJ 只是一个普通的脚本。。。没什么意义。。运行后只是创建一个普通的平面,只是贴了VR材质而已。。没价值的脚本。。如下图
)V>FU= HKh)T$IZM *;}! WDr 下面就是脚本的代码
T0SD|' -
- rollout VGCreatePlane "Create Plane" (
- spinner pix_sp "pixels: " align:#left fieldwidth:50 height:16 type:#integer range:[-1e7,1e7,1]
- spinner sys_sp "= sys unit: " offset:[0,-20] fieldwidth:50 height:16 type:#worldunits range:[-1e7,1e7,1]
- button Create "Create" width:100 height:23
- on Create pressed do (
- local sc=sys_sp.value/(pix_sp.value as float)
- local obj=Plane name:(getFilenameFile bm.filename) width:(bm.width*sc) length:(bm.height*sc) lengthsegs:1 widthsegs:1
- local dmat = VRayMtl()
- local b=bitmaptexture()
- b.bitmap = bm
- dmat.texmap_diffuse = b
- showTextureMap dmat dmat.texmap_diffuse true
- obj.material=dmat
- select obj
- DestroyDialog VGCreatePlane
- )
- )
-
- bm = selectBitMap caption:"Select bitmap file"
- if bm!=undefined do (
- createDialog VGCreatePlane width:235 height:60
- )
ce;9UBkOg2 `Yut1N