they invented something called photovoltaic cells, they use sun light to turn water into hydrogen, look up a company called honda.
ok I got in trouble for bring math into another discussion, but here is a back of the envelope estimate...
say you use 40 hp to drive for an hour a day.
40 hp = about 30 kw 30 kw hrs...
solar 12 hr of production,
appx 1 kw per M^2 of sun energy hits the ground.
a good tracking solar panel is 25% efficient. Fixed Panel... lets say 50% of that.
12.5% efficient. A good hydroysis is 50% efficient... maybe 80% in a few years. call it 80%.
.8 x 12.5% = call it 10 %
30KW hrs / 12 hrs = 2.5 kw. 25 kw solar needed to make up for efficiencies.
current US price $8 per Watt.... $6 after tax incentives.
6 x 25,000 = $150,000 for the solar collector... how much for the car?