Commit Graph

68 Commits

Author SHA1 Message Date
d25ee476c4 Re-extracted the class docs. 2022-01-12 21:59:38 +01:00
d4b0189041 Added a mesh_data_resource_changed signal to MeshDataInstance. 2021-12-29 18:22:44 +01:00
20a8fb525f Removed the (empty) uv_unwrap method from MeshDataResource. the mesh utils module has it implemented. 2021-12-29 00:43:24 +01:00
ccce088bbd Refresh the mesh in MeshDataInstance when the assigned MeshDataResource is changed. 2021-12-29 00:35:47 +01:00
b61f6eabd6 Call emit_changed() in MeshDataResource wherever it's applicable. 2021-12-29 00:34:37 +01:00
4c8560f40d Fix compile when the props module is not present. 2021-11-23 17:14:15 +01:00
413b8c0f26 Fix build for the new 3.x branch. 2021-11-17 14:03:51 +01:00
49b594130d Removed xatlas completely, I couldn't get it to just respect charts without creating new ones. 2021-09-14 11:06:36 +02:00
5521afffa7 Move the ifdef to the beginning of the uv_unwrap method. 2021-09-14 10:19:33 +02:00
e031ed36b5 Work on uv unwrapping. 2021-09-13 18:45:20 +02:00
aace67c49c Initial seam storage and uv unwrapping setup. 2021-09-13 14:06:47 +02:00
4830687056 Fix compile for older versions of the engine than 3.x. 2021-08-29 18:56:09 +02:00
8488a033db Temporarily set MeshDataInstance's portal mode to PORTAL_MODE_GLOBAL on creation. This disables portal culling for it by default, as it turns out portal culling doesn't work with custom (and even some built in engine class) GeometryInstances yet. 2021-08-14 16:57:29 +02:00
dfd8e93965 MeshDataInstance now inherits from GeometryInstance. This way the portal culling system recognizes them on room conversion. They still don't get turned on/off properly yet. 2021-08-14 15:15:21 +02:00
b66b9c5ba9 Now MeshDataInstance inherits from VisualInstance. 2021-08-14 13:44:35 +02:00
8f9becba0e Removed get_substitute_for_room. It will not be needed. 2021-08-14 12:18:17 +02:00
d1a5bbf2a0 Added a method to MeshDataInstance that can return a substitute MeshInstance. 2021-08-13 22:56:05 +02:00
4595d4abee Fix moving MeshDataInstance even when only it's parent is moved. 2021-08-12 20:25:03 +02:00
2a2b2ae31a Reworked MeshDataInstance now it's using the VisualServer directly instead of it being inherited from MeshInstance. now it's a lot more reliable. 2021-08-10 18:37:46 +02:00
efb1d42957 Tiny improvement to mesh data intance's logic. 2021-08-10 18:07:43 +02:00
3199cbe1a5 Fix android release build. (And possibly others aswell.) 2021-07-20 23:15:48 +02:00
02c6802286 Added mesh_utils optional dependency. If present you get mesh simplification/optimization - remove doubles + remove doubles interpolate normals for now - options. 2021-07-19 18:52:00 +02:00
d42024d928 Fix a crash when clicking reimport with the current 3.x head commit. 2021-07-19 18:48:22 +02:00
780ec90655 Fix build on 3.x master. 2021-06-08 14:56:30 +02:00
679064ea4f Update the copyright texts for 2021. 2021-04-19 10:11:02 +02:00
2cb2d2e558 Reworked setup mesh in MeshDataInstance. Now it's called refresh, it's bound, and it's always callable. This should fix most of the current annoyances with the class. 2021-03-23 11:21:24 +01:00
825030746a Remove a newly added type check, as i just realized it's unnecessary. 2021-03-23 10:57:35 +01:00
e56a894b99 Fix set_array. Apparently duplicate(true) doesn't work too well in this case. 2021-03-23 10:36:00 +01:00
02d51e87d6 Improve error checking in recompute_aabb. 2021-03-23 10:35:03 +01:00
5b9617bfaa Fix compile for 4.0. 2021-02-06 11:51:02 +01:00
b852ab0e52 Fix compile for 4.0. 2020-10-06 23:17:15 +02:00
6c99ddcaa6 Mark get_aabb as const. 2020-08-16 11:54:54 +02:00
81343fa839 Now MeshDataResource also calculates, and stores it's mesh's AABB. 2020-08-16 11:33:55 +02:00
a9bab9896d Fix compile for 4.0. 2020-07-29 00:02:05 +02:00
9a83350bba Fix typo. 2020-07-28 15:53:36 +02:00
818e32cbff Small tweaks, and typos. 2020-07-28 15:53:03 +02:00
11702d5821 Proper Readme.md. 2020-07-28 15:51:08 +02:00
35ef4c2cf6 Removed single merged, and the separated bone groups import options, as I'm not yet sure whether to implement/fix them. 2020-07-27 14:26:27 +02:00
66db595720 The collada importer is now also inherited from the new base. 2020-07-26 23:28:17 +02:00
5a26317a42 Added a new import type which can separate meshes based on bones. 2020-07-26 22:53:24 +02:00
8967868163 Set the default rotation to 0, and scale to 1. 2020-07-26 14:54:28 +02:00
2c1508e616 Now the importer can handle files with multiple meshes in them. 2020-07-26 14:51:53 +02:00
515a3b250f Moved most of the code from the gltf importer to a new base class, and made it more modular. 2020-07-26 12:41:35 +02:00
85417ebee9 Improved MeshDataInstance, and PropDataMeshData will create a material in _processor_get_node_for. 2020-07-05 23:09:23 +02:00
ac6e09939d Implement PropDataMeshData's get_node_for. 2020-07-05 22:16:38 +02:00
1746de7130 Update for Prop module's Processor removal. 2020-07-05 21:55:57 +02:00
6567ebe225 Renamed PropDataMesh to PropDataMeshData, so later normal meshes can be easily added if needed. 2020-07-05 18:48:13 +02:00
172b7afd6c Implement _add_textures_into after the PropData api cleanup. 2020-07-05 15:14:25 +02:00
601cabc63f Add a prop processor for PropDataMeshInstances. Also moved PropDataMesh into this module. 2020-07-05 14:53:45 +02:00
eb3c654998 Finished up MeshDataInstance. 2020-07-05 12:18:00 +02:00