Of course it would hurt to be ignored by your own father and being replaced by someone else's children only adds salt to the wound.
You can't make someone want to have a relationship with you, but don't blame yourself for this unfortunate situation. This is on him! Again, his loss!