I know you have said that you have talked to him but you have to accept that only honesty brings change. You can't have what you can't have but you should try as many times as possible to change this situation. When you talk to him you have to clarify the relationship you want and the pattern that results from your talks. Sometimes people don't realize how they are behaving or the patterns that this behavior takes. You have to describe the pattern that his behavior towards you changes. Find a quiet time to address all of this.
You can't change someone else. If there is a reason ask for ways to get to the bottom of this. The option of choice is family therapy. You can then vent and he can do. Of course this depends on his participation. He has to want this relationship. You can try on your own but that may not change things. Sometimes there is a time or an approach that makes a difference. Even trying a written method can make a difference - email or even a card.
Don't give up
If this has been helpful press accept