Giter VIP home page Giter VIP logo

Comments (18)

domlysz avatar domlysz commented on May 22, 2024

Thanks, fixed it in latest update. Please give it a try to confirm it's correct now

from blendergis.

turban avatar turban commented on May 22, 2024

The black hole is slightly smaller, but it is still present with the latest version:

blenderbug

from blendergis.

domlysz avatar domlysz commented on May 22, 2024

That strange the camera is placed 10 meters above the highest point of the mesh...

Maybee the subdivision level for the render is higher than the one for the 3view and there is no enough points around the pic to correctly estimate the maximum elevation of the rendering mesh.

I'will try to find a cleanest way to set the camera offset (I want avoid just setting an arbitrary value).

from blendergis.

kikislater avatar kikislater commented on May 22, 2024

I think it just a blender basic tip. Under Camera > Lens, Set clipping start = 0

from blendergis.

turban avatar turban commented on May 22, 2024

The clipping start is already 0 (or 0.001 to be exactly - if I try to change it to 0, Blender will change it back to 0.001):

screen shot 2016-06-19 at 12 56 42

from blendergis.

turban avatar turban commented on May 22, 2024

The clipping end value is 951.700 in Blender, but in my GeoTIFF it is 961.400 (retrieved with gdalinfo).

from blendergis.

kikislater avatar kikislater commented on May 22, 2024

Could you give us the blend or part of the blend ?

from blendergis.

turban avatar turban commented on May 22, 2024

This zip contains the GeoTIFF, the blend-file and the rendered image with the small black hole (left/middle):
https://dl.dropboxusercontent.com/u/2306934/MasterMaps/tile_13_09.zip

The black hole is "Himmeltindan" (964 m) in Lofoten archipelago: http://www.68north.com/outdoors/hiking-himmeltindan/

from blendergis.

kikislater avatar kikislater commented on May 22, 2024

Camera is very close to terrain in this part.
Modifiers : subdivision surface is set to 11, if you apply modifier or set to 9 black artefact disappear.

Place camera a little bit higher do the trick

from blendergis.

turban avatar turban commented on May 22, 2024

Seems to be the same issue as here: https://wanderingcartographer.wordpress.com/2014/11/14/shaded-relief-with-blendergis-part-2/

from blendergis.

domlysz avatar domlysz commented on May 22, 2024

So the problem come well from subdivision. Actually the script compute the mesh bounding box and place the camera 10 meters higher, but if the view subdivision is lower than render subdivision then in some case the computing bounding box will not reflect the final bounding box because view subdivision don't provides enough points to get a displacement in "full resolution"

In your blend file, higher point of the mesh is under the camera
selection_020
selection_021

But if I set view subdivision to 11 then the mesh is above the camera

selection_022

from blendergis.

turban avatar turban commented on May 22, 2024

What about adding a camera height of 100 m rather than 10?

from blendergis.

domlysz avatar domlysz commented on May 22, 2024

yes but it's not a clean and general way to solve the problem, the difference between view bounding box and render bounding box can be of any value, most of the time it will be few meters or decade of meters but potentially it can be lot of more.

However, I'm afraid that it's not possible to estimate the resulting bounding box without increase the view subdivision value (witch can involve lot of ram). So, I think I will add an option to edit the offset when the user create the camera. Also, expressed this value as percentage of z dimensions will be probably better than raw meters.

from blendergis.

turban avatar turban commented on May 22, 2024

Sounds like a good plan :-)

from blendergis.

domlysz avatar domlysz commented on May 22, 2024

fixed 9bfbcb8

from blendergis.

turban avatar turban commented on May 22, 2024

Hi @domlysz, thanks for the fix - did you add an offset value and where can I edit it?

from blendergis.

domlysz avatar domlysz commented on May 22, 2024

You're right, I forgot to add a property for editing the value

Thanks

from blendergis.

domlysz avatar domlysz commented on May 22, 2024

Finally fixed this one !
49130af

from blendergis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.