Both with source. The md3 viewer is d3d, not open gl but for me I doubt that will make much of a difference.
http://www.spheregames.com/index.php?p= ... /tutorials
Also I ran across a "dead" open source .mdl viewer, but the CVS still is on archive.org:
http://web.archive.org/web/200501241127 ... at/PakRat/