AnsweredAssumed Answered

How should i modify the roof code?

Question asked by skydragon10 on Nov 23, 2013
Latest reply on Nov 26, 2013 by geonetadmin
i want to achieve the roof like the picture A.The code i wrote is below:
roof-->
   roofGable(30, 0, 0, false)
setupProjection(0,scope.xy,getTextureSizeU,getTextureSizeV) projectUV(0)
set(material.dirtmap,getRoofTexture) setupProjection(2,scope.xy,1,1) projectUV(2)
when i applied the code to the shape,i get the result as the picture B.The lower part picture was misty.I did some experiments.I drew two shapes which the differences between them were the length and width.The picture C represents the result.
    how should i modify the code?
A:[ATTACH=CONFIG]29304[/ATTACH]
B:[ATTACH=CONFIG]29302[/ATTACH]
C:[ATTACH=CONFIG]29303[/ATTACH]

Attachments

Outcomes