Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Mapping texture coordinates for ofMesh (ply file)?

$
0
0

@juss wrote:

Hi!

I have learned meshes, textures and shaders by using ofSpherePrimitive. Now I would like to replace the sphere with my 3d model (ply file, uploaded with mesh.load).

This part of code confuses me:

    float w = fbo2.getWidth(); // setting texture to match FBO2 size
    float h = fbo2.getHeight();
    sphere.mapTexCoords(0, h, w, 0);
   // mesh.mapTexCoords(0, h, w, 0);

mapTexCoords does not work with mesh so I have been trying to find a way to replace it - without success so far. Any advice on this? Thanks a lot!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles