OBJParser throws following error if a texture bitmap is not a square powers of 2 (ie: 256x512, 512x128, 64x256, etc.):
Error: Error #3700: A texture sampler binds an incomplete texture. Make sure to upload(). All miplevels are required when mipmapping is enabled.
at flash.display3D::Context3D/drawTriangles()
at away3d.materials.passes::MaterialPassBase/render()
at away3d.materials.passes::DefaultScreenPass/render()
at away3d.materials::MaterialBase/renderPass()
at away3d.core.render::DefaultRenderer/drawRenderables()
at away3d.core.render::DefaultRenderer/draw()
at away3d.core.render::RendererBase/executeRender()
at away3d.core.render::RendererBase/render()
at away3d.containers::View3D/render()
at envirant2_fla::MainTimeline/renderscene()
If texture bitmap is square (ie: 64x64, 128x128, 256x256, etc.) then no error. You can confirm with the following files:
http://files.envirant.com/nonsquarebitmaptest.zip
First view the scene in browser, notice no error. Then change the texture bitmap path in the .mtl file (in the ‘img’ folder) to the non square texture. Result: Error. Please confirm if it’s a bug before I log it over at github. Thanks!