PDA

View Full Version : What is the efficient way to map four images to one plane?



hyppoo
05-31-2017, 08:12 PM
version: opengl es 3.0

I have four cameras, and need to map the four images from cameras with textures to the area like this 2378,so what is the most efficient way to this purpose?

GClements
06-01-2017, 05:40 AM
Render 8 triangles (2 for each trapezoid).

But you don't state how they are to be mapped. With the fixed-function pipeline, you're limited to a projective mapping. If you want a bilinear mapping, you'll need to use a fragment shader.

Silence
06-02-2017, 12:57 AM
This looks a lot like this (https://www.opengl.org/discussion_boards/showthread.php/199630-How-to-map-4-images-to-screen?p=1287174#post1287174).