The best place in Hampi to witness Sunrise is " Matunga Hills". Make sure you have this in your list even you miss other places.
Sunset can be best experienced in Hemakoota Hills. Anjanadri is good too.
Hampi is an offbeat travel destination and just perfect for those are fascinated about heritage sites. Do visit the famous Virupaksha Temple for its magnificent architecture. Head to Matanga Hill to get mesmerized by one of the best sunrise and sunset view in Hampi. You also enjoy sunrise and sunset scenes from the rooftop of Veerbhadra Temple.