This disclosure enables direct 3D printing of preceramic polymers, which can be converted to fully dense ceramics. Some variations provide a preceramic resin formulation comprising a molecule with two or more C.dbd.X double bonds or C.ident.X triple bonds, wherein X is selected from C, S, N, or O, and wherein the molecule further comprises at least one non-carbon atom selected from Si, B, Al, Ti, Zn, P, Ge, S, N, or O; a photoinitiator; a free-radical inhibitor; and a 3D-printing resolution agent. The disclosed preceramic resin formulations can be 3D-printed using stereolithography into objects with complex shape. The polymeric objects may be directly converted to fully dense ceramics with properties that approach the theoretical maximum strength of the base materials. Low-cost structures are obtained that are lightweight, strong, and stiff, but stable in the presence of a high-temperature oxidizing environment.