It was there on the water that Meenaghan began relaying the details of the surfing career of the 22-year-old Santa Cruz surfing legend who honed his craft under the tutelage of Rick “Frosty” Hesson.

“I thought, ‘What a beautiful story,’” Hooper said, who along with Meenaghan is co-producing “Of Men and Mavericks,” a movie depicting Moriarity’s rise to fame by riding the notorious Mavericks surf just north of Half Moon Bay at age 16 and his relationship with mentor Hesson. Moriarity died in 2001 during a diving accident in the Indian Ocean.

Production for the film began Oct. 10 with scenes being shot in Santa Cruz, Half Moon Bay and San Mateo, and it is slated to be released on Oct. 26, 2012. Gerard Butler has been cast as Hesson and Jonny Weston as Moriarity.

Meenaghan first met Moriarity in a Santa Cruz O’Neil surf shop while shopping for a wetsuit. Staring at a blown-up cover of Surfer Magazine that pictured a man being engulfed by a massive Mavericks wave, Meenaghan wondered how anyone could survive such a wipeout. As it turned out, the daredevil on the magazine cover was the 16-year-old Moriarity helping him with the wetsuit.

“He really tracked Jay and his rise to fame … the local boy that made good,” Hooper said. “He was crushed when he heard the news [of his accident].”

After Moriarity’s death, Hooper and Meenaghan contacted Moriarity’s widow, Kim, and Hesson to present their idea of making the motion picture.

Other filmmakers wanting to reproduce Moriarity’s life onscreen had previously approached Hesson. But upon hearing that the producers would do a “Hollywood version,” Hesson sent them on their way.