I'm currently on a mission trying to calculate option prices using the rough Heston model. I've found that this is usually done using the characteristic function of the model, but I must admit that I don't really understand which formulas that are applicable, and how they're derived. I feel quite comfortable with the math being a major in applied mathematics, but I'm having trouble finding nice references.
For example, in the paper "Optimal Fourier inversion in semi-analytical option pricing" they say that (where $\varphi$ is the characteristic function of the model):
"Knowing the characteristic function allows us to express the forward price of a European call with strike $K$ and maturity $\tau$ very similarly to the Black-Scholes price as $$ C(S,K,\tau) = F\Pi_1 - K\Pi_2, $$ with $F$ being the forward value of the underlying and $$ \Pi_1 := \frac{1}{2} + \frac{1}{\pi}\int_0^{\infty}Re\left(\frac{e^{-iuk}\varphi(u-i)}{iu\varphi(-i)}du\right). $$ The logarithm of the strike is denoted as $k=\ln(K)$. [...]. Moreover we have $$ \Pi_2 := \frac{1}{2} + \frac{1}{\pi}\int_0^{\infty}Re\left(\frac{e^{-iuk}\varphi(u)}{iu}du\right)." $$
Is this formula applicable to all financial models? How is this formula derived? What are some good resources for learning more about this, in a structured and "mathematical way"?
Many thanks