Hi Pascal,
the code looks fine can you try it with a different texture? Perhaps
your jpg file is corrupted. Actually this error can't occur for 2d
textures very strange ...
Andreas
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
--
Andreas Zieringer [EMAIL PROTECTED]
Fraunhofer IGD - A4 phone +49 (0)6151 155 289
Fraunhoferstr. 5 fax +49 (0)6151 155 196
D-64283 Darmstadt www.igd.fhg.de/www/igd-a4
-------------------------------------------------------
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