Search found 9 matches
- Tue Jul 28, 2020 12:49 am
- Forum: Advanced Help
- Topic: Texture support for PLY format
- Replies: 15
- Views: 6669
Re: Texture support for PLY format
Meshlab and assimp loaders works without any definition related to it. Is it because coordinates in the PLY file generated for right-hand coordinate system and those tools uses right-hand coordinate system by default? Some of the PLY files have "comment CoordinateSpace RIGHT_Y_UP" line which is most ...
- Fri Jul 24, 2020 3:54 pm
- Forum: Advanced Help
- Topic: Texture support for PLY format
- Replies: 15
- Views: 6669
Re: Texture support for PLY format
I think it is related to opengl driver. Setting texture matrix of the material like the code below when using opengl driver fixes the problem.
core::matrix4 textureMatrix(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
mb->Material.setTextureMatrix(0, textureMatrix);
core::matrix4 textureMatrix(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
mb->Material.setTextureMatrix(0, textureMatrix);
- Fri Jul 24, 2020 1:24 pm
- Forum: Advanced Help
- Topic: Texture support for PLY format
- Replies: 15
- Views: 6669
Re: Texture support for PLY format
Rotating texture by 180 degrees solved the problem.
Edit : Flipping the texture vertically instead of rotating.
Edit : Flipping the texture vertically instead of rotating.
- Thu Jul 23, 2020 3:43 pm
- Forum: Advanced Help
- Topic: Texture support for PLY format
- Replies: 15
- Views: 6669
- Wed Jul 22, 2020 10:46 pm
- Forum: Advanced Help
- Topic: Texture support for PLY format
- Replies: 15
- Views: 6669
Re: Texture support for PLY format
OK, fixed it in svn trunk r6133.
Thanks a lot.
Seems there is yet another ply format out there - this one using texture_u/texture_v for uv coordinates.
Somehow I never suspected parser. I thought those keywords were strictly defined. Sorry for the trouble.
Out of curiosity - do you know which ...
Thanks a lot.
Seems there is yet another ply format out there - this one using texture_u/texture_v for uv coordinates.
Somehow I never suspected parser. I thought those keywords were strictly defined. Sorry for the trouble.
Out of curiosity - do you know which ...
- Wed Jul 22, 2020 9:45 pm
- Forum: Advanced Help
- Topic: Texture support for PLY format
- Replies: 15
- Views: 6669
Re: Texture support for PLY format
The ply-model has no uv-coordinates, so they all show a single pixel in the texture (in your case accidentally black, with other textures you get other colors).
Sorry, I should have sent one of the files I am working with. I think this one includes uv coordinates : https://github.com/acyildirimer ...
Sorry, I should have sent one of the files I am working with. I think this one includes uv coordinates : https://github.com/acyildirimer ...
- Wed Jul 22, 2020 11:47 am
- Forum: Advanced Help
- Topic: Texture support for PLY format
- Replies: 15
- Views: 6669
Re: Texture support for PLY format
Sounds like your vertex-colors are set to black.
Try if doing something like this changes it: SceneManager->getMeshManipulator()->setVertexColors(model->getMesh(), irr::video::SColor(255,255,255,255));
Still the same. It is reproducible in 09.Meshviewer example if anyone interested.
File -> Open ...
Try if doing something like this changes it: SceneManager->getMeshManipulator()->setVertexColors(model->getMesh(), irr::video::SColor(255,255,255,255));
Still the same. It is reproducible in 09.Meshviewer example if anyone interested.
File -> Open ...
- Tue Jul 21, 2020 6:19 pm
- Forum: Advanced Help
- Topic: Texture support for PLY format
- Replies: 15
- Views: 6669
Re: Texture support for PLY format
I've tried to set texture manually but it is still the same.
//with light source
smgr->addLightSceneNode(0, vector3df(200, 200, 200), SColorf(1.0f, 1.0f, 1.0f), 2000, ID_IsNotPickable);
smgr->setAmbientLight(SColorf(0.3f, 0.3f, 0.3f, 1.0f));
model->setMaterialFlag(EMF_LIGHTING, true);
//without ...
//with light source
smgr->addLightSceneNode(0, vector3df(200, 200, 200), SColorf(1.0f, 1.0f, 1.0f), 2000, ID_IsNotPickable);
smgr->setAmbientLight(SColorf(0.3f, 0.3f, 0.3f, 1.0f));
model->setMaterialFlag(EMF_LIGHTING, true);
//without ...
- Tue Jul 21, 2020 3:48 pm
- Forum: Advanced Help
- Topic: Texture support for PLY format
- Replies: 15
- Views: 6669
Texture support for PLY format
I am trying to add texture support to PLY loader by copying relevant parts of the OBJ loader.
https://github.com/acyildirimer/irrlicht/blob/master/source/Irrlicht/CPLYMeshFileLoader.h
https://github.com/acyildirimer/irrlicht/blob/master/source/Irrlicht/CPLYMeshFileLoader.cpp
After adding texture ...
https://github.com/acyildirimer/irrlicht/blob/master/source/Irrlicht/CPLYMeshFileLoader.h
https://github.com/acyildirimer/irrlicht/blob/master/source/Irrlicht/CPLYMeshFileLoader.cpp
After adding texture ...
