If you need a P2D file to use as a decal in SolidWorks, you can generate it directly using the software's native tools: and navigate to the DisplayManager . Select Add Decal and browse for your original PNG file. Adjust the decal settings as needed.

Open your CAD software (SolidWorks, AutoCAD).

Download the specific P2D format extension or script provided by your development platform's community.

Here is how to convert a heightmap PNG to P2D using a free method.