# Goal Create a "profile", i.e. a JSON file, to be used by the script that mass converts *.glb to *.png ## Introduction This exercise only requires that you launch a small HTTP server in a console. Otherwise, everything involved is handled through the HTML page lab.html. You will interact with lab.html's 3D rendering of a glb file that is included with this project. ## Steps Open a browser or a new window of the browser (Ctrl-n in Firefox) and resize the browser to a small rectangle. You are reducing the size so as to mimic what the PNG cell in the manifest table will look like. For example, this reduced window is 521 × 432 pixels.  In a console: cd ~/work/Voron/voronstl/web python3 -m http.server 8001 You should have a console that looks like this:  It is necessary to start the web server within the "web" directory as that directory will be servers "root". Visit: http://localhost:8001/lab.html You will see a zoomed-in image:  Zoom out until the entire part fits within the window. Click the Controls bar to collapse the sub menus.  Move the object to center it in the window: Shift + left mouse button. You want to have the entire part fit within the view and be cenetered. Click Controls bar to open the sub menus. Adjust the lighintensity to a high value, if not the maximum values. This will cause the image to go lighter allowing for contrast with shadows that help discern the part.  Optional: Save the PNG for your own reference. Click "Export Profile" and save your current settings.  You now have a specification on sizing and angles which may work well for all of the other parts. Note: I took mine and applied the specifications saved above for a mass PNG creation and all the others looked very good. ### Additional Information: Here's what a JSON file looks like:
| Image | Description |
|---|---|
|
jlpoole@jp ~/work/Voron/voronstl/web $ jq . out/three_profile_20260304_102657.json
{
"provenance": "lab.html exportProfile Wed Mar 04 2026 10:26:57 GMT-0800 (Pacific Standard Time)",
"output": {
"width": 500,
"height": 315,
"pixelRatio": 1
},
"scene": {
"background": 16777215
},
"camera": {
"type": "PerspectiveCamera",
"fov": 50,
"near": 0.1,
"far": 1000,
"position": [
11.93432933230491,
11.71721921868296,
13.265804443912849
],
"up": [
0,
1,
0
]
},
"controls": {
"target": [
2.075876663103527,
-2.147814989328729,
0.7122034073683343
]
},
"renderParams": {
"wireframe": false,
"edgeAngle": 30,
"lightIntensity": 1.5
},
"lights": {
"directional": {
"position": [
5,
5,
5
],
"intensity": 1.5
},
"ambient": {
"intensity": 0.6
}
}
}
jlpoole@jp ~/work/Voron/voronstl/web $
|