Atom Posted September 7, 2015 Share Posted September 7, 2015 (edited) Hi All, I am working on a planet scene and I want to add a glow around the planet. I am using the Volume Fog technique for glow which completely obscures the planet. The initial fog volume is the entire volume of the planet. I want the center, facing the camera to be completely clear of fog or glow. I have added a tube to the scene which intersects the planet sphere. I lowered the tube radius so it can act like a boolean subtract on the fog volume. Fog within the tube will be subtracted. Now the only way this trick will work is if the end of the tube is always facing the camera. So I have used the LookAt shelf tool to accomplish this. I object merge the tube into the glow sphere and use that as a second input on a Volume Mix set to subtract mode. This does work, however at render time it looks like the LookAt rotation axis is getting jacked by about 90 degrees. Can someone take a look at my file and confirm this or explain how to correct this render time LookAt rotation error? Thanks ap_planet_with_stars_1c.hipnc Edited September 8, 2015 by Atom Quote Link to comment Share on other sites More sharing options...
anim Posted September 7, 2015 Share Posted September 7, 2015 it's not viewport/render problem but you are merging local space tube geometry to glow layer object which still inherits planet's rotation on top therefore while tube itself has correct transform, the objectmerged one has not to fix that set object_merge_tube_cutter/Transform to Into This Object, so that it always compensates for transform difference between objects - to speedup things a little bit you can use VDBs instead of isooffset and volumemix - to speedup things much more, compute the volume ring in local space once, then just parent under planet and orient to camera, so that the volume geometry will not need to recompute every frame, just the object's transform will Quote Link to comment Share on other sites More sharing options...
Atom Posted September 8, 2015 Author Share Posted September 8, 2015 (edited) Thanks for the information, it was all correct. I forgot about the effects of parenting on transforms and having the static volume ring face the camera makes more sense than having the subtract tube face the camera. The VDB system does seem to be faster than Volume Fog. Getting closer on my planet earth. I have extended the dual map shader to represent day/night better. I have also added two more maps, one just for lights on the night side and an inverted specular for masking ocean reflection. You can obtain the image maps for earth from this CC-0 licensed model at Blendswap. Open the BLEND file and choose File/External Data to extract the embedded image maps. ap_planet_with_stars_1f.hipnc Edited September 8, 2015 by Atom 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.