Derpius / VisTrace

Garry's Mod binary module for tracing meshes at high speed on the CPU (and much more)
https://derpius.github.io/VisTrace
MIT License
27 stars 1 forks source link

[feature] Implement my BSP parser #14

Closed Derpius closed 2 years ago

Derpius commented 2 years ago

Describe the solution you'd like Replace the existing call to traceline with my BSP parser

Additional context As it currently stands, the parser only works correctly when compiled with GCC Compiling with MSVC (which is needed for source ABI compatibility) causes normal mapping to break

Derpius commented 2 years ago

Almost done, just need to swap loading texdata paths as textures to materials (why are they called texdatas), and fix normals etc

Derpius commented 2 years ago

Normals and materials fixed, however displacements still have severe artefacts

Derpius commented 2 years ago

Also need to add a hitworld bool to accel building and rebuilding

Derpius commented 2 years ago

Displacement normals fixed, still need to add hitworld bool and transform tangents and binormals along with normals

Derpius commented 2 years ago

TBN finished but now i have another issue of crashing on loading a more complex map like something from TF2

Derpius commented 2 years ago

Fixed, issue was with my FreeAll function not setting pointers to null
Only thing left to do is add a hit world parameter back into the build function

Derpius commented 2 years ago

Displacement texture blending added

Derpius commented 2 years ago

Finalised in b23928b2fee5175f12226c32f101f7545f186150