• About us
  • Contact Us
  • Terms and Conditions
  • Forum
  • Materials
  • Shaders
  • Tools
  • Video
  • Learn
  • Gallery
My Mental Ray
Go Back   MyMentalray Forum > mental ray for 3ds Max > Rendering
Reload this Page Mental Ray Debugging Question to Experts (Memory HDRI FG Black Buckets)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
Page 1 of 3 1 23 >
 
Thread Tools Display Modes

Old 02-04-2007, 10:14 AM   #1
oliviercefai
Hobbyist
 
oliviercefai's Avatar
 
Join Date: Dec 2006
Location: Geneva, Switzerland
Posts: 7
Default Mental Ray Debugging Question to Experts (Memory HDRI FG Black Buckets)

Hello,

I am debugging a Mental Ray error that seems to be experienced by several users in this forum and also on Autodesk's and CGSociety's.
I need support from some experts here, since I believe I have read a tested comments from at least 30 posts... with no success.

Basically errors while doing large rendering: either black/losts buckets spread accross the image or a full empty buckets image (with only crosses marking the buckets zones). This happens on large renderings: 5000x5000 and up to 10000x10000

No More Memory errors
Like many others, I have had several memory crashes calculating large images in the past, so I used the backburner split lines function, until max9/backburner 2007 which ended up not reliable enough for production. So I end up giving up backburner and switching to Deadline, which worked really well in cropping the render in tiles (2000x2000), each being sent to a different rendernode: No more memory error, a first good result :-)

However, I still get black buckets as soon as I exceed 6000x6000 for the final image size (although cropping renders into smaller images!)

Here is the set-up for 'sanity check'
Dual Xeon with 4Gb, rendering distributed to a farm of several Dual Xeons with 2Gb each. Plenty disk space (Raid 0) and gigabit network (no latency)
Of course /3Gb switch and clean machine install
Scene in max9 32bits, HDRI + Final gather + log exposure (activated for background), most nurbs geometry so around half a million polygons in the end. Not a big deal here.
Lighting with a couple of MR spots + skylight sets with hdri environment and FG - No photon
Most materials use various Arch&Design and Car Paint shaders
All usual MR sets checked (tried large BSP/BSP with different sizes, even Grid), placeholder, memory limit 1024/512/2048, MR map manager, bitmap pager on/off
Different FG presets tried: Low Mid High, interpolation radius standard or set to pixels
Tried with FG save to disk on and off

Now here is the little debugging:
Problem seems to come from FG calculations based on HDRI image: (I use a 6000x6000 HDRI studio lighting) because I can really see it during FG calculation, and it work without FG (obviously scene totally inacceptable then).

Testing difference with max9 64bits under winxppro64
Rendering works up to 8000x8000, no more lost buckets and the max memory used was 1.6gb despite 4gb installed on the machine: this means that the problem is linked to calculation rather than memory (one of the main difference between 32 and 64); alternatively, it could be linked to MR internal/FG buffer memory management but not actual RAM installed on the system.

So here are a few questions I am still trying to answer:
- Bitmap pager: Is the bitmap page option (on/off) passed to rendernodes in a network rendering set-up?
- Bitmap pager: which set should be use on such configuration?
- FG file save when doing network rendering of a single frame: since each node would use the same file for different images (each slice), how could that work??
- How to convert a .hdr file into an .exr? (MR message windows alerts that .hdr is not recognized an thus will be used as raw)
- Is there a way to force FG-only calculation on a single 64bits machine like with MR standalone and have that reused and shared by 32bits rendernodes?

Will keep you posted a soon as I find a decent solution; please post if you have any good finding.

Cheers
Olivier
__________________
Olivier Cefai
Freelance 3D Designer & Producer
Autodesk Approved 3DSmax & Mental Ray Instructor
www.cefaidesign.ch
oliviercefai is offline   Reply With Quote
oliviercefai
View Public Profile
Send a private message to oliviercefai
Visit oliviercefai's homepage!
Find More Posts by oliviercefai

Old 02-19-2007, 04:46 AM   #2
nisus
Super Moderator
 
nisus's Avatar
 
Join Date: Dec 2006
Location: Gent, Flanders, Belgium
Posts: 733
Default

Hi,

Did you turn of the visual frame buffer?
Did you try rendering a FG map on lower resolutions or even ideal diffuse?

rgds,

nisus
nisus is offline   Reply With Quote
nisus
View Public Profile
Send a private message to nisus
Visit nisus's homepage!
Find More Posts by nisus

Old 04-18-2007, 11:26 PM   #3
MasterZap
Junior Artist
 
Join Date: Nov 2006
Location: Eskilstuna, Sweden
Posts: 318
Default

The "black buckets on large renderings" is simply max's framebuffer management running out of RAM, and not being able to accept buckets from mr. The only short term solutions are "more RAM" and "64 bits". Othet than that I can only say "stay tuned"

Apparently Max - unlike mr - just silently fails it's memory allocation with no error messages.

NOTE: This has nothing to do with FG, or any other such problems that may in the past have generated "black splotches". Mr is actually successfully rendering the image, and is completely oblivious to max's inability to receive and display the buckets.

I suggest you render your FG map first at a lower resolution, hit the "read only" FG map mode, and then use some split-render MaxScript such as this one that I slapped together:

Code:
rollout SplitRender "Split Render Tool" width:250 height:100
(
	radiobuttons splitcount "Pieces to split render in:" labels:#("1", "4", "9", "16") default:2
	spinner  width   "Total width:"   type:#integer range:[0,32000,3000]
	spinner  height  "Total height:"  type:#integer range:[0,32000,2400]
	spinner  overlap "Pixel overlap:" type:#integer

    checkbutton show "Show image while rendering" checked:on

	edittext filename "File name:"  text:"my_filename"
	edittext extension "File type:" text:".jpg" 

	button  doRender "Do the render"
	
	on doRender pressed do (
	    a = splitcount.state
		b = splitcount.state * splitcount.state
		-- actual render width and height
		w = width.value  / a
		h = height.value / a			

		bm = bitmap w h
		p = overlap.value - 1
		
		for i=0 to b-1 do
		(
			row = i / a
			col = i - floor(row) * a
			
			render renderType:#blowup region:#((w/a)*col,(h/a)*row,w/a*(col+1)+p,(h/a)*(row+1)+p) outputwidth:w outputheight:h outputfile:(filename.text + row as string + col as string + extension.text) vfb:show.checked progressbar:(not show.checked) to:bm
		)
		unDisplay bm		
	)
)

-- create the rollout window and add the  rollout
if splitRenderFloater != undefined do
(
	closerolloutfloater splitRenderFloater
)
SplitRenderFloater = newRolloutFloater "Split Render Tool" 250 225
addRollout SplitRender SplitRenderFloater

/Z
__________________
zap andersson - mental images shader geek - mentalraytips.blogspot.com

Last edited by MasterZap : 04-18-2007 at 11:33 PM.
MasterZap is offline   Reply With Quote
MasterZap
View Public Profile
Send a private message to MasterZap
Visit MasterZap's homepage!
Find More Posts by MasterZap

Old 05-01-2007, 07:25 AM   #4
mmikee
Crew
 
mmikee's Avatar
 
Join Date: Jan 2007
Location: st louis
Posts: 137
Default

Thanks for the script Zap. Does this script respect tiff images and the alpha chanel ?

Regards,
Mike
__________________
TD Animagic Productions

http://mikebracken.cgsociety.org/gallery/
mmikee is offline   Reply With Quote
mmikee
View Public Profile
Send a private message to mmikee
Visit mmikee's homepage!
Find More Posts by mmikee

Old 05-01-2007, 10:37 PM   #5
nisus
Super Moderator
 
nisus's Avatar
 
Join Date: Dec 2006
Location: Gent, Flanders, Belgium
Posts: 733
Default

Hi Zap,

How can I use your script with network rendering?
Can it support crop rendering?

rgds,

nisus
nisus is offline   Reply With Quote
nisus
View Public Profile
Send a private message to nisus
Visit nisus's homepage!
Find More Posts by nisus

Old 05-21-2007, 03:56 PM   #6
Spacelord
Junior Artist
 
Join Date: Nov 2006
Posts: 354
Default

Thanks Zap,
I've seen a couple of scripts that do a similiar job,
but never deal with final gather. But Rendering a lower resolution FGmap is a great idea !!
I hope someday Mental Images figure out a way to keep the FG sampling the same regardless of which crop or region its rendering.
Spacelord is offline   Reply With Quote
Spacelord
View Public Profile
Send a private message to Spacelord
Find More Posts by Spacelord

Old 05-21-2007, 07:45 PM   #7
mmikee
Crew
 
mmikee's Avatar
 
Join Date: Jan 2007
Location: st louis
Posts: 137
Default

Quote:
I hope someday Mental Images figure out a way to keep the FG sampling the same regardless of which crop or region its rendering
I render the FG map and save it, then render the regions using the saved map. I am not sure if this is what you were
talking about.

Regards,
Mike
__________________
TD Animagic Productions

http://mikebracken.cgsociety.org/gallery/
mmikee is offline   Reply With Quote
mmikee
View Public Profile
Send a private message to mmikee
Visit mmikee's homepage!
Find More Posts by mmikee

Old 05-21-2007, 08:58 PM   #8
Spacelord
Junior Artist
 
Join Date: Nov 2006
Posts: 354
Default

Hi Mike,
Yes thats the correct way to go about rendering large images.
rendering the low res fG map (res 1000x1000), loading the frozen map then adjust resolution settings (3000x3000) or whatever res you want. Then render it out with a render crop script.

What I mean is Mental Ray changes its sampling based on what portion of the image its rendering. Example if I render a 2500x1500 image with final gather, without loading a fgmap.
Then render just the top right hand corner out without freezing the fgmap you will notice the fgmap does not match the image that was render all at once.


FG sends out different samples for each crop, it doesn't see the whole picture, It should reference it some how.
This would be handy for rendering changes to an interior, where I might change a table and just need to render region that section. I find sometimes it matches up okay other times I have to feather the edge of the region to blend it into the image.

cheers
Spacelord is offline   Reply With Quote
Spacelord
View Public Profile
Send a private message to Spacelord
Find More Posts by Spacelord

Old 05-23-2007, 09:01 AM   #9
chaka
Intern
 
chaka's Avatar
 
Join Date: Jan 2007
Posts: 65
Default

somebody can tell how use the script??? i never have used a script

this script support .tga??? or only jpeg


in the version standolone of mentalray , these problem not exist????
__________________
---------------------------------------------

sorry my english

Last edited by chaka : 05-23-2007 at 09:04 AM.
chaka is offline   Reply With Quote
chaka
View Public Profile
Send a private message to chaka
Find More Posts by chaka

Old 05-23-2007, 09:15 PM   #10
Spacelord
Junior Artist
 
Join Date: Nov 2006
Posts: 354
Default

copy and paste the script Masterzap has created into a notepad file. Save it with a .ms instead of .txt file extension.
Drag it into a max viewport and it should work.
Theres other ways to do it but that works for me.

cheers
Spacelord is offline   Reply With Quote
Spacelord
View Public Profile
Send a private message to Spacelord
Find More Posts by Spacelord
Reply
Page 1 of 3 1 23 >

« Previous Thread | Next Thread »

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode
Hybrid Mode Switch to Hybrid Mode
Threaded Mode Switch to Threaded Mode

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 11:02 PM.

Contact Us - Welcome to MyMentalRay Forum - Archive - Top
Copyright © 2008 My Mental Ray Community. All Rights Reserved.
No part of this website may be reproduced unless for personal use without prior written permission from The My Mental Ray Community.