Hello I am new to this site and was wondering if someone could give me a hand with a short piece of code. I am using a triangle mesh in JavaFX 8 3D and trying to make a die, but for some reason the code below will not skin my cube. I have put a test cube beside it to see if it will go onto that one, which it does (but with the image repeated on each side, as is to be expected). However when I add the material to my custom shape, it will not work. My code is as follows.
If I leave my material off of my custom cube, it will show up. Any help would be greatly appreciated.
I should also not that if I used the following material for my custom shape it will work, it is only when I try to add my custom skin to it that it will not work.