|
|
|
|
Modeling |
|
|
|
|
RWX scripting (Notepad++) (3) - examples |
|
|
|
|
|
|
8. Modify the UV mapping texture orientation |
|
In this case, you have the possibility to modify the direction of the texture upon the model . You can put the texture horizontally instead of vertically, just by modifying the rwx script of the model. |
|
The example that we will use here is the model : roof22c1 |
When adding a texture to this model , and you combine this model with other models of this set, in order to create a complete roof (roof22a1 , roof22b1, roof22d1,...), then you will notice that the texture is not parallel with the borders of the model , and this is for 1 size of the roof part. If you try another texture on the model roof22c1 , you will have the same problem. This means that there is a problem with the UV mapping of the model (and this is no problem with the texture itself). |
|
|
|
|
For those who have downloaded the objectpath of the world uberpath on their computer: select the model roof22c1.zip , right-click and unzip the file. Then you will see roof22c1.rwx, and rename the file into : roof22c1bis.rwx |
Select file roof22c1bix.rwx, right-click and choose : "Edit with Notepad++". |
|
Now you will see the rwx script. There are 64 lines in total , but only the lines 4 and 32 will need to be edited. |
|
On the lines where you have the rwx indication "UV", you will notice that on line 4 and line 32 , there haven't been used integers for the values of the UV-mapping. (I have surrounded them with orange circles ). A value of 0.857864 -> This means that there is a rotation of the texture of 15 percent on these faces of the model. |
|
Now you just need to modify the 2 values into the value 1.0 , and then you save this file with roof22c1bis (we have already determined the new filename in advance). |
|
Then right-click -> 7zip -> "add to archive" and upload this zipped file to your the models of your objectpath. |
|
|
Here it is clear what needs to be changed |
|
|
|
|
|
Now you can look at the result : the texture is seamless with the texture of the other roof-model. |
|
|
|
|
|
|
|