Material with coloured or distorted texture
-
Does anyone how why when I query the UVs of distorted texture located within a group or component, I am getting wrong coordinates? I thought UVs are independent of face location. What is the 'nature' of UV_helper? Do I need to apply global transformation of the face to UV_helper object to get correct UVs?
Thanks
Tomasz -
I have sorted out issue #2.
For those interested how: I simply assign a texture to newly created group and write it to TW and then load again a face with the same texture to TW. If texture has been added twice it means it is distorted (photomatched).I still don't know how to get proper UVs for distorted texture within a group.
Tomasz
-
Tomasz,
Would the xml file be considerably bigger if all groups/components were exploded?
-
@gaieus said:
Would the xml file be considerably bigger if all groups/components were exploded?
No. Only groups\components with photomatched textures need to be exploded prior to exporting. The rest of a model can stay untouched.
I want to export correct UVs from groups because it is a proper solution -
Is there way to get inside the group and select face as one can do directly in SU? I know how to add an entity to selection but how I can enter the group(component) to use local coordinates?
I hope someone will be able to help me on the matter.
ThanksTomasz
-
gourp.entites will give you the array of entities in the group. Then run through all the items in the array, and look for your face.
-
Tomasz,
If there is no problem with the size of the xml file when there are groups or not, why don't you just explode all groups during the process? Users (like me) wouldn't find out anyway!
-
Thank you Clark. Unfortunately I am already finding faces as group entities but UVHelper doesn't give correct values or I am doing sth wrong.
Gaieus, I will issue SU2KT 2.3 without support for distorted textures within groups. I don't want to spend months on it. Exploding, exporting UVs and undoing explosion could be a solution!
Tomasz
-
AFAIK the POV-Ray script caused everything to be exploded, but it did create a backup of the skippy before doing so. Maybe you can look into a similar approach until such time as you have the code sorted?
-
@daiku said:
gourp.entites will give you the array of entities in the group. Then run through all the items in the array, and look for your face.
I just want to OPEN a group. I am using group.entities.. but it is not the case. uvHelper behaves different INSIDE.
There is method in model called close_active. But I cannot find make_active. How can I achieve it?
In other words - is there way to do outliner double click in Ruby?Tomasz
Advertisement