Check out the novels by Stephen R. Donaldson. Specifically, his Gap Cycle.
It gets bleak and brutal from page one and stays that way right until the end, while some really awesome stuff happens along the way that elevates it in a way I can't do justice in describing.
The following is from Wikipedia (no spoilers):
"The Gap Cycle is a science fiction story, told in a series of 5 books, written by Stephen Donaldson
1. The Gap into Conflict: The Real Story, Bantam/Spectra, 1991
2. The Gap into Vision: Forbidden Knowledge, Bantam/Spectra, 1991
3. The Gap into Power: A Dark and Hungry God Arises, Bantam/Spectra, 1993
4. The Gap into Madness: Chaos and Order, Bantam/Spectra, 1994
5. The Gap into Ruin: This Day All Gods Die, Bantam/Spectra, 1996
As explained in the author's afterword in The Real Story, this series started life as a novella in which characters representing villain, victim, and rescuer would switch roles during the course of the narrative. He found the result unsatisfying, and the book was shelved until he had the idea of setting a retelling of Wagner's Ring Cycle in the same universe, and casting the characters from The Real Story in roles from Wagner's opera. The Real Story novella became Volume 1, and the rest of the series explores the Wagner theme.
The series is not the Ring Cycle explicitly retold, but more an interpretation set in a future universe.
Like "The Chronicles of Thomas Covenant, the Unbeliever", the author's other major work, the story is very adult and can be very dark and bleak at times. There are some very nasty people in Donaldson's worlds."
Well worth the read if you can find it!