Sunday, August 24, 2008

K98K work in process

9.19.2008 update:

Texture finished, here pics shows that in 3dsmax

10  1112

Here is the model what am i doing recently. I haven`t finished yet.

2

Friday, August 8, 2008

The reseach about the BSP of Mental Ray

    Some friends told me that mental ray is so slow especially the scene with a huge number polygons or the issue about the stability of mentalray rendering a big file. Probability we can reduce the parameters; for instance FinalGather, GI, Sample pixel or even resolution. However, we can also use BSP to control the rendering time or memory cost to avoid quality loss in the previous way.

    So, The first thing we should know is what the BSP is? Basically, This feature you can comprehend as cutting the 3d space to many big or small bucket that has same polygons for save memory or accelerate rendering speed. Let`s take a look at this image if you still have no idea about what am i said. Here is scene with a hign poly car and ground, as you can see at the area marked num 1 almost nothing there, so BSP tree assinged a bigger bucket for this area, and the smallest bucket is the yellow area which has much detail there. In this way, Mentalray is able to use memory as efficiently as possible.

2 3

   The official defined of BSP is:

    The BSP (binary space partitioning) acceleration method recursively subdivides 3D space into a nested set of voxels, small boxes with triangles in them. It is efficient, but careful attention should be given to the size and depth parameters, which can have a large impact on speed and memory usage.

  Size:

  The parameter named Size determines the maximum number of tris in a bsp leaf. Decarese this parameter that will have more leaf( more bucket as the image shown), and a heavier bsp structure, it will resulting in higher memory cost but better performance( need enough memory first, and in some case like a small scene, a small num tris, decrease size probability affect performance badly.The following image shown the difference between size 10 and 20.

4

5

    Now, we lock depth to 70, and change size vaule for testing.

6

    As you can see, the performance will be the best when you set the size to 1, but it`ll cost too much memory. So in oder to balance the memory usage and performance, 30  is good value for this scene.It`s quite obvious that the higher value of size is able to save more memory. So in a big scene with huge num tris you can set a higher value for boost up stability.

    Depth:

    Depth determines the maximum number of layer of BSP leaf. Incarese this parameter that will have more leaf layer, and a heavier bsp structure, it will resulting in higher memory usage but significant improvement in performance.The following image shown the difference between size 2 and 3.

9

8

Now, we lock size to 10, and change depth vaule for testing.

10

    The memory usage oscillate about an upward curve.The vaule of depth form 20 to 30 has considerable performance increase. It used 12mb memory in returen for saving about 800 seconds.38-40 is a nice value that wont cost too much memory but the best performance. Probability you`ve guessed right, size=30, depth=40 is the Mental ray default setting.

   Now we need find out why it`s so slow while the size=10 depth=20( it cost 973s).Open up Diagnostics feature, here is the image:

11 

   The car is red, red means there are too much bsp leaf here, it`s bad.Green and yellow means the proper bsp leaf.Blue color means that the area is deficient in bsp leaf, also, bad. The aim that guides setting the BSP is that makes main objects to green or yellow, makes simple objects( e.g ground, low poly object) to blue, makes the most complex areas to red.

    Here we lock depth=40, and increase size to 200.

12 
    A little bit better, but still slow. We revert the size, and incarese depth to 40.

13
    Almost perfect. Let`s keep goning, incarese depth to 70 and see  what would happen.

14
    Still quite good, however, it will cause much more memory. Now set depth to 100. The mentalray message show up this:RC   0.3  warn   082049: bsp depth too large, set to 70, which means more than 70 depth for this scene is waste.

15

    Now we got idea how to get a correct BSP setting for a scene. But it seems very complicated. Simply speaking, if you have enough memory, set the depth as higher as possible, and set size as smaller as possible. Generally, for most scene, size=10, depth=70 is very nice for my computer. You can test a suitable for yourslef.

    And whatever the parametar of BSP sets, it wont be anything changed about image quality. Remember, it just affect rendering time and how many memory will be used during the rendering process.

    Ok, this`s my reseach in there days. C&C are weacome.

Monday, August 4, 2008

WIP

I spend a whole day for this image.If you have no idea what it is, id tell you in next few days cause i haven`t finished it yet.


Sunday, August 3, 2008

Some test rendering

Here is some test rendering tonight that Zivix gave this girl to me for set up material and lighting in 3dsmax Mentalray. 2-3mins for each pic with 1000 maxinum pixel height.(4core 3.6G cpu).I`m wondering if anyone knows how to insert a biger size image without any limt over here? Thanks.