This is how the Prius' transmission works (at least to the best of my understanding). A large set of planetary gears with two inputs for variable outputs. His is way more complex... Yes there is friction. It's great, but not "perfect".
__________________
|