Hello list,
I face some problems with using SimpleTexturedMaterial. I can't manage to load
the texture:
WARNING: could not read blue003.jpg
WARNING: TextureChunk::initialize: can't mimmap non-2D textures that are not
2^x!!!
WARNING: TextureChunk::initialize: can't scale non-2D textures that are not
2^x!!!
Actually, it's done in the same way like in any tutorial. I can't see the
difference...
Which possibilities, in general, are there to prevent texture loading from
working?
Thank you very much,
Pascal
Code:
ImagePtr image = Image::create();
image->read("blue003.jpg");
SimpleTexturedMaterialPtr texture = SimpleTexturedMaterial::create();
beginEditCP(texture);
{
texture->setAmbient (Color3f(0.3,0.3,0.3));
texture->setDiffuse (Color3f(0.2,0.8,0.8));
texture->setEmission (Color3f(0.0,0.0,0.0));
texture->setSpecular (Color3f(1.0,1.0,1.0));
texture->setShininess (20);
texture->setTransparency (0);
texture->setColorMaterial(GL_NONE);
texture->setImage (image);
texture->setMinFilter (GL_LINEAR_MIPMAP_LINEAR);
texture->setMagFilter (GL_NEAREST);
texture->setEnvMode (GL_MODULATE);
texture->setEnvMap (false);
}
endEditCP (texture);
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users