In this study, we address the influence of the order parameter on the three-dimensional dynamics of extremely short optical pulses in a nonlinear media made of carbon nanotubes creating a heterogeneous distribution of electrons. We obtained the effective nonlinear wave equation, which allowed us to analyze the dependence of the shape of three-dimensional ultrashort optical pulses on the relaxation rate of the order parameter, as well as on its equilibrium value. Published by AIP Publishing.