Welcome to CGarchitect.com Untitled Document

Go Back   CGarchitect.com > 3D SOFTWARE > Mental Ray

Notices

Mental Ray Mental Images Mental Ray (Standalone & application integrated versions)

Reply
 
LinkBack Thread Tools Display Modes
Old April 20th, 2008   #1 (permalink)
Moderator
 
crazy homeless guy's Avatar
 
Join Date: Nov 2002
Location: san francisco
Posts: 2,751

Name: travis schmiesing


United_States 


Default A lot of RAM to load Mental Ray Proxies?

I have spent my spare time during the last couple of day's setting up a test to determine the feasibility of using Mental Ray proxies in a production environment. I want to be sure that Mental Ray can handle some of the larger projects I am working on. I had planned on posting that test by now, but it became apparent that I needed to hold off on posting the initial results until I figure out exactly how the Mental Ray proxies work. I am running into a few snags. So, her is my basic problem...

I have a proxy tree that I created. The proxy tree has 444,100 polygons. This is more poly's than my trees typically have with the exception of maybe a every green. I placed this proxy into my Mental Ray scene, and created 300 instances of it in the scene. I hit render, and it starts processing, but it doesn't make it to the Final Gather. I am lucky to be working on a robust machine. I let it run up to 6.5 gigs of RAM before I force kill the process.

As I look closer at the problem, it seems like Mental Ray is trying to load the geometry for each proxy into RAM before it starts to render. This is not what I expected to happen. The disk space for this proxy is 67 megs. If Max were to load 67megs into RAM 300 times, I would be looking at around 19.6 gigs of RAM for just that. Didn't someone post a thread the other day about wanting 32 gigs of RAM? ...I think it might be useful in this case.

So... Not knowing if that is exactly what is going on or not, or if I am doing something wrong, I decide to do another test. I took the same proxy, and instanced it 50 times in my scene, and hit render. If my above statement is true, the the RAM should hit about 3.27 gigs plus the whatever amount is needed to load 3dsmax into memory. So, I hit render. The calculation was fairly accurate. The image started rendering when the RAM level was around 3.3 to 3.4 gigs. It may have taken slightly more RAM, the numbers were jumping around, and I wasn't keeping a close enough eye on them.

Quote:
Originally Posted by Zap's Mental Ray Blog

<snip>
"...These bytes can then be read in... but not until a ray actually touches the bounding box!"

<snip>
".... Not until the object is actually needed for render is it even loaded into memory, and when it is no longer needed, it can be unloaded again to make room for other data."
Obviously the proxy is being loaded into RAM, but my scene seems to be loading all of the proxies into RAM before it starts to render. Maybe I don't understand enough about how the final gather works. I assumed it would be loading the proxy for the bucket it was on, and unloading the proxy geometry after it finished the bucket. ...and even then, I would think that if it was an instanced proxy, then the geometry would only need loaded once, instead of 50 times.

The other thing that is really weird. My file is 34 megs with the proxies in it. This is another big flag that says I am not doing something correctly.

I am no Mental Ray professional, but I can't help to think that I am doing something wrong here. I am posting my scene for other to look at. I am not in the office today, so I can't run more tests. At least more tests with the original scene I have set up. I may make a simplified scene and do some more tests.

SCENE : http://www.phase22.com/misc/cgarchit...oxies/base.zip < 49 megs (scene plus proxy file)

.
__________________
travis schmiesing
crazy homeless guy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 20th, 2008   #2 (permalink)
Moderator
 
crazy homeless guy's Avatar
 
Join Date: Nov 2002
Location: san francisco
Posts: 2,751

Name: travis schmiesing


United_States 


Default Re: A lot of RAM to load Mental Ray Proxies?

Hmmm... I am going to have to check the log files when I get to the office tomorrow. This guy seems to be pushing a 100,000 poly proxy object lots of times. He is managing 55+ million poly's in under 5 minutes at 2000x2000 pixels.

http://forums.cgsociety.org/showpost...&postcount=529

.
__________________
travis schmiesing
crazy homeless guy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 20th, 2008   #3 (permalink)
Senior Member
 
demo38's Avatar
 
Join Date: Mar 2003
Location: columbus, oh
Posts: 194

Name: Jonathon Harris


United_States 


Default Re: Loading proxy information on render.

That's a lot of polys. I'm curious to see what you find out.
demo38 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 21st, 2008   #4 (permalink)
Senior Member
 
Join Date: May 2006
Location: Cumbria, UK
Age: 34
Posts: 156

Name: Mark Cronin


Australia 


Default Re: Loading proxy information on render.

Yeah, I too am interested to see how this turns out. I haven't had an opportunity to play with proxys yet. Please keep us informed....
Macer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 21st, 2008   #5 (permalink)
Moderator
 
crazy homeless guy's Avatar
 
Join Date: Nov 2002
Location: san francisco
Posts: 2,751

Name: travis schmiesing


United_States 


Default Re: A lot of RAM to load Mental Ray Proxies?

Quote:
Originally Posted by crazy homeless guy View Post
The other thing that is really weird. My file is 34 megs with the proxies in it. This is another big flag that says I am not doing something correctly.
Well, this pas part was due to not double checking to make sure the file was properly cleaned up. There was a left over mesh that was hidden. After deleting it, the file was a more predictable size of 80k.
__________________
travis schmiesing
crazy homeless guy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 21st, 2008   #6 (permalink)
Moderator
 
crazy homeless guy's Avatar
 
Join Date: Nov 2002
Location: san francisco
Posts: 2,751

Name: travis schmiesing


United_States 


Default Re: A lot of RAM to load Mental Ray Proxies?

Well, I am beginning to get the scene to render. I have not got it as fast as what I would like, but I am still in the process of learning, so I won’t be overly critical of that right now. I am getting times of 24 minutes at 3000x1500 pixels with the geometry listed above. My sampling/AA is whack, so the images don’t look decent enough for production, but this is something I will deal with later. There is potential that my rendering time will take a big hit when corrected to a useable sampling/AA.

The main thing that is still proving problematic is the RAM consumption. I am still lingering around 3gigs needed to render this scene. My personal feeling is that this is high, and should be lower. I don’t feel the geometry is being loaded and unloaded in an optimal way. I don’t know if it has to do with the ray distribution in the scene keeping the geometry in the RAM, and not releasing it. Or if it is something I have set up wrong.

I re-packed the scene without the extra geometry. If someone else wants to play around with this, feel free. If you limit the test to 10 or 20 trees, the RAM consumption should be low enough that anyone can play.

SCENE : http://www.phase22.com/misc/cgarchit...oxies/base.zip < 24 megs. (max2009 scene plus proxy file)

.
__________________
travis schmiesing
crazy homeless guy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 21st, 2008   #7 (permalink)
Moderator
 
crazy homeless guy's Avatar
 
Join Date: Nov 2002
Location: san francisco
Posts: 2,751

Name: travis schmiesing


United_States 


Default Re: A lot of RAM to load Mental Ray Proxies?

If I am reading the Mental Ray Message Log correctly, it looks as if it is seeing my trees as being instanced. If instance is reffered to as Shared.

Quote:
Originally Posted by Mental Ray Message
SCEN 0.3 info : 51 geometry leaf instances (2 scheduled, 0 cached, 49 shared)
__________________
travis schmiesing
crazy homeless guy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 21st, 2008   #8 (permalink)
Moderator
 
crazy homeless guy's Avatar
 
Join Date: Nov 2002
Location: san francisco
Posts: 2,751

Name: travis schmiesing


United_States 


Default Re: A lot of RAM to load Mental Ray Proxies?

Some of you may say think that I am expecting to much. I am basing my assumptions on how much RAM the scene should use from working with proxies with Vray. To put it simple, I have this scene also setup with the VRay proxies. It renders the entire scene using less than 650 megs of RAM. This is why I am assuming that I have something out of whack.
__________________
travis schmiesing
crazy homeless guy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 21st, 2008   #9 (permalink)
Senior Member
 
Join Date: Dec 2003
Location: SC, USA
Age: 38
Posts: 205

Name: Jeff Patton


United_States 


Default Re: Loading proxy information on render.

Switch over to BSP2. I'm not sure why many people are overlooking this, perhaps it wasn't focused on enough in the documentation? BSP2 is much more efficient at handling millions of instances.

Using my 3-4 year old 32-bit system with 2gb ram I can easily render over 600 instanced copies of your tree mesh.


(I stopped the render because I have work to do and couldn't tie up my PC for the full render).

Bottom line, when using a lot of instanced proxy objects, you should be using BSP2 for optimal results.
pixelperfectg is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links

Old April 21st, 2008   #10 (permalink)
Moderator
 
crazy homeless guy's Avatar
 
Join Date: Nov 2002
Location: san francisco
Posts: 2,751

Name: travis schmiesing


United_States 


Default Re: Loading proxy information on render.

That totally kicked ass, and was the exact setting I was looking for. Thanks.

It used under 1 gig, and render in 1 minute and 34 seconds with my current settings.
__________________
travis schmiesing
crazy homeless guy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Five Points of Architecture garethace General Discussions 13 May 29th, 2008 10:24 PM
Vray proxy with vraydisplacement... baba147 VRay Render 4 October 21st, 2007 08:30 AM
Network / Render times / $ ahmon Hardware and Technical Discusions 2 October 20th, 2007 08:09 AM
Vray free and Viz 2006 taking hours to render.. alfienoakes VRay Render 5 October 27th, 2005 08:44 AM
Network Rendering & Render Farm Information Arnel General Discussions 0 October 26th, 2003 01:25 PM


All times are GMT -7. The time now is 07:44 PM.





Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
© Copyright 2001 – 2008 CGarchitect Digital Media Corp. All Rights Reserved.