ladybug-tools / ladybug-blender

:beetle: :orange_book: Ladybug plugin for Blender
GNU General Public License v3.0
46 stars 9 forks source link

Geometry handling problems. #22

Open ppaawweeuu opened 4 years ago

ppaawweeuu commented 4 years ago

LB Direct Sun Hours node. I think there are some general issues with geometry handling, multi-object geometry and context sockets, with/without modifiers. I started with 3 objects: House.Left, House.Right.Mod (with modifiers) and Plane:

001_objects_in

Here are results:

002_objects_in

  1. House.Left doesn't cast shadows at all
  2. House.Right.Mod casts shadows but displace modifiers are ignored. There are 2 displace modifiers, one of them just moves mesh up. Shadows are cast like house is on the ground.

blend file - untitled13.zip

  1. All geometry seems to be offseted / pumped, a little bit.

003_objects_in

  1. Sometimes modifiers from one object are applied to all other objects.

004_geom 005_geom

Moult commented 4 years ago

The geometry being offset is a feature, not a bug. I believe this is due to the offset distance setting, which ensures that during ray intersection the source geometry doesn't act as a collider.

The rest look like bugs. The copied modifiers is definitely a bug.

ppaawweeuu commented 4 years ago

After object renaming (F2 or Outliner), objects are not updated in Object in node list. I reported it to SV (link)

ppaawweeuu commented 4 years ago

The geometry being offset is a feature, not a bug.

I thought so. thx.

Durman commented 4 years ago

Mod casts shadows but displace modifiers are ignored.

Can be relevant https://docs.blender.org/api/current/bpy.types.Depsgraph.html