模拟城市中文网

 找回密码
 入住
搜索
查看: 20854|回复: 8

【下载】BAT4max

 关闭 [复制链接]
发表于 2007-1-26 23:00 | 显示全部楼层 |阅读模式
BAT4MaxV2是用3DSMax建模与渲染BAT必要工具。
后面附使用说明及一些使用时注意的地方。如在3DSMAX制作BAT时有任何问题,请到MOD制作交流专区开贴提问





--
如果還不會處理Camlightrig的設置,建議V2即可,不要更新到V2.5,2.6及V4.5。
如果還不會處理Camlightrig的設置,建議V2即可,不要更新到V2.5,2.6及V4.5。
如果還不會處理Camlightrig的設置,建議V2即可,不要更新到V2.5,2.6及V4.5。

更新
bat4max v2.5 r2
bat4max v2.6 HD
by rszxh
更新
bat4max v4.5_2k1
by 天唐永thianz

[ 本帖最后由 rszxh 于 2010-4-8 05:58 编辑 ]

[ 本帖最后由 天唐永thianz 于 2010-9-2 23:22 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?入住

x
 楼主| 发表于 2007-1-26 23:00 | 显示全部楼层

【下载】BAT4maxV2

以下说明是本人根据BATforMAXv2压缩包中的Instruction一文翻译过来,E文好的最好以原版的文字为主,本人的翻译仅供参照。 <br /><br /><strong>1、简介 <br /></strong><br />本插件应用于3DSMAX,用以从3DSMAX生成sc4model文件,具体过程后面有介绍。 <br /><br />本插件经测试在3DSMAX的4.2/5版本下均能正常运行,3DSMAX 6 也应该没什么问题。 <br /><br />关于本插件的讨论请前往Simtropolis论坛&quot;3D Studio Max BAT Release !!&quot; 一贴 <br /><a href="http://www.simtropolis.com/idealbb/view.asp?topicID=52137" target="_blank">http://www.simtropolis.com/idealbb/view.asp?topicID=52137</a> <br /><br /><strong>2、必要的工具与程序 <br /></strong><br /><font color="#0000cd">- 3dsmax version 4.2/5.1/6 (perhaps, with luck, later versions of 3dsmax as well) <br />- (optional) the ilive reader or Datgen (available at Simtropolis) <br />- fishTool (copyright © Denis Auroux 1998-2002) (已包含在压缩包内) <br />- ilive DatCmd 0.1 (已包含在压缩包内, auto deletes and inserts fsh files through the command line) <br />- Dos deltree.exe (you should find it under \Windows\command) <br />- gmax/BAT <br />- Plugin Manager <br />- Lot Editor <br />- SimCity 4/Rush Hour </font><br /><br /><strong>3、功能介绍</strong> <br /><br />本插件的目的在于使玩家能够采用3DSMAX下对你的BAT建筑进行渲染,并以3DSMAX的渲染效果取代由GMAX+BAT生成的sc4model中的贴图效果。 <br /><br />所以说,这一插件并非能够取代GMAX+BAT,而仅仅是用3DSMAX的渲染取代了GMAX的渲染。 <br /><br /><strong>4、安装</strong> <br /><br />安装步骤: <br /><br />1、直接将解压后的gamepack目录移动到你的3dsmax根目录下 <br /><br />2、进3dsmax的目录确认下在你3dsmax根目录下的是\gamepacks\BAT,而不是\gamepacks\gamepacks\BAT。:) <br /><br />以下是gamepacks目录树结构—— <br />\gamepacks <br />\BAT <br />System.bmp (如果此文件缺失,则无法进行渲染) <br />Batformax.ini (<font color="#ff0000">请按后面的提示修改此文件</font>) <br />fshtool.exe <br />fshtool.c <br />fshtoolreadme.txt <br />DatCmd.exe <br />OR_DAT.dll <br />cr.txt (该文件包括了auto prompting in batch过程中返回的文件列表) <br /><font color="#ff0000">DELTREE.EXE (可以从Windows\Command目录下找到该文件复制至此处) </font><br />\Maps <br />\NightWindows <br />\Beige <br />BeigeWindowTexture-z5.jpg (etc. copy the five .jpg files from gmax/BAT if they are missing) <br />\Blue <br />BlueWindowTexture-z5.jpg (etc. copy the five .jpg files from gmax/BAT if they are missing) <br />\Green <br />GreenWindowTexture-z5.jpg (etc. copy the five .jpg files from gmax/BAT if they are missing) <br />\NeonRed <br />NeonRedWindowTexture-z5.jpb (etc.) <br />\OutputFiles <br />(empty) 你需要在每次完成建筑生成后清空此目录 <br />\plugins <br />\scenes <br />\CamLightRigs <br />TB2_CameraLightRig.max <br />TB2_CameraLightRigBig.max <br />TB2_CameraLightRigHuge.max <br />TB2_CameraLightRigMedium.max <br />\startup <br />TB2_CameraLightRig.max <br />\&#115;cripts <br />CPBuildingMill.ms <br />CPCameraRig.ms <br />CPFileUtils.ms <br />CPModelNames.ms <br />CP&#115;criptUtil.ms <br />CPStringUtil.ms <br />CPTB2Main.ms <br />CPTB2MainUI.ms <br />CPTextureUtils.ms <br />\startup <br />(CPTB2Startup.ms 和 SimTropolis_Tools_V104.ms 这两个文件需要被移动到3dsmax\&#115;cripts\startup 目录下) <br />\temp <br /><br />3、将CPTB2Startup.ms 和 SimTropolis_Tools_V104.ms 这两个文件移动到3dsmax\&#115;cripts\startup 目录下 <br /><br />4、重要!! <br />找到BATFORMAX.INI这一文件,用NOTEPAD打开该文件 <br />在以下两行 <br />TempPath= <br />DestPath= <br />填写你的\gamepacks\BAT\temp 和 \gamepack\BAT\OutputFiles 目录的确切位置 <br /><br />同样在以下一行 <br />SC4PluginPath= <br />填写你的SC4 My documents\Simcity 4\plugin 目录的确切位置 <br /><br />5、 在你3dsmax的根目录下找到3dsmax.ini文件,将其在某处备份,这样当下面步骤出现错误时能够恢复你原先的3dsmax的配置。 <br /><br />6、 在notepad打开3dsmax.ini. 在Directories section, 编辑PlugCFG一行,填写\gamepacks\BAT目录的确切位置。例如:PlugCFG=C:\Program Files\3dsmax42\gamepacks\BAT <br /><br />7. 你可以在你的\Windows\Command 目录下找到deltree.exe文件复制到\gamepacks\BAT下。如果你用的是XP系统, 这一文件可能在你CD安装盘上。如果实在找不到这个deltree.exe文件,你可以使用压缩包中自带的文件,但本人不对由此造成的任何损失负责任。:) <br />
 楼主| 发表于 2007-1-26 23:01 | 显示全部楼层

【下载】BAT4maxV2

5、使用 <br /><br />1. 启动3dsmax,制作你的建筑模型。 <br /><br />2. 在右边的滚动面板中,点击最后那个有个榔头图标的一栏,如果你的插件安装正确的话,下方应该出现BATforMAX的面板 <br /><br />3. 在这里,你可以在&quot;Parameters&quot;一栏中创建LOD shell,你也可以自己制作LOD shell。无论采用哪种方法,这一过程的同采用GMAX+BAT效果相同。 <br /><br />4. 一旦你的LOD创建好,选中它们(可以用H键,在列表中选中LOD3, LOD4, LOD5)。在&quot;File&quot;菜单中, 选择&quot;Export Selected&quot;,将其保存为一个 .3ds 文件。 <br /><br />5. 退出 3dsmax,进入 gmax/BAT. <br /><br />6. 通过&quot;File&quot;-&gt;&quot;Import&quot; ,导入你在步骤4中由LOD生成的3ds文件。 在接下来的对话窗口中,选择 &quot;Merge objects with current scene&quot; ,<font color="#ff0000">必须去掉&quot;Convert Units&quot;项前面的叉(否则导出的LOD尺寸会不对!!)</font>. 当你在GMAX+BAT的任何时候,不要点击&quot;refit LODS&quot;以及任何LOD的按钮!! <br /><br />7. 这个时候你不需添加任何灯光或贴图。 The LODS are simply a poly area for projecting your final Model Fsh files. <br /><br />8. 点击&quot;Export&quot;按钮,等待…… <br /><br />9. 当导出过程完成后(一般不会花很长时间) 退出GMAX+BAT。 <br /><br />10. 找到导出的.SC4Model文件,复制下其文件名,我们需要将其文件名粘贴到3dsMAX的&quot;Export&quot;一栏中 <br /><br />11. Restart 3dsmax. Open your model. Open the &quot;Export&quot; rollout (see steps 2 and 3). If you are using the night material library nightlighting option (see below), open your &quot;-night&quot; material library. The rollout will tell you whether or not it will use your -night material library to perform night renderings. If you want to assign maxis-style &quot;night windows&quot; or to add nitelites, you can do that now as well. The process is the same as in gmax/BAT. <br /><br />12. 粘贴你的sc4model的文件名到3dsMAX的&quot;Export&quot;一栏中。 <br /><br />13. 点击 &quot;Render BAT&quot;.(以下内容不是很重要,就不翻译了~~) <br />If it asks if you want to save the model, hit &quot;Yes&quot; if you haven't already saved it, as this may be your last chance. (At various times during the rendering process all materials in the scene are removed and replaced.) &quot;Render BAT&quot; will cause either one or three renderings for each zoom and rotation, depending on which nightlighting options are in effect. These renders do not necessarily correspond to what eventually ends up in the game. (Don't be alarmed if they look weird). In addition, larger renders will trigger a fourth, seemingly random 256x256 render of one of the viewports. It will look like it is malfunctioning, but it is supposed to do this, (for reasons I won't go into here.) In addition there may be a lag between renders, where it appears to be doing nothing. This is normal. (It is doing a bunch of calculating, compositing, applying night windows, generating alpha maps, slicing, swapping materials, etc.) This lag between renders can last for a few minutes on very large buildings (or very slow computers). Eventually, a messagebox will pop up telling you the export was successful. Note that you can cancel the rendering process by hitting &quot;escape&quot; but if you do, shut down 3dsmax immediately, and DO NOT SAVE YOUR MODEL. <br /><br />14. 当渲染完成后,接下来就该轮到Batch CMD 面板了。默认情况下,面板中的 auto execute选项是非选中的。 <br /><br />15. 如果你刚完成渲染,不要点击Clear Outputfiles ,否则会删除所有你刚刚辛辛苦苦生成的FSH文件:( <br /><br />16. 测试下FSH Batch Build(this runs the batch file created by the rendering) <br /><br />17. 如果你先前在步骤12中输入的文件名是有效的, 点击 &quot;DAT FSH insert&quot; 按钮,DATCmd 会被以何时的参数自动调用,用以自动生成你的sc4model文件。 <br /><br />18. 如果你上述三个batch CMD按钮都工作正常的话,那么你可以在&quot;AutoExecute&quot;前打勾,下次你进行渲染,整个过程会自动执行知道生成最后的sc4model文件。 <br />
 楼主| 发表于 2007-1-26 23:07 | 显示全部楼层

【下载】BAT4maxV2

作者: 天唐永thianz <br /><br />經過幾天的煎熬,雖然還有一點點bug,燈光終於弄出來了。回報如下: <br /><br />版本:3dsMax8.0 <br /><br />1.燈光效果。<font color="#ff0000">加前綴nitelite- </font>有效。 <br /><br />2.夜窗效果。方式一:<font color="#ff0000">加前綴nite- </font>無效。 (我真的試太多太多太多次了,不論用什麼方法,加nite,night,-_互換、前後綴、其他字如win,gar,doo,neo…等等,我不知道為什麼一直不成功,而我之前主要就是要對我的模型使用夜窗效果而不是燈光效果,結果這方式的無效導致我誤以為整個夜晚亮燈效果是不成的,事實其實只是其中的夜窗效果有問題。討論串大多總是回報成功,但我看到simtropolis原討論串有許多人回報3dsMAx8在batforMax的使用上有問題。於是我只好暫且歸咎於3dsMAX8。雖然直接加前綴nite無效,但可以用以下的方法解決夜窗效果) <br /><br />3.夜窗效果。方式二:加Night Material Library。有效。(這方法是對材質(Material)下手而不是對物體的名稱(Object)下手) <br /><br />也就是BatforMaxInstructions.txt說明中,&quot;ABOUT MATERIAL LIBRARY NIGHTLIGHTING&quot;這一段的做法。 <br /><br />(其更詳細做法,摘自simtropolis的batformax討論串,像我這種自己摸索3dsMax的人如果沒有像他這樣教,自己摸也永遠摸不出來。夜窗效果方式二之所以弄得出來就是因為這一段話you must first create and save a material library, with a name ending in either -night or _night (all lowercase). Then, before you render, you must load this material library. (Type M to get to the material editor, then Material-&gt;Get Material then, in the Material/Map Browser highlight the Browse from: Mtl Library radio button, then, below that, hit the File: Open button, then choose the material library (with a name ending in _night or -night) that you previously saved. The message on the rollout should immediately change to Night library will be used.) <br />The actual materials in the material library can be any name, but materials whose names begin with win doo gar or neo will be self-illuminated at night in the game (more or less), if the material has either a self-illumination map, or has a high self-illumination setting (100 for example, or 80 or 60). (White areas of the self-illumination map are the areas that will be lit) <br /><br />這個方法有個不錯的地方,就是可以依自己喜好調窗光的顏色,不論是偏黃色紅色藍色,任何顏色都可以自己調…不像第2點的BAT原方式可能只有兩三種窗光顏色。 <br /><br />如果有人弄3dsMAx8也遇到同樣問題,夜窗效果也弄不出來,歡迎問我,我很樂意教第3點這個方法。 <br /><br />(最後,我還在觀察我試驗的大模型,夜晚效果圖有個小bug,不能確定原因,暫且不歸咎於此,也許是別的原因不小心動到什麼。先紀錄一下,有確定原因再來回報;最後的最後,希望早已熟悉此道的高手不要怪我大驚小怪,我很高興過了這麼久終於解決了這個問題的大部分) <br /><br />
 楼主| 发表于 2007-1-26 23:08 | 显示全部楼层

【下载】BAT4maxV2

~~~後來發現,此選項的設置要看每件模型情況而定,本樓層已廢,僅供參考   by天唐永thianz~~

作者:天唐永thianz

simtropolisbat4max討論串看到的CycleDogg06/20/2004 04:01 AM提到的如下:
One thing Iforgot to mention in the instructions is that you need the following setting tobe as follows (if it isn't already):

Customize->Preferences-> Don't anitalias againstbackground  (it needs to be checked).   Otherwise, in thegame you will get a black ring around the building.





rendering選單裏頭,圈起來的那個要打勾。

====================================================

之前以為這個有預設是沒問題的,結果render出來的有黑環,如今要補設這個設定。


此帖由 yogafish 2007-01-26 23:09 进行编辑...

[ 本帖最后由 天唐永thianz 于 2010-8-29 11:58 编辑 ]
发表于 2008-3-19 23:05 | 显示全部楼层
幾個常見的error問題
--

目前已知不外乎就那幾個錯誤:內存不夠;max中文版;max安裝到了program file底下了;燈光用了gmax不能接受的複雜燈光……
以上這幾項全都是必定出問題,凡是想再試驗以上"是否"只是某些個人的人品問題的,不必了,因為必定出問題,謝謝。  

有種個案方式我自己稱為merge法:開新檔把已經error過的模型檔案merge進去(重點是TBL燈光不要merge進去), 不過這只是解決已經error的個別檔案問題,不能解決第一段所言的問題。

----------------------
除了以上,各位制模者,是否SC4渲染過程有整個成功過一次?先用最簡單的模型試驗整個過程能否成功那麼一次最好:)

[ 本帖最后由 天唐永thianz 于 2008-3-19 23:08 编辑 ]
发表于 2010-6-19 00:15 | 显示全部楼层

Bat4max v4.5_2k1版

bat4max v4.5_2k1
今日更新
注意,開啟bat4max.ini這個文件,調整其路徑。
其餘檔案,很簡單,分別覆蓋到3dsMAX和Gmax即可。
可能需要Lettherebelight或自製的Cameralightrig,安裝前應先閱讀使用說明。
http://www.simtropolis.com/forum/messageview.cfm?catid=37&threadid=112233


●安裝過程
●一:3dsMAX部分,其中第2小點比較需要注意,安裝檔內有個max內的startup資料夾是安裝到"scripts"之內的startup,別搞錯了。
Fresh Install
  • Move gamepacks subfolder from 3dsMax folder to your Max root installation folder. This is a place where you have your 3dsmax.exe
  • Move content of startup subfolder from 3dsMax folder to the same named (startup) subfolder in Scripts folder found located in your 3ds Max root folder, eg if you have installed your Max into
    C:\Max
    then you should move these to
    C:\Max\Scripts\Startup\
●二:GMAX部分
GMAXFull feature operability, primarily HD export capability requires updating your GMAX BAT as well, however, even if you have no need for HD it is strongly recommended. Doing so may prevent some of the errors that have been popping now and then during Bat4Max exports.
  • Backup you entire GMAX BAT installation.
  • Copy content from the scenes and scripts subfolders in GMAX folder into respective subfolders in your GMAX BAT installation overwriting existing files and folders. e.g. files from Scripts should go into:                C:\gmax\gamepacks\BAT\scripts
    and files and folders from scenes into:
    C:\gmax\gamepacks\BAT\scenes


[ 本帖最后由 天唐永thianz 于 2010-7-3 14:48 编辑 ]
回复 支持 反对

使用道具 举报

发表于 2010-6-28 23:13 | 显示全部楼层

Bat4maxv4.5有更新

據原作SimFox說這兩個更新不大(我還沒仔細看懂),並不包含在v4.5檔案裏。
我是在v4.5的長貼子裏看到的,
有個檔名倒是名為v4.6了。
有兩個檔。檔案請到頂樓下載
●Bat4Max_Update_4_6.zip  (25.79 KB)
解壓安裝到3dsmax裏的To install just copy over files in your gamepacks\bat\scripts folder with ones included in this download.
●z_SF_LtbL-CC_warmer.zip (2.87 KB)
解壓安裝到To install this update just copy over files in your max\scripts\startup folder with one included in this download.


原文在這
http://www.simtropolis.com/forum/messageview.cfm?catid=37&threadid=112233&STARTPAGE=6&FTVAR_FORUMVIEWTMP=Linear#1718443

[ 本帖最后由 天唐永thianz 于 2010-7-3 14:49 编辑 ]
回复 支持 反对

使用道具 举报

发表于 2011-11-9 10:21 | 显示全部楼层
修改bat4max.ini一行使產生你的專用號碼:
如何使sc4model模型ID與別人絕不相同[只需修改bat4max.ini一行]
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 入住

本版积分规则

小黑屋|手机版|模拟城市中文网

GMT+8, 2024-4-20 17:31 , Processed in 0.029300 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表