Re: 3DS max Exporter
Posted by GraphicsNoob on Apr 12, 2011; 11:24pm
URL: https://forum.jogamp.org/3DS-max-Exporter-tp1980790p2813956.html
I'm kind of a noob to JOGL, sorry if this is a dumb question, but I have exported a model to obj format and tried using your WavefrontObjectLoader.java, but after several hours of tweaking I am still getting an index out of bounds in the ConstructTNV() method at:
"tcoords[tloop] = ((float[]) vtData.get(t[iloop] - 1))[tloop]"
It would appear that every model I try to load, at some point t[iloop] - 1 resolves to '-1', throwing this exception.
Am I doing something wrong? Is this an issue you have had before?
Thanks