mirror of
https://codeberg.org/icewind/vbsp-to-gltf.git
synced 2026-06-03 18:24:07 +02:00
link to source from site
This commit is contained in:
parent
6397a28ca9
commit
03efd888e3
3 changed files with 13 additions and 4 deletions
|
|
@ -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.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
`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
BIN
readme/bagel.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
|
|
@ -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=<scale></code>: scale textures, lower scale for significantly smaller filesizes</li>
|
<li><code>texture_scale=<scale></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>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue