OBJParser: error if texture bitmap is not same widthxheight power of 2

Software: Away3D 4.x

cbrown, Jr. Member
Posted: 15 June 2011 07:15 PM   Total Posts: 39

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:


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!


whatever is good to know is difficult to learn


John Brookes, Moderator
Posted: 15 June 2011 09:00 PM   Total Posts: 732   [ # 1 ]

If non square set mipmap to false.
Error will go away.


cbrown, Jr. Member
Posted: 15 June 2011 09:25 PM   Total Posts: 39   [ # 2 ]

cool. thanks


whatever is good to know is difficult to learn



Away3D Forum

Member Login