Import OBJ - question on texturing


(Wim Dekeyser) #1

I’m having a go at importing 3D scans and found some on the net.
https://www.artec3d.com/3d-models

I first imported the VW Bus, then deleted everything in the scene and imported the car compressor. This was the result:

If I import the compressor in a new session of Rhino, I get this:

Question: is that intended behavior?


Point deviation
(Pascal Golay) #2

Hi Wim - are there overlaps or collisions in group or object or layer names in the two files? OBJ import has so many settings for how to treat objects and groups and layers, it seems a clue would be in that part of the process. Can you send us those? Oh, I see the link… thanks.

@wim - both files’ mtl files have the same exact names inside - only the bitmap changes, so I guess Rhino currently thinks they are the same material… so far just mucking around here, I can’t find a way to name these that avoids the overlap though… still poking, I’ll probably need to check with Tim on this one.

-Pascal


(Wim Dekeyser) #3

I’m not used to working with OBJ’s and so probably missing a lot - but I’m not seeing that here - or at least only partially:

the Compressor.mtl file is as follows:

newmtl material_0
Ka 1 1 1
Kd 1 1 1
Ks 1 1 1
Ns 1000
map_Kd Compressor_0.jpg

newmtl material_1
Ka 1 1 1
Kd 1 1 1
Ks 1 1 1
Ns 1000

the Bus.mtl file is as follows:

newmtl material_0
Ka 1 1 1
Kd 1 1 1
Ks 1 1 1
Ns 1000
map_Kd Bus_0.jpg

newmtl material_1
Ka 1 1 1
Kd 1 1 1
Ks 1 1 1
Ns 1000

So, yes, the material names are the same but I would think that Rhino should be able to update map_Kd Bus_0.jpg with map_Kd Compressor_0.jpg. Perhaps with a Warning - Existing Material Found: Replace / Rename / Cancel question?


(Brian James) #4

Thanks for the report… filed as https://mcneel.myjetbrains.com/youtrack/issue/RH-39362

In the meantime, renaming the material for the bus scan prior to deleting that mesh prevents the confusion with the duplicate material name.


(Brian Gillespie) #5

RH-39362 is fixed in the latest WIP