I took it as the moment it cuts away from Luke crying to Death Star II action is when Anakin fades away. And Luke is only burning the empty suit in the end. But you still have to fade away before you become a ghost.
Qui Gon’s didn’t, he was cremated on an open-face flame, and he supposedly discovered the ghost power. They play pretty fast an loose with this stuff.