zasid Posted November 23, 2007 Share Posted November 23, 2007 Hello, I have a very slow machine and I m using H9 on it and its take ages to render my volume lite ,is there any way I can optimize and make it fast to render or is there any way I can cheat the effect with some cone or shader .Looking forward to hearing from you guys . Thanks zasid. Quote Link to comment Share on other sites More sharing options...
kleer001 Posted November 23, 2007 Share Posted November 23, 2007 If the application is very simple and you don't need volumetric shadows from something going through the light then you can use a shader with transparency based on the facing ratio to camer. This is the opposite of an "x-ray effect" where the inside is transparent and the edges are opaque. I would suggest that you put some noise on it to help break up the edges a little. Hello,I have a very slow machine and I m using H9 on it and its take ages to render my volume lite ,is there any way I can optimize and make it fast to render or is there any way I can cheat the effect with some cone or shader .Looking forward to hearing from you guys . Thanks zasid. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted November 23, 2007 Share Posted November 23, 2007 I've never really used it but you can also do volume lighting effects in cops by rendering a depth pass into a deep raster. Quote Link to comment Share on other sites More sharing options...
Popular Post old school Posted November 23, 2007 Popular Post Share Posted November 23, 2007 If you are using the defaults for volume rendering, then yes you can certainly get a handle over the render times by tuning the volume rendering with a bit of a sacrifice on quality (if at all). Volume Step Size The main way to tune your volume rendering is with the volume step Size on the mantra output ROP (Properties > Sampling folder). Step size is in Houdini units in Camera Space. This will also have a great impact on quailty. It is a trade-off and that is what tuning is for. What you are looking for here is if your volume object is very large (bigger than say 1 Houdini unit), then you can safely increase the Volume Step Size and see little to no quality difference. I turn down the step size when I am tweaking colors and shaping. I then turn up the step size when tuning the actual fine detail on the smoke. Pixel Samples This is the second major way to get speed back in to your volume rendering. It defaults to 3x3 which is decent quality. Decreasing this to 1x1 will certainly increase your render times but will introduce visible noise in to the final image. If you have a great deal of motion blur and/or DOF, you can get away with turning down the samples down a bit. At 2x2, the difference in quality from the 3x3 render is noticeable but not as bad as the 1x1 where sampling noise is clearly evident. Shading Quality Since we are dicing the volume primitive in to micropolygons (non PBR) before we even shade, shading quality comes in to play. You can control the shading quality on a per object level and that is exactly where you find this parameter: Object > Render > Dicing > Shading Quality. Increasing causes more micropolygons therefore more shader calls. Because we are marching through the volumes, the number of shader calls can get out of hand. Decreasing this value will reduce the memory consumed as well as render times but not nearly as drastic as throttling back the step size. If you are unfamiliar as to what shading quality does in a micoropolygon renderer, you have some homework to do. Seek out the OdForce Wiki and RenderMan documentation plus the Advanced RenderMan book. Fyi it controls the size of the micropolygons which inherently controls the number of times the shaders are called. Motion Factor, DOF and Motion Blur If you are using either Depth Of Field (DOF) and/or Motion Blur, you should try out Motion Factor. It controls the Shading Quality dynamically. Depending on the level of DOF or MB, you can decrease the shading quality which = less memory and faster renders. Control the Number of Lights Since we are marching in to a volume, eash shader call will loop through all the lights illuminating the current micropolygon in the volume. By limiting the number of lights we need to look up, we get a proportional decrease in render times. Following this, the less lights we have generating and using deep shadow maps, the quicker the render times. Remember it is the deep shadows that give you depth. You may only want one or two lights with this option on and the rest of the lights to not use shadows and just add bits of illumination. So, if you are using ambient occlusion (the Environment Light from the shelf) with your volume objects, don't. They really slow down your volume rendering because each shaded micropolygon will cause an awful lot of rays to be generated due to the raytraced ambient occlusion. Use standard CG lighting techniques to try to get the look you are after. At the default setting of 16, you can obstensibly add up to 16 carefully placed lights and get a similar impact yet have an awful lot of contro. If you really need this, limit the number of rays. Opacity Limit When you are rendering geometry with a certain amount of transparency, you can use the opacity limit to stop the current ray if the opacity threshold is met. If used too aggressively, you will see flickering and strange banding in your volume over a sequence of renders if the cam is moving or the smoke is evolving. This is the varying opacity thresholds in the volume. Most evident if your volumes are more wispy and transparent. Here you are chasing that 1-5% decrease in render times and not the large decreases above. The default value is already pretty aggressive so be careful here to avoid adding nasty artefacts. Use Standard Displacement and Surface Shader Optimizations It's really nice to have volume rendering where we can use standard surface and displacement shader opimization tricks. There should be quite a few tips/ideas on the two main forums. At this point your optimizations are in the 1-5% decerase in render times. Note: Both the Depth Maps (deep shadows with opacity) and the final rendered image benefit from the tuning above. Note: If you make a changes such as decreasing the step size, you need to regenerate your depth maps. Note: Make sure to turn on Mantra profiling to see the actual render times to see actual impact on rendering speeds. 10 Quote Link to comment Share on other sites More sharing options...
michael Posted November 23, 2007 Share Posted November 23, 2007 Jeff... you should post this in your blog... Quote Link to comment Share on other sites More sharing options...
old school Posted November 23, 2007 Share Posted November 23, 2007 I will take this a lot further and post a blog. Thank-you for the encouragement. Quote Link to comment Share on other sites More sharing options...
michael Posted November 23, 2007 Share Posted November 23, 2007 I sould add that since it's been posted here it becomes the property of od[force]...but we'll give you a good rate to use it elsewhere Quote Link to comment Share on other sites More sharing options...
zasid Posted November 25, 2007 Author Share Posted November 25, 2007 Hello guys, Thank you for the great response .I have tried few of the tips and they seems to work well for me so thankyou for all your help. regards, Zasid. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.