<Tr> <Th> Budget </Th> <Td> $145 million </Td> </Tr> <Tr> <Th> Box office </Th> <Td> $621.5 million </Td> </Tr> <P> How to Train Your Dragon 2 is a 2014 American 3D computer - animated fantasy action film produced by DreamWorks Animation and distributed by 20th Century Fox, loosely based on the British book series of the same name by Cressida Cowell . It is the sequel to the 2010 computer - animated film How to Train Your Dragon and the second in the trilogy . The film is written and directed by Dean DeBlois, and stars the voices of Jay Baruchel, Gerard Butler, Craig Ferguson, America Ferrera, Jonah Hill, Christopher Mintz - Plasse, T.J. Miller, and Kristen Wiig, with the addition of Cate Blanchett, Djimon Hounsou, and Kit Harington . The film takes place five years after the first film, featuring Hiccup and his friends as young adults as they meet Valka, Hiccup's long - lost mother, and Drago Bludvist, a madman who wants to conquer the world . </P> <P> DeBlois, who co-directed the first film, agreed to return to direct the second film on the condition that he would be allowed to turn it into a trilogy . He cited The Empire Strikes Back and My Neighbor Totoro as his main inspirations, with the expanded scope of The Empire Strikes Back being particularly influential . The entire voice cast from the first film returned, and Cate Blanchett and Djimon Hounsou signed on to voice Valka and Drago, respectively . DeBlois and his creative team visited Norway and Svalbard to give them ideas for the setting . Composer John Powell returned to score the film . How to Train Your Dragon 2 benefited from advances in animation technology and was DreamWorks' first film to use scalable multicore processing and the studio's new animation and lighting software . </P>

Who played in how to train your dragon