After being mired in a stock slump in recent months, DreamWorks Animation announced a stronger than expected second quarter.

Revenues at DreamWorks Animation climbed 38 percent to $218.3 million during the second quarter on the strength of the worldwide box office performance of "Kung Fu Panda 2," the company announced Tuesday.

Profits for the company also increased, rising 42 percent to $34.1 million, or $0.40 per share.

Revenues for the Glendale-based animation studio beat analysts' projections, while profits met their benchmark. A poll of analysts by Thomson Reuters anticipated earnings of 40 cents per share on revenue of $198.2 million.

Shares rose nearly 5 percent in after-hours trading.

"Kung Fu Panda 2," which was released on May 26, 2011, contributed $55.8 million of revenue in the quarter, generated by its worldwide box office performance as well as merchandising and licensing.

The animated sequel's $440 million gross at the international box office was impressive, but on a conference call with investors after the earnings announcement, DreamWorks Animation CEO Jeffrey Katzenberg described the film's $160 million take at the domestic box office as "heartbreaking."

Katzenberg said that the studio miscalculated by positioning "Kung Fu Panda 2" as family friendly counter-programing to "Hangover Part 2."

"I think we had a terrible, terrible calamity in the US and it's heartbreaking because there's no recovering from it," Katzenberg said.

But the film's sluggish stateside grosses weren't the only hot topic on Tuesday's earnings call. Katzenberg also was forced to field awkward questions about the future of the studio's distribution pact with Paramount, which is scheduled to end in 2012, and growing disillusionment with 3D, the format he has long championed.

Katzenberg said that despite reports that relations with DreamWorks' distributor have grown frosty, Paramount has done "excellent" work releasing the studio's films. Though he indicated the studio would explore an extension, he said it was too early for the companies to come to an agreement yet.

"What we are not going to do is move prematurely to try to answer a question that does not need to be answered yet, which is, 'What's next?'" Katzenberg said.

A new pact with Paramount could be tricky, however, because executives with knowledge of the talks have told TheWrap that both sides remain far apart. DreamWorks wants to lower the fee it pays and Paramount has indicated it will only renew its pact for a higher distribution rate.

Further complicating matters, Paramount recently launched a new animation division. Many analysts viewed the move as a preemptive step toward preparing for a DreamWorks-free future. On the call with investors, Katzenberg downplayed that thesis.

"I don't see this as quite the issue that everybody else is trying to make of it," Katzenberg said.

He added that Paramount's decision to get into the cartoon game "reaffirms the value of animation today."

As for 3D, Katzenberg described the results as mixed. He noted that the format continues to drive significant revenues for the studio, but fretted that many of the films released in 3D by competitors are of low quality.

"I think it's in flux and I think we're seeing a different shape and form in different places in the world today," Katzenberg said, noting that domestically the appetite for 3D has weakened, but its international expansion continues strong.

"Even at levels that exist today is one of the best returns on investment of anything DreamWorks Animation has done," he added.

One topic that Katzenberg wouldn't touch was a rumored alliance with Netflix. Reports have been flying that the studio will break a distribution pact with HBO and allow the subscription giant to stream its films, but Katzenberg remained mum.

"There's lots of gossip and rumors and things going on out there. I would prefer us to take a no comment on this today," Katzenberg said.