The Buddha teaches that desire is the root of all suffering. Abandon the desire and you abandon the suffering.
Envy is resenting another person for having what you think you lack, but the resentment comes from you, not from them. They are doing nothing wrong.
You feel resentment because you feel bad about not having something, not them having it. After all, if you both had it then you wouldn't feel bad, would you? It's a lack of self-esteem and a glut of self-hatred that you're really fighting. Resentment is just a projection of that feeling outwards instead of inwards. It's much easier to dislike them because then you don't have to confront what it is about yourself that you dislike.
It's ok to see someone and want what they have, as long as you can let that feeling go. Acknowledge it, embrace it, and then release it. Acknowledge that any negativity comes from how you feel about yourself, not them. Acknowledge this your self-hatred is a problem you can solve, and then do something to solve it.
Oh, buddy, that's not something you should be asking an NSFW messageboard about. Porn isn't going to make that any better if you're struggling with envy and resentment. Unless you're a genetic 1%er, it'll probably make it worse. My advice? Find a good therapist. That's the most straightforward path to helping yourself.