Message Boards Message Boards

Project an image, geographical object, as a texture onto a flat 3D plane?

GROUPS:

Dear Community,

I would like to project an image, a geographical object (Lake.PNG) as a texture onto a flat 3D plane. Although I thoroughly checked the coordinates, and studied the documentation, I can't manage to do it. Import is fine, image is fine, the plane appears yet without the image. Could someone have a short look at it, what do I do wrong? Notebook and image attached.

Tx in advance, Best regards. Andras

Attachment

Attachments:
POSTED BY: Andras Gilicz
Answer
8 months ago

Change your vertex coordinates:

VertexTextureCoordinates -> {{0, 0}, {1, 0}, {1, 1}, {0, 1}}

Notice that it says this in the help:

The texture coordinates u, v, and w are assumed to range from 0 to 1.

POSTED BY: Sander Huisman
Answer
8 months ago

Dear Sander,

Works perfect, thank you very much, I've overseen this in the help.

regards Andras

POSTED BY: Andras Gilicz
Answer
8 months ago

Group Abstract Group Abstract