Jump to content
Sign In to follow this  
GouRou

3D Studio Max BAT Version 2 Released !!

617 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online: A long, long time ago... 
 

hey, what i wanted to ask, is it pssible to get an night preview? it's not hard to get a day preview with selecting the zoom cam u want and render it. but how can i get night previews?

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

The only way I know of to get a night preview is to bring the finished building into the game, the lot editor, or the ilive reader (probably datgen as well). Not really much of a preview.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
Date: 1/23/2005 11:19:07 PM
Author: CycleDogg



It shouldn't have anything to do with number of nightwindows/nitelites. I just did a test export with 400 nightwindows and 100 nitelites and it worked fine.
quote>

Weird... my max 7 had issues to render my building with around 200 nite windows
14.gif And Joerg reported that his stadium didn't render, and had many night lites.

I wonder if a recompliation of the 3dsmax BAT plugin is needed for versions 6 and 7 to fix this...22.gif

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

OK, little subtraction mistake. 14.gif  Code 22 means all the zoom 5 and zoom 4 renders went OK, but something went wrong with the first zoom 3 render.  Which means there is probably something wrong with your LOD3.  If your LOD3 is missing, or if it has been renamed to anything other than LOD3 (such as nite_LOD3, or LOD03, or LOD3new) then you'll get the Code 22 error.  (Likewise, you'd get a Code 14 error if there was something wrong with your LOD4, or a Code 6 error if there was something wrong with LOD5 - but there are lots of other things that could cause a Code 6 error).
Your LOD3 could have been renamed if, for example, it was accidently selected when using Randomize Night Windows, or Randomize Window Colors, or Rename Objects.


This could easily be the cause of J.O. and Jeorg's problems as well, especially if the rendering issues involved an error code 6, 14 or 22.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

What could be an error 6 code?

My building (the one for the SC Brasil competition) is a 272x86 m. (quite enormous, 17x6 sqr) with VERY simple LODs (rectangular...)

I experienced an error code 6 and i would like to find the solution quickly as it will take 3 days to render (estimation) and as you probably know, the competition ends next monday.

if you can give me the possible reasons of this error or if you need other details..........

Thank you for your attention!

Nikos

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

I experienced that error 6 myself... But I've been able to solve it by rising my virtual memory (info found here on the forums). I did so, then scaled my bat down (80%) and it worked.
It took me 17 hours (P4 2,2GHz; 512 ram) and I had around 220000 polys if I remember well.

But I was using gmax not 3ds max... I hope this helps, and that you can export your stuff.
Good luck

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Actualy I have 1GB of RAM + 2BG virtual memory.. Do you think it'll need more than that? The problem with the resizing is that the building is on scale..

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
Date: 1/25/2005 8:50:38 AM
Author: swi21
What could be an error 6 code?


My building (the one for the SC Brasil competition) is a 272x86 m. (quite enormous, 17x6 sqr) with VERY simple LODs (rectangular...)


I experienced an error code 6 and i would like to find the solution quickly as it will take 3 days to render (estimation) and as you probably know, the competition ends next monday.


if you can give me the possible reasons of this error or if you need other details..........


Thank you for your attention!


Nikos
quote>

I also had some error 6s, however they were related to the number of night lights and night windows (I have bugs with that45.gif) however error 6 means running out of memory, what may be the case with your enormous bat... And I don't think that it will take so long. a 6x6 bat I'm making (check my NDEX thread) takes just 15 minutes with reflections on the sphere inside the dome,I would give your model more or less a few hours... However I don't know how complex is it...14.gif
To know if it is a night illumination bug, watch the render. If it crashes after a day render (most probably after the first day render) it is due to the lights random bug15.gif

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

The error codes will be different for gmax/BAT and 3dsmax/BAT.  But memory or hard drive space is a possibility.  Need more info though.  For example, did it start to render anything before giving you the error code?

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

well actualy, i get the error just before start to render the first view....

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

64m height... But I was thinking of something now... some of the objects aren't included in the LODs, from left and right, and under z=0

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Due to the external LOD rendering, I beleive that objects outside them don't crash, just screw the batch FSH...46.gif

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

After several test and modifications and with cycledogg's precious help, the render is done, finaly ! :D

But there is another problem now... see by yourself...

problems.jpg

Any ideas anyone?

Share this post


Link to post
Share on other sites
Posted:
Last Online: A long, long time ago... 
 

select only the house, goto file-save selected. then close max, open the newly saved file and try to export it again, u also may render the lods in gmax new. i had such problems several times, but i got them solved after a few tries

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Open a blank scene, load any night material libraries you may be using, and merge with the other scene, but DO NOT merge with the camera handles and etc..
Always works for me...41.gif

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

I tried all the possibilities, but nothing... Actualy, the problem was from the script... well, Cycledogg said so... I'm rendering a new version tonite.. Let's see the result......

Many many thanks Cycledogg for your REALY precious help! I wonder what I could do without your support......

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Another reason for those primary colors showing instead of your building is when the group numbers are different.   This can be fixed just by opening the building in the Reader and changing the numbers.  

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
New Script
Here is a new BuildingMill script that fixes a few problems related to night lighting and night libraries.  Also there are new error codes.  Unzip and replace your existing CPBuildingMill.ms file (in 3dsmax\gamepacks\BAT\scripts) with this file.  Thanks to swi21 for testing. 4.gif

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Hopefully you'll never encounter any of these, but if you do, here are what the new error codes mean:

100 - Problem deleting old directories (deletetree).


102 - Problem setting render type.


104 - Problem setting cameras.


106 - Problem resetting cameras.


108 - Model name structure failed to initialize.


110 - Problem cleaning out temp folder.


112 - Problem cleaning up destination folder.


114 - Problem deleting temporary meshes leftover from previous renders.


116 - Problem creating .bat file.


118 - Problem creating temporary light.


120 - System.bmp file missing from BAT directory or corrupted.


122 - Failed to find or create LODS


124 - Failed to get the LOD for the current zoom level


126 - Failed to set up render viewport


128 - Problem deleting temporary light or resetting camera rig after rendering complete


130 - Problem creating fsh files/updating .sc4model file.



150 - Problem saving temporary day material library


152 - Problem adding scene materials to temporary day material library or temporary material library is empty.  (Possible cause: scene is empty or has no materials).


154 - Problem saving temporary night material library


156 - Problem adding scene materials to temporary night material library or temporary material library is empty.  (Possible cause: scene is empty or has no materials).


158 - Problem initializing temporary night alpha material library


160 - Problem building the night alpha library.  (Possible cause: Bad or incompatible material in scene.  Standard materials work best with night library render.)


170 - Problem getting night window opacity


174 - Problem setting night window opacity in file properties


180 - Problem getting night window texture map


190 - Problem getting name of night window texture file


196 - Problem getting truncated filename of night window texture


204 - Failure to get LODS


210 - Failure to create LOD


220 - Failure to create LODs 3 4 or 5


230 - Problem setting up LODS/setting render region


250 - Problem backface culling LOD shell


260 - Problem slicing LOD shell



300 - Failure to apply screen region UV mapping


320 - Failure to apply diced region UV mapping


400 - Pre-render setup problem (day render)


404 - Problem making or cleaning up daytime render directory


410 - Rendering problem for daytime render (may be 3dsmax or memory problem)


412 - Problem processing daytime alpha map


416 - Problem processing daytime render or converting to .bmp


418 - Failure deleting source render (.tga) files



490 - Problem enabling/disabling nitelites


500 - Problem making or cleaning directories for night render


510 - Incorrectly set render type


511 - Problem loading night library or assigning night library materials to objects


513 - Problem setting up nitelites


514 - Problem setting main lighting rig for night render


516 - Night render failure (nitelites) (may be memory problem)


518 - Problem restoring lighting level


590 - File preparation problem for Nightwindows processing


592 - Problem converting day render to night colors


594 - File handling problem, post day -> night conversion (nightwindows)


600 - Problem loading temporary alpha library or assigning alpha materials to objects (for nitelite or night library alpha render)


602 - Problem disabling lighting rig


604 - Night Alpha render failure (may be memory problem)


606 - File handling problem (night alpha)


608 - Problem during alpha adjustment


610 - Night alpha file handling problem, post-adjustment


612 - Failure restoring lighting rig or camera rig


614 - Failure loading temporary day materials library, or reassigning day materials to objects


700 - Nightwindows post-processing setup


703 - Problem setting texture tiling parameters


704 - Failure opening nightwindow texture file.  Possible cause: File name doesn't conform to standard.


705 - Problem tiling nightwindow texture.  Possible cause: Image size not 256 x 256.


706, 707, 708 - File handling problem, nightwindows


709 - Failure placing nightwindows onto night render


710 - File handling problem - night windows


800 - Night Alpha post-processing, file handling problem


814 - Alpha compositing problem


815 - File handling problem, post-compositing


816 - Same


817 - Problem deleting temporary camera, or memory cleanup


900 - Image dicing initialization problem (pre-render)


910 - Problem rendering the 256x256 dicing source image.  If you get this error, try disabling the render viewport, or pan the render viewport until all geometry is far outside of the viewport.  This will save memory (and reduce render time).


912 - Problem initializing file names for image dicing


914 - Problem creating temporary bitmaps for dicing


950 - Night dicing initialization problem


952 - Failure deleting source files (Source file missing?)


954 - Problem during dicing of temporary daytime or daytime alpha bitmap.  Problem could be occuring while: Making or cleaning out directory for fsh slice, pulling grayscale bitmap (gbuffer channel) from dicing source image, writing pixels to daytime slice or daytime alpha slice, writing lines to .bat file, writing index.fsh file, or writing .tgi file.


960 - Same as 954 except nighttime


968 - Problem during post-dicing cleanup.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 
4.gifCheers cycle!29.gif
thanks a lot for fixing the building mill script35.gif
Just a question, in my maxes (6 and 7) the mental ray rendered is built-in. If I used it as the renderer would the script fail or it also works with it, Vray, Brazil and the new one (maxwell) too?31.gif

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

I don't know of any reason why it wouldn't work. 42.gif Try it.  If the renderer isn't compatible with the scripts, you will probably get error code 410.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

I have been using these plugins as a way to get around my Gmax being unable to render (luckily, it can render the LODs).

Even though the plugins are fantastic, and you guys have all my respect and admiration for doing this for free, there is a very very serious problem: Documentation!

The .txt included is just not clear enough. There are thousands of errors with the plugins that weren't even explained in that document. A bigger and better documentation would be cool.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Most of the freatures that 3dsbat has aren't that hard to figure out. Feel free to PM me if you need help.49.gif

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Thanks! I figured most of it on my own, but wasting 5 or 6 hours to properly configure a program is not nice 48.gif

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Is it suppose to support 3ds max 7? I tried it on mine and after it render the first image it gives me code 6. any thoughts?

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

I've been playing with the plugins a bit, and I must say they are incredibly useful: the rendering time is so much faster than Gmax!

I am having no problems whatsoever with small buildings. However, whenever I try to render a bigger building, I get some problems with textures. For example, in this building, which is a 6x4 biomass power plant, you can see those ugly grey lines. They show up in the Reader and lot editor (and I think in the game too). It is as if those FSHs weren't lining up properly. I tried re-rendering and I'm getting the same lines at the same exact position as before.

strangelines2re.jpg

Anyone has any ideas about this?

Share this post


Link to post
Share on other sites

Sign In or register to comment...

To comment in reply, you must be a community member

Sign In  

Already have an account? Sign in here.

Sign In Now

Create an Account  

Sign up to join our friendly community. It's easy!  

Register a New Account

Sign In to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Thank You for the Continued Support!

Simtropolis depends on donations to fund site maintenance costs.
Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

Make a Donation, Get a Gift!

Expand your city with the best from the Simtropolis Exchange.
Make a Donation and get one or all three discs today!

STEX Collections

By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

Each donation helps keep Simtropolis online, open and free!

Thank you for reading and enjoy the site!

More About STEX Collections