I am attempting to make a model viewer, i have looked all around for a download that i can base it off, but found nothing

if anyone here has the source code to a opengl or directx model viewer (as long as it aint X file, cause that wont help me much) please reply, or if you know where to find out.

last but not least, is someone here has a X file converter can you please post the source code? I am really desperate here

thank you

- Peter