Page 1 of 1

IOS create Mesh error

PostPosted: Wed Oct 15, 2014 10:17
by hyd998877
Image
left is ios display, right is windows display
the code is:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
ITextureSource *tsrc = createTextureSource(m_device);
   scene::IMesh *wield_mesh = createExtrudedMesh(
      tsrc->getTexture("wieldhand.png"),
      m_device->getVideoDriver(),
      v3f(1.0,1.0,2.5) * v3f(40.0, 40.0, 4.0));
   if(wield_mesh != NULL)
   {
      scene::IMeshSceneNode* m_wieldnode;
      m_wieldnode = m_smgr->addMeshSceneNode(wield_mesh, NULL);
      scene::ICameraSceneNode* m_cameranode = m_smgr->addCameraSceneNode(0, v3f(100,100,-100), core::vector3df(0,0,0));
   }


Is anyone help me? Why in IOS display the black side?

Re: IOS create Mesh error

PostPosted: Wed Oct 15, 2014 18:08
by sfan5
Irrlicht on iOS probably doesn't support transparency well.
Are you using GL ES 1.0 or 2.0?

Re: IOS create Mesh error

PostPosted: Thu Oct 16, 2014 01:23
by hyd998877
sfan5 wrote:Irrlicht on iOS probably doesn't support transparency well.
Are you using GL ES 1.0 or 2.0?

I am using GL ES 2.0.
GL ES 2.0 probaly support transparency well