Mr. Gresham was involved at every stage , from the choice of director -LRB- Andrew Adamson of '' Shrek '' -RRB- to casting decisions to trekking to sets in New Zealand -LRB- four times -RRB- and the Czech Republic -LRB- once -RRB- .