jPCT-AE - a 3d engine for Android > Support
Obj model loading error
penprakash:
Hi,
I have downloaded obj file from this site http://people.sc.fsu.edu/~jburkardt/data/obj/obj.html and tried to use it in my application ( JPCT-AE) got following error
03-04 22:58:47.749: E/AndroidRuntime(22464): java.lang.RuntimeException: [ 1362418127753 ] - ERROR: java.lang.RuntimeException: [ 1362418127740 ] - ERROR: Unsupported Texture width: 929
03-04 22:58:47.749: E/AndroidRuntime(22464): at com.threed.jpct.Logger.log(Logger.java:193)
03-04 22:58:47.749: E/AndroidRuntime(22464): at com.threed.jpct.Texture.loadTexture(Texture.java:798)
03-04 22:58:47.749: E/AndroidRuntime(22464): at com.threed.jpct.Texture.loadTexture(Texture.java:771)
03-04 22:58:47.749: E/AndroidRuntime(22464): at com.threed.jpct.Texture.<init>(Texture.java:138)
Please tell me supported texture width.
Prakash V
EgonOlsen:
Like the docs state, texture width and height has to be a power of 2. 929 isn't a power of 2.
penprakash:
But docs says Texture size has to be a power of 2. Any texture using another width and/or height will automatically be scaled to a width of 256 pixels. jPCT will print out a warning in this case.
EgonOlsen:
No, that's what the docs of the desktop version state....because that's what the desktop version does. The Android version raises an error and so say the docs.
penprakash:
Hi,
How do i find out texture height and width is power of 2? If it is not, is possible to convert texture width and height?
Thanks & Regards,
Prakash V
Navigation
[0] Message Index
[#] Next page
Go to full version