Started by edlo, December 27, 2018, 09:49:31 am
Quote from: Matt on December 27, 2018, 10:48:46 amYou mentioned you tried "Rotate textures with planet" first. It doesn't work for heightfields but it works for most other shaders. Do you still have that enabled and are you rotating the planet?Some shaders may need to be adjusted to work in texture space rather than world space. If some shaders aren't responding, let us know which ones.
Quote from: cyphyr on December 27, 2018, 10:54:42 amYou can rotate the procedural textures with a transform node?If you have the procedurals plugged into the child of a surface (or distribution) shader you can rotate them "en-masse" with a transform node between the last procedural shader and the surface (or distribution) shader.You may have to place the planet at 0,0,0 first.If the planet is tilted (easier to tilt the camera) you will need TWO transform shaders, the first one to tilt, the second to rotate.Hope this is of some help or at lease illuminates a way forward.
Quote from: cyphyr on December 27, 2018, 02:54:58 pmAnother solution that "may" be easier is if you can load your global dem in to something that will convert it to a bitmap format (16bit tif is good) you could just project is as a spherical texture.Then you could rotate everything with a transform node or directly with the "Rotate textures with planet".Try Global mapper if you have access to it. If the DEM is a GeoTiff you are already there and you can just project it as a spherical texture.
Quote from: Matt on December 27, 2018, 07:21:38 pmI will attempt to get planet rotation working with DEMs in the next update. How urgently do you need this and which platforms do you need it to work on?If you need a solution that works in the current version, the level of difficulty depends on the axis of rotation, what your current lat-long values are, and how flexible you are about changing these things. If possible, please share your setup with us privately to the support email.
Quote from: cyphyr on December 27, 2018, 06:06:59 pmCould you try just using half the geoTiff?, the half facing the camera.
Quote from: Matt on December 31, 2018, 08:45:07 amEd, can you try loading your DEM into a Geog Image Map Shader instead of Geog Heightfield Load? That should respond to the rotation, and I believe it will work with all the same formats. Geog Image Map Shader has displacement capabilities.