link to source from site

This commit is contained in:
Robin Appelman 2024-08-29 15:50:47 +02:00
commit 03efd888e3
3 changed files with 13 additions and 4 deletions

View file

@ -10,12 +10,14 @@ vbsp-to-gltf input.bsp output.glb
Note that this requires TF2 to be installed to get the texture and props referenced in the map. Note that this requires TF2 to be installed to get the texture and props referenced in the map.
It should be able to automatically detect the tf2 path or you can overwrite it by setting the `TF_DIR` environment variable. It should be able to automatically detect the tf2 path or you can overwrite it by setting the `TF_DIR` environment
variable.
## Model optimization ## Model optimization
The output for the converter isn't particularly optimized, it's strongly recommended to run the output through [gltfpack](https://github.com/zeux/meshoptimizer) before usage. The output for the converter isn't particularly optimized, it's strongly recommended to run the output
through [gltfpack](https://github.com/zeux/meshoptimizer) before usage.
![screenshot of koth_bagel model](readme/bagel.png) ![screenshot of koth_bagel model](readme/bagel.webp)
`koth_bagel` as viewed with the [PlayCanvas model viewer](https://playcanvas.com/viewer). `koth_bagel` as viewed with the [PlayCanvas model viewer](https://playcanvas.com/viewer).

BIN
readme/bagel.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View file

@ -18,7 +18,8 @@
For example: <a href="/gltf/cp_steel_f12.glb">/gltf/cp_steel_f12.glb</a> For example: <a href="/gltf/cp_steel_f12.glb">/gltf/cp_steel_f12.glb</a>
</p> </p>
<aside> <aside>
Note that map conversion can take 10 to 30 seconds, once a map has been converted once it is cached for subsequent requests. Note that map conversion can take 10 to 30 seconds, once a map has been converted once it is cached for subsequent
requests.
</aside> </aside>
<h2>Options</h2> <h2>Options</h2>
<p> <p>
@ -28,5 +29,11 @@
<li><code>textures=false</code>: disable textures</li> <li><code>textures=false</code>: disable textures</li>
<li><code>texture_scale=&lt;scale&gt;</code>: scale textures, lower scale for significantly smaller filesizes</li> <li><code>texture_scale=&lt;scale&gt;</code>: scale textures, lower scale for significantly smaller filesizes</li>
</ul> </ul>
<h2>Source and local usage</h2>
<p>
The source for the converter can be found at <a href="https://github.com/icewind1991/vbsp-to-gltf">https://github.com/icewind1991/vbsp-to-gltf</a>
and includes a command line version of the converter for local usage.
</p>
</body> </body>
</html> </html>