IronArthur wrote:I didn´t know howto make a submesh in noesis it was my first time doing a plugin and first time in python, i only copied stuff from others plugin. There is any documentation??

Not for details, afaik. There's

noesis\plugins\python\

**__NPReadMe.txt**
noesis\plugins\python\

**__NPExample.txt**
and a header file (for 'C', but descriptions of functions and constants are important to know)

noesis\pluginsource\

**pluginshare.h**
Right now in Unity i´ve mostly correct uvs and i doing this ugly stuff:

var uaux = (reader.ReadInt16()); //Signed short

if (uaux > 16384f || uaux < -16384f)

u = ((float)(uaux & 16383) / 16384f);

else

u = ((float)(uaux) / 16384f);

Well, just cutting off the higher 2 bits doesn*t make you lose texture parts?

This mesh should be the circular propeller in the airplanes with a yellow strip.

you can press the 'UVs' button to check whether it's "proper".

Do you have separate submeshes in unity?

I've put some g sm_x lines into the obj created by Noesis and loaded it into blender (body uv2 scaled by 2.75):

edit: well, I used the wrong uv set, uv1: offset 20, uv2: offset 24; IronArthur found a set the suiting one uv1 at offset 16, depends on the submesh

Devastator.jpg

(Without the texture for the body I can't tell more. Could be a matter of 2nd uvs?)

Here's the details for building submeshes:

(example for submesh 84, last vSum was 1821, current vSum= 2925:

f

**1821**/1821/1821 1820/1820/1820 1818/1818/1818

g sm_1

f 1824/1824/1824 1823/1823/1823 1822/1822/1822

...

f 2924/2924/2924

**2925**/2925/2925 2917/2917/2917

g sm_2

f 2928/2928/2928 2927/2927/2927 2926/2926/2926

)

1. SM, vCnt: 4, vSum 4 (0x2e5 TrisBuff)

2. SM, vCnt: 16, vSum 20 (0x5b3)

3. SM, vCnt: 16, vSum 36 (0x8ff)

4. SM, vCnt: 16, vSum 52 (0xc4b)

5. SM, vCnt: 34, vSum 86 (0x11d7)

6. SM, vCnt: 24, vSum 110 (0x1690)

7. SM, vCnt: 36, vSum 146 (0x1ca5)

8. SM, vCnt: 38, vSum 184 (0x231c)

9. SM, vCnt: 20, vSum 204 (0x2797)

10. SM, vCnt: 21, vSum 225 (0x2b64)

11. SM, vCnt: 21, vSum 246 (0x3027)

12. SM, vCnt: 144, vSum 390 (0x4514)

13. SM, vCnt: 8, vSum 398 (0x4c20)

14. SM, vCnt: 8, vSum 406 (0x4e15)

15. SM, vCnt: 28, vSum 434 (0x52e9)

16. SM, vCnt: 64, vSum 498 (0x5d0b)

17. SM, vCnt: 28, vSum 526 (0x6339)

18. SM, vCnt: 20, vSum 546 (0x6774)

19. SM, vCnt: 20, vSum 566 (0x6bf7)

20. SM, vCnt: 14, vSum 580 (0x6f09)

21. SM, vCnt: 14, vSum 594 (0x71f4)

22. SM, vCnt: 44, vSum 638 (0x789e)

23. SM, vCnt: 64, vSum 702 (0x82d6)

24. SM, vCnt: 20, vSum 722 (0x8964)

25. SM, vCnt: 14, vSum 736 (0x8c74)

26. SM, vCnt: 14, vSum 750 (0x8f5d)

27. SM, vCnt: 44, vSum 794 (0x9605)

28. SM, vCnt: 64, vSum 858 (0xa02d)

29. SM, vCnt: 20, vSum 878 (0xa694)

30. SM, vCnt: 20, vSum 898 (0xaa49)

31. SM, vCnt: 14, vSum 912 (0xad58)

32. SM, vCnt: 14, vSum 926 (0xb040)

33. SM, vCnt: 44, vSum 970 (0xb6e7)

34. SM, vCnt: 64, vSum 1034 (0xc10e)

35. SM, vCnt: 20, vSum 1054 (0xcb0c)

36. SM, vCnt: 20, vSum 1074 (0xd2e8)

37. SM, vCnt: 38, vSum 1112 (0xe061)

38. SM, vCnt: 38, vSum 1150 (0xeed4)

39. SM, vCnt: 18, vSum 1168 (0xf70b)

40. SM, vCnt: 18, vSum 1186 (0xfe46)

41. SM, vCnt: 117, vSum 1303 (0x10e23)

42. SM, vCnt: 117, vSum 1420 (0x1242a)

43. SM, vCnt: 28, vSum 1448 (0x13490)

44. SM, vCnt: 28, vSum 1476 (0x13f28)

45. SM, vCnt: 43, vSum 1519 (0x1461a)

46. SM, vCnt: 18, vSum 1537 (0x14f27)

47. SM, vCnt: 18, vSum 1555 (0x15658)

48. SM, vCnt: 18, vSum 1573 (0x15d89)

49. SM, vCnt: 18, vSum 1591 (0x164ba)

50. SM, vCnt: 18, vSum 1609 (0x16beb)

51. SM, vCnt: 18, vSum 1627 (0x1731c)

52. SM, vCnt: 18, vSum 1645 (0x17a4d)

53. SM, vCnt: 18, vSum 1663 (0x1817e)

54. SM, vCnt: 12, vSum 1675 (0x186d1)

55. SM, vCnt: 15, vSum 1690 (0x18cbc)

56. SM, vCnt: 12, vSum 1702 (0x191c9)

57. SM, vCnt: 15, vSum 1717 (0x197b4)

58. SM, vCnt: 4, vSum 1721 (0x19986)

59. SM, vCnt: 4, vSum 1725 (0x19ab7)

60. SM, vCnt: 4, vSum 1729 (0x19beb)

61. SM, vCnt: 4, vSum 1733 (0x19d1f)

62. SM, vCnt: 4, vSum 1737 (0x19e53)

63. SM, vCnt: 4, vSum 1741 (0x19f87)

64. SM, vCnt: 4, vSum 1745 (0x1a0bb)

65. SM, vCnt: 4, vSum 1749 (0x1a1ef)

66. SM, vCnt: 4, vSum 1753 (0x1a323)

67. SM, vCnt: 4, vSum 1757 (0x1a457)

68. SM, vCnt: 4, vSum 1761 (0x1a58b)

69. SM, vCnt: 4, vSum 1765 (0x1a6bd)

70. SM, vCnt: 4, vSum 1769 (0x1a7f2)

71. SM, vCnt: 4, vSum 1773 (0x1a927)

72. SM, vCnt: 4, vSum 1777 (0x1aa5c)

73. SM, vCnt: 4, vSum 1781 (0x1ab91)

74. SM, vCnt: 4, vSum 1785 (0x1acc5)

75. SM, vCnt: 4, vSum 1789 (0x1adf9)

76. SM, vCnt: 4, vSum 1793 (0x1af2d)

77. SM, vCnt: 4, vSum 1797 (0x1b061)

78. SM, vCnt: 4, vSum 1801 (0x1b195)

79. SM, vCnt: 4, vSum 1805 (0x1b2c9)

80. SM, vCnt: 4, vSum 1809 (0x1b3fd)

81. SM, vCnt: 4, vSum 1813 (0x1b531)

82. SM, vCnt: 4, vSum 1817 (0x1b66b)

83. SM, vCnt: 4, vSum 1821 (0x1b7a7)

84. SM, vCnt: 1104, vSum 2925 (0x311b4) <<<

85. SM, vCnt: 65, vSum 2990 (0x34f95)

86. SM, vCnt: 200, vSum 3190 (0x36cbc) <<

87. SM, vCnt: 70, vSum 3260 (0x37db6)

88. SM, vCnt: 971, vSum 4231 (0x3f93a) <<<

89. SM, vCnt: 675, vSum 4906 (0x467d7) <<<

90. SM, vCnt: 120, vSum 5026 (0x487d6)

91. SM, vCnt: 204, vSum 5230 (0x4a508) <<

92. SM, vCnt: 43, vSum 5273 (0x4b02a)

93. SM, vCnt: 4, vSum 5277 (0x4b43a)

94. SM, vCnt: 4, vSum 5281 (0x4b5e6)

95. SM, vCnt: 4, vSum 5285 (0x4b792)

96. SM, vCnt: 4, vSum 5289 (0x4b8c9)

97. SM, vCnt: 4, vSum 5293 (0x4ba02)

98. SM, vCnt: 4, vSum 5297 (0x4bbb1 TrisBuff)

You do not have the required permissions to view the files attached to this post.