Garry's Mod

Garry's Mod

[E2] Mesh Core
正在显示第 1 - 10 项,共 19 项条目
< 1  2 >
更新于:2017 年 3 月 26 日 上午 8:16

Small Patch here:

* Online materials now support alpha.
* Online material loading is now queued, should avoid some issues.
* Added smoothing for online materials (forced on for now, using anisotropic)
* The flashlight effect now works on meshes.
* Fixed a problem with UVs.
* Small improvements regarding the mesh_anchor entity.

更新于:2017 年 3 月 23 日 上午 9:08

Couple of polishing changes:

+ Meshes now support multiple textures ¹
+ Added meshSetExtraMTL to reference an additional ² mtl file
+ Added meshcore_cache_clearmeshes to clear cached (parsed) meshes

* meshSetURLTexture() has been removed, it is merged with meshSetMaterial()


¹ There is currently a hard limit of 10 textures per mesh, they HAVE to be referenced in a mtl file, see (²)

² MTL files are now loaded automatically using the 'mtllib' command in the OBJ file, there can be multiple.
Currently, the MTL parser will only use the 'map_Kd' command and associate it with the previous 'newmtl' command, the texture can be either a URL or a material path from the game (ie. models/props_lab/servers_sheet).


Additional note: the new 'Multi Mesh() Structure' I use can support multiple objects in the same OBJ file, If this shows potential, I will add E2 functions to make them move independently from eachother. (maybe)

更新于:2017 年 3 月 19 日 上午 10:44

Small changes:

* Mesh was not rotated properly, it now is.
* Added formatting support for Dropbox links.

更新于:2017 年 3 月 19 日 上午 8:22

Rework Update:

* Rewrote the core OBJ loading. By the power of coroutines, it now parses the mesh on mutliple frames. (=less client lag when loading)
* Rewrote the URLMaterial loading, it actually works now, wow.

- Removed a couple of functions untill I reimplement them.

+ Added 'meshcore_maxmesh', maximum number of meshes per E2, defaults to 10.

更新于:2015 年 6 月 18 日 上午 6:03

Derped last one.

更新于:2015 年 6 月 14 日 下午 12:01

Fixed UV mapping (again).

更新于:2015 年 4 月 7 日 上午 11:36

Fixed a 'print' placed in a really bad spot.
Fixed an error which disabled meshs without texture vertices.
Tested partial UV mapping "working".

更新于:2015 年 3 月 13 日 下午 3:57

Another attempt at fixing the UVs...

I am for some reason no longer able to dynamicaly modify the addon and test it at the same time so this is necessary.

更新于:2015 年 2 月 22 日 上午 8:11

Attempt to fix UV mapping from downloaded .obj files.

更新于:2015 年 2 月 18 日 下午 2:02

Attempt to fix a reported shadow glitch (Huge shadows would cover parts of the map sometimes). Haven't experienced them so I can't tell if it's actually fixed or not.