i have this too:
irr::scene::IMesh* meshT = smgr->getMeshManipulator()->createMeshWith2TCoords(mesh->getMesh(0));
irr::video::S3DVertex2TCoords* verts2t = (irr::video::S3DVertex2TCoords*)meshT->getMeshBuffer(0)->getVertices();
having verts2t for each vertex, what do i do with them to extract a ...
Search found 7 matches
- Sat Aug 18, 2012 8:40 pm
- Forum: Beginners Help
- Topic: projecting pieces of texture
- Replies: 3
- Views: 379
- Sat Aug 18, 2012 2:59 pm
- Forum: Beginners Help
- Topic: projecting pieces of texture
- Replies: 3
- Views: 379
projecting pieces of texture
Please help.
I have a simple question - having a triangulated mesh, and knowing the position of 3 vertices (a triangle), how do I project the same texture whitin the 3 vertices fo the other 3 vertices defined by me?
irr::scene::IAnimatedMesh* mesh = smgr->getMesh(".../newWallY.obj"); //the plane ...
I have a simple question - having a triangulated mesh, and knowing the position of 3 vertices (a triangle), how do I project the same texture whitin the 3 vertices fo the other 3 vertices defined by me?
irr::scene::IAnimatedMesh* mesh = smgr->getMesh(".../newWallY.obj"); //the plane ...
- Tue Aug 14, 2012 8:53 am
- Forum: Beginners Help
- Topic: how do i get the vertex color of an imported .obj
- Replies: 10
- Views: 1421
Re: how do i get the vertex color of an imported .obj
it's just a plane exported in maya, with a texture file, just red. 4 vertices, 6 indexes.
- Tue Aug 14, 2012 12:14 am
- Forum: Beginners Help
- Topic: how do i get the vertex color of an imported .obj
- Replies: 10
- Views: 1421
Re: how do i get the vertex color of an imported .obj
Thanks CuteAlien, however, myCol is returning all white for all vertices.
- Mon Aug 13, 2012 8:26 pm
- Forum: Beginners Help
- Topic: how do i get the vertex color of an imported .obj
- Replies: 10
- Views: 1421
Re: how do i get the vertex color of an imported .obj
I'm really new at this and stuck at this point, could you please show me an example, how do i get access to the mesh vertex color?
- Mon Aug 13, 2012 11:39 am
- Forum: Beginners Help
- Topic: how do i get the vertex color of an imported .obj
- Replies: 10
- Views: 1421
how do i get the vertex color of an imported .obj
Hi,
i'm having problems finding out the color of the vertices in my mesh, is that info in the MeshBuffer?
irr::scene::IMeshBuffer* mb=mesh->getMeshBuffer(i);
video::S3DVertex* vertices = (video::S3DVertex*)mb->getVertices();
the video::S3DVertex* vertices have the vertices right position ...
i'm having problems finding out the color of the vertices in my mesh, is that info in the MeshBuffer?
irr::scene::IMeshBuffer* mb=mesh->getMeshBuffer(i);
video::S3DVertex* vertices = (video::S3DVertex*)mb->getVertices();
the video::S3DVertex* vertices have the vertices right position ...
- Sun Aug 12, 2012 4:22 pm
- Forum: Beginners Help
- Topic: Problem with texture mapping
- Replies: 0
- Views: 630
Problem with texture mapping
I'm currently working on a method that can be used to find de exact reflection point in a spheric mirror, but i'm having some problems:
-the method is working fine, with the position of 4 vertices (a square), it calculates and draws 4 points in the sphere.
-but now, when i try to get the color ...
-the method is working fine, with the position of 4 vertices (a square), it calculates and draws 4 points in the sphere.
-but now, when i try to get the color ...