![]() ![]() Receiver = new AndroidEventReceiver(context) Įverything is the same as the original code except the removed comments and the position of the nodes and I'm also sure that files needed in the code are on the correct directory. NodeSydney->setMaterialTexture(0,texture) Texture=driver->getTexture("/sdcard/Irrlicht/sydney.bmp") Stringc sydneyTextureFilename = "/Irrlicht/sydney.bmp" NodeSydney->setMD2Animation(scene::EMAT_STAND) NodeSydney->setMaterialFlag(EMF_LIGHTING, false) NodeSydney = smgr->addAnimatedMeshSceneNode(mesh) _android_log_print(ANDROID_LOG_INFO, "Irrlicht", "cannot getMesh") Mesh=smgr->getMesh("/sdcard/Irrlicht/sydney.md2") but i try to run it with opengl-es 2.0,it does not work. i try to run example No.8 with opengl-es 1.0 on Android 4.0,it looks well. Stringc sydneyFilename = "/Irrlicht/sydney.md2" hi,i have downloaded the Irrlicht Engine version 1.8.0-alpha form SVN/branches/ogl-es. Render code is as below: smgr = device->getSceneManager() ĭevice->getFileSystem()->changeWorkingDirectoryTo(myDir.c_str()) Loading mesh is all right, but what confuses me is that the texture cannot be shown correctly. Last month I have been working on the driver based on openGL es 1.0, which worked well (I use 1.0 because when I tried to run the example based on driver es 2.0 the result turned out to be very strange). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |