jesterKing / import_3dm

Blender importer script for Rhinoceros 3D files
MIT License
299 stars 37 forks source link

Cameras do not match from Rhino6 to Blender 2.8 #28

Closed JoshuaB-L closed 2 months ago

JoshuaB-L commented 5 years ago

Cameras do not match from Rhino6 to Blender 2.8

First of all a big thank you for sorting out the import_3dm addon for Blender 2.8. In general the add-on works great and has made a new workflow possible for architects! ;)

The issue It seems that the camera views when importing from Rhino 6 do not match in terms of the viewport extents and zoom

I was hoping to see the exact same view from rhino 6 to blender 2.8 as soon as you type in the same pixel dimension. It seems that the camera is centered perfectly but the viewport extents do not match, ie; the viewport is displayed much smaller in blender than in Rhino in the orthogonal view. See the attached images for more details.

Screenshots

190611_viewport_blender28_2207x758_jbl 190611_viewport_rhino6_2207x758_jbl

I can adjust the 'orthographic scale' by eye until I have almost the correct viewport extents (zoom) but this is far from accurate!

190611_orthogrphic_scale_jbl

Am I missing something here or is there something wrong with the way blender 2.8 reads Rhino 6 in the Python script?

Please let me know if there is a solution for this.

Best,

Josh

Desktop

tsvilans commented 5 years ago

Hi @JoshuaB-L, this is a known issue for ortho cameras... The reason is that the orthographic scale, or frustum extents, aren't yet exposed properly in the rhino3d module. Once they are, I can fix this.

I need to double check whether or not the same happens for perspective cameras. I'm not sure how thorough I was in the way it sets the FOV in relation to the aspect ratio (see the difference in cropping when you have a square image, a landscape image, and a portrait image).

Super busy at the moment, but will try to take a look soon.

lfertig commented 4 years ago

@tsvilans, I tried looking into this but I'm not quite sure which variables you need. I already exposed some variables and methods in rhino3dm for the block import. if I know what I'm looking for I might be able to help..

noamgat commented 3 years ago

Has any progress been made on this, or any known workarounds?

agx9101 commented 3 years ago

I'm looking for a solution as well. Perhaps in Rhino 7 the needed module is available? It would be very helpful to have consistent camera angles in both rhino and blender.

jesterKing commented 2 months ago

The named views appear to be importing correctly with v0.0.11