It was said in Ancient Greece that there was a contest between two painters, Zeuxis and Parrhasius. Zeuxis painted grapes that were so realistic they fooled birds into trying to eat them. However Parrhasius won the contest as he even fooled the other artist; he had painted a pair of curtains and Zeuxis thought that his painting lay behind the curtains.
I don't know if the story is real, but regardless it demonstrates that trompe-l’oeil has been a part of art for centuries.
Painting of a false dome, Andrea Pozzo, 1685, Chiesa di Sant'Ignazio, Rome, Italy
photo- © Jean-Christophe BENOIST/ public domain, via Wikimedia Commons
Painter Andrea Pozzo cleverly created a false dome within the church of Sant'Ignazio in Rome. The illusion works perfectly if the viewer is standing in a certain area, they would look up and see a "dome" which is in fact a flat surface with a fake dome painted in. It is clever as no one would be expecting this type of trompe-l’oeil in a church. However if the viewer is standing in another area the trick doesn't work.
I actually did get tricked with a Duane Hanson sculpture. Hanson was a late 20th century American “hyper-realist” who sculpted people and used real objects in his sculptures, in that exhibit it was a mom pushing a stroller. I didn’t really look at “her” I thought it was a mom pushing a stroller until the person next to me got so close they set off an alarm and then everyone turned to stare and I was truly startled that they weren’t real. They had her set up as if she was a spectator looking at a painting, which added to the illusion.