Keep in mind that filmmaking - especially action/adventure films, which includes sci-fi - has nothing to do with reality. After all, for the most part, reality is boring.
It's called an EMP - electro-magnetic pulse. In addition to X-rays and gamma radiation a huge amount of electrical energy is released. In a microsecond more electrical energy is released than all of the electrical power used by the entire planet in a decade. During a nuclear war atomic weapons would be fused for high altitude detonation in an effort to literally short-circuit the electrical capabilities of the enemy; it would take out electrical systems of all types, including phones, electrical power and everything associated with them, such as computers. This would be the purpose if used in space, to cripple the enemy vessels by overloading the electrical circuitry. (BTW, this is what a huge solar flare would do to us.) To damage a ship as Escher describes the explosion would have to be relatively close. The radiation poisoning of the crew would be a much greater possibility.
Star Wars, Star Trek and all of the others use "scientific principles" that do not actually exist, such as "warp drives," "photon torpedoes," etc. or are at best based upon unproven scientific theories. At our current level of technology space battles would actually be fairly slow, more like submarine warfare than anything else.
You're creating entertainment, not reality, so you can go as far as your imagination takes you when it comes to space battles.
Did you know that if you detonate a large nuclear bomb in space, the explosion won't really hurt the ship (no atmosphere to carry the pressure wave), but the blast of x-rays will cause massive kinetic waves in the hull of the ship that will go all the way around, smash into each other, and rip the hull apart?
It's called an EMP - electro-magnetic pulse. In addition to X-rays and gamma radiation a huge amount of electrical energy is released. In a microsecond more electrical energy is released than all of the electrical power used by the entire planet in a decade. During a nuclear war atomic weapons would be fused for high altitude detonation in an effort to literally short-circuit the electrical capabilities of the enemy; it would take out electrical systems of all types, including phones, electrical power and everything associated with them, such as computers. This would be the purpose if used in space, to cripple the enemy vessels by overloading the electrical circuitry. (BTW, this is what a huge solar flare would do to us.) To damage a ship as Escher describes the explosion would have to be relatively close. The radiation poisoning of the crew would be a much greater possibility.
Star Wars, Star Trek and all of the others use "scientific principles" that do not actually exist, such as "warp drives," "photon torpedoes," etc. or are at best based upon unproven scientific theories. At our current level of technology space battles would actually be fairly slow, more like submarine warfare than anything else.
You're creating entertainment, not reality, so you can go as far as your imagination takes you when it comes to space battles.