How to Set Diffuse and Specular Lighting for PowerPoint 3D Models
Question details
The user wants to know how to adjust diffuse, specular, and other lighting properties for 3D models (like GLB files) embedded in PowerPoint presentations using OOXML.

- Product
- Microsoft PowerPoint
- Device & OS
- not provided
- Scenario
- Customizing the visual rendering and lighting of embedded 3D models in a presentation using backend XML editing.
- Observed behavior
- The user needs technical documentation or methods to manipulate OOXML attributes (such as ambientLight, ptLight, RGB, and xyz coordinates) for 3D elements.
Before modifying backend XML data, ensure you make a backup copy of your presentation file to prevent accidental data loss.
Modify OOXML for 3D Model Lighting
Directly edit the OOXML schema to configure ambient and point lighting for your embedded 3D models.
PowerPoint 3D lighting is controlled through OOXML elements such as ambientLight and ptLight. You must define the supported diffuse, specular, RGB, and position attributes within the slide's XML file.
Change your .pptx file extension to .zip and extract the contents to a local folder on your computer.
Navigate to the ppt/slides/ folder and open the XML file of the slide containing your 3D model using a code or text editor.
Locate the 3D model tag and add or modify the <a3d:ambientLight> or <a3d:ptLight> elements. Define the RGB color components and use the x, y, and z coordinate scale as defined by the OOXML 3D model schema.
Save the modified XML file, re-zip the entire folder structure, and change the file extension back to .pptx.

Seek Help in the Microsoft Technical Community
Ask experts in the Microsoft tech community for complex 3D schema configurations.
Create Stunning Presentations with WPS Office
If editing OOXML files manually is too complicated, consider using WPS Presentation. It offers a highly compatible and user-friendly environment for creating dynamic presentations without the need to write backend code.
- 1. Download the Software: Visit the official WPS Office website to download the free version for your operating system.
- 2. Install WPS Office: Run the installer and follow the on-screen instructions to set up WPS Office on your device.
- 3. Open Your Presentation: Launch WPS Presentation and open your .pptx file to enjoy native compatibility and easy formatting options.

Frequently Asked Questions
What are RGB values in OOXML 3D models?
In OOXML, RGB values represent the color components for lighting elements. They determine the hue and intensity of ambient or point lights applied to the 3D model.
Why can't I post my OOXML question in the PowerPoint community?
To post questions in the PowerPoint technical community, you must sign in with a valid Microsoft account and ensure your community profile is fully created. Without a completed profile, posting privileges may be restricted.
What do the x, y, and z values control in PowerPoint 3D lighting?
The x, y, and z values define the spatial coordinates and direction of the light source (such as a point light) based on the coordinate scale set by the OOXML 3D model schema.




