Stu
Garden Master
Registered:1203570294 Posts: 488
Posted 1203995317
Reply with quote
#1
I have had very regular bugsplats and even full crashes while trying to render a model with about 25-30 clipmapped plant images. The model itself was lightweight, about 1Mb. The images, though can be 3-5Mb each......add it all up and you have a sizable file. I was hoping that the lack of geometry in the images would make rendering a breeze but it doesnt seem so. Anybody have any thoughts or ideas on this? Thanks, Stu
__________________http://www.landesign.com.au
Earth_Mover
Registered:1203871231 Posts: 23
Posted 1204046461
Reply with quote
#2
Stu, What kind of clipmaps? .jpg, .png or tif? Are they imported as images, or textures. Do you have any values applied to them? Maybe try hiding all your plants, then do some test renders bringing in certain groups at a time. Hopefully you can identify the culprit that way. I don't see the need to have huge high res files for all the plants. Maybe strategically put some high res stuff in the foreground only. I usually save a high res and low res version of each plant I make and keep the low res stuff in the distance.
__________________ Average minds take simple things and complicate them......Great minds take complicated things and simplify them.
Stu
Garden Master
Registered:1203570294 Posts: 488
Posted 1204067011
Reply with quote
#3
EM, I'm typically using commercial images, for example, ImageCels and these come as Tiffs. I use them as an image. I do think that the quality of the cutout is very important and I really dont tolerate noticable fringing which can easily show up with low quality plant images overlapping. So it seems that large and high quality images [say 1000x to 2000x pixels and up to 5Mb] are my preference. But I would hopefully like to hear from somebody at Podium re. this ......if the geometry is not an issue, is it the file size of the images causing the problems? Thanks, Stu
__________________http://www.landesign.com.au
TBD
Registered:1162307044 Posts: 1,178
Posted 1204105860
Reply with quote
#4
does it crash in processing geometry stage or after the render starts ? 1000x clipmap is overkill unless you have a closeup render - try to have a big clipmap for close view and smaller, resized ones for far away objects
Stu
Garden Master
Registered:1203570294 Posts: 488
Posted 1204140792
Reply with quote
#5
TBD, From memory the crashing happens prior to the start of the actual render. As far as size goes, I recently read a comment by Alan Fraser the SU actually reduces the max. size of any image files to 1024x pixels upon import, so nothing is going to be larger than that. Stu
__________________http://www.landesign.com.au
brown91
Registered:1190750978 Posts: 27
Posted 1204150239
Reply with quote
#6
Stu, I too use image cells. When I do a render I probably have a hundred or more in the model with clipmaps applied. Never had a problem, although, before I created my library, I shrunk the tiffs down by 50% and changed them all to jpgs. It reduced the image sizes greatly and it is very simple to do in PSP, esp. if you record a quick script and automate the process. The difference between the output of tiffs and jpgs is not noticable in my opinion, esp. with large exterior renders.
Stu
Garden Master
Registered:1203570294 Posts: 488
Posted 1204151120
Reply with quote
#7
Thanks mate, much appreciated. The fact that you can use a hundred [!] images is reassuring. What I do like about ICels Tiffs though, is that they can be exploded and still not show their mask in SU....very handy for setting up a scene. Stu
__________________http://www.landesign.com.au
brown91
Registered:1190750978 Posts: 27
Posted 1204167042
Reply with quote
#8
No problem Stu. Another tip that you might find useful is that you can convert the tiffs to pngs and still use the alpha channels like the tiffs do. Maybe that way you can have the both of both worlds, smaller image sizes with alpha channels included. Hope everything works out for ya!
Earth_Mover
Registered:1203871231 Posts: 23
Posted 1204221653
Reply with quote
#9
Stu, Out of curiosity, I did some tests with one of the sample trees from the imagecel.com website. I imported it in it's original .tif form, extracted and saved the alpha in DE and rendered at max settings. Then I took the same file and saved it, along with it's alpha as a .png. This took the total size of the combined parent/alpha file from 6.5 MB as a .tif, to 1.8 MB as a .png. I noticed no significant difference in either sketchup appearance, or in rendering appearance. I also noticed that even with the higher sized .tif file, you still have overlap fringing in sketchup. Upon further inspection of the fringing, I noticed that it is not related to the quality, or lack of quality of the cutout itself, so much as it appears to be some sort of a algorithmic cutout of the foreground component through the background. Notice the texture of the brick, in the fringing. It will change according to the texture selected to the background. I found this interesting and hadn't realized this in the past. I further took the same large size .tif file and reduced it by 50% and saved it as a .png. This took the joint file size down to less than 600 KB and rendered. I did notice a little bit of a reduction in detail, but not too significant overall. I also saved all three as face me components with the bounding boxes cut out and hidden. Sizes of the sketchup components were as follows: 6.5 MB .tif parent = 2,482 KB sketchup component 1.8 MB .png parent = 1,806 KB sketchup component 600 KB .png parent = 537 KB sketchup component You must be right about the sketchup file compression, which is probably why there is not much of a significant difference in overall render quality. Halving your files and saving them as .png, would probably help with the crashing though and be a little more manageable for your rig in general. Especially when you get into hundreds of clipmaps at a time. Just a thought. I really liked your website by the way. Nice designing!Paper_Mulberry_6.5MB_tif.jpg Paper_Mulberry_1.7_MB_png.jpg Paper_Mulberry_-600KB_png.jpg Paper_Mulberry_close_up_fringing.jpg
__________________ Average minds take simple things and complicate them......Great minds take complicated things and simplify them.
Stu
Garden Master
Registered:1203570294 Posts: 488
Posted 1204225784
Reply with quote
#10
Guys, Thanks for all that! I'm going to be flat out for a couple of days but will have a play with these ideas ASAP Stu
__________________http://www.landesign.com.au
zorro
Registered:1177239327 Posts: 131
Posted 1204227454
Reply with quote
#11
Hi All, Just a quick note on file sizes. The size of a compressed file ie files saved as .jpg or .png are only relative while the file is sitting in a closed state or residing on a hardrive etc,. Once the file is opnened or used by a piece of software the file size returns to it's original uncompressed state. You can easily demonstrate this by taking say a 6.95mb .tif file and save it as a .jpg and .png. Look at the size of the file in the folder you have saved them in, the .tif is 6.95mb the .jpg maybe around 2.29mb and the .png around 4.26mb. Now open all the files again in Photoshop and the size satus will show all three as being 6.95mb. Most are probably aware of this but, you should always keep your master files in a lossless format such as .tif or .psd etc. As soon as you save them in a format such as .jpg the compression is achieved by the software algorithm throwing away pixels it decides the human eye will not percieve as missing, these pixels can never be brought back and are gone for ever. You often see this as blocking and fringing on close inspection of a .jpg file. If you open the saved .jpg and resave as a .jpg more pixels are thrown away and the file deteriorates further. Z.
Earth_Mover
Registered:1203871231 Posts: 23
Posted 1204239878
Reply with quote
#12
Z, As far as compression and pixel loss, is the same true in the case of Sketchup? When you save a lossless (.tif) image as a component and you end up with a .skp file that is smaller than the size of the original image file, I'd imagine some compression has occured. Does this compression reverse when the image is opened in sketchup? As far as I understand it, a .skp component is similar to a little zip file that holds the texture qualities and geometry of the component, so I'm assuming that the image file the component is created from is self contained and it doesn't reach out and restore the image to the file size of it's parent. Is this correct?
__________________ Average minds take simple things and complicate them......Great minds take complicated things and simplify them.
zorro
Registered:1177239327 Posts: 131
Posted 1204255147
Reply with quote
#13
I'm not 100% sure on that but it is how I assume it works. I also assume, but again am not 100% sure here, that when Sketchup creates the component it is saving the image as a maximum quality .jpg (the compression seems to great to be a lossless format). When opened in Sketchup the image would inflate to its original size (won't be original pixels though). Use of maximum quality .jpg's means almost no (human perceptive) data is lost. Z.
Earth_Mover
Registered:1203871231 Posts: 23
Posted 1204563807
Reply with quote
#14
Makes sense. Thanks!
__________________ Average minds take simple things and complicate them......Great minds take complicated things and simplify them.