lewa-j / Unity-Source-Tools

Plugin to import resources from the Source engine in Unity3D.
GNU General Public License v2.0
109 stars 22 forks source link

Without Batching Doesn't Work #42

Closed Fronkln closed 4 years ago

Fronkln commented 4 years ago

Normally gives index outside the bounds of the array, so i added this line in the circle

image

That fixed the error, but now no mesh is built.

Fronkln commented 4 years ago

The issue is probably related to this for loop right here image

No errors are thrown, materials seem to get assigned to the meshes, but the built mesh is 0 vertices.

Fronkln commented 4 years ago

GenerateFaceObject calls BuildFace which returns a null surface.

Fronkln commented 4 years ago

Copy pasting GenerateFaceObject code from 2015 fixed it, commit later?

lewa-j commented 4 years ago

WithoutBatching mode was once used for debuging and never ment to be useful. Can be deleted altogether.

Fronkln commented 4 years ago

The code that once made it work is more useful than you think, i recently wrote code that made water planes not get batched so that if i ever figure out how to load nodraw on maps above version 18 it would be possible to have interactable water