Commit Graph

43 Commits

Author SHA1 Message Date
4eb6cf82de Initial cleanup and logic update for Prop2DInstance, and Prop2DInstanceMerger. 2022-02-25 23:50:40 +01:00
38a3678422 Moved the prop convert button to the canvas editor. Also changed it's style. 2022-02-25 22:43:34 +01:00
3c9ae1a391 Updated the serialization logic in all of the PropDataEntries. 2022-02-25 13:54:14 +01:00
8c4540a2a6 Update Prop2DDataLight. 2022-02-25 10:38:48 +01:00
69b1015221 Added Prop2DDataSprite to the build. 2022-02-25 09:20:48 +01:00
7a0be14d51 Updated the virtual method bindings in PropDataEntry. 2022-02-25 09:14:57 +01:00
9ad81dd1a9 Added PropDataSprite. 2022-02-24 23:25:52 +01:00
4b876aad7b Improved the prop serialization api. And added Node2D and CanvasItem serialization to DataEntry. 2022-02-24 23:25:39 +01:00
ce69529ceb Turn off lights for the TiledWall. 2022-02-23 15:36:34 +01:00
1c3c556d98 Removed the test light code. 2022-02-23 15:27:16 +01:00
94341db45e Added a property for the mesh transform. Maybe later I'll make a ui that helps setting it up as isometric. 2022-02-23 15:24:19 +01:00
35c0e33df2 Added a mesh transform property to TiledWall2D. It's not bound yet, as I'm thinking about how to do it. It can be used to create isometric meshes. Also reworked editor click selection, now that the meshes are not just the same size as the rect. 2022-02-23 13:05:58 +01:00
06cd0a9a9e Now tiled wall is editable in the editor with the rect selection thing. 2022-02-23 10:04:52 +01:00
11ead96592 Re-implement material support in TiledWall2D. 2022-02-23 09:46:07 +01:00
40f65c843f Added pixels_per_nit property to the prop mesher. Uses the value set in the Prop2DCache singleton by default. Made the light calculation scale with it, so now light are defined in pixels aswell. 2022-02-23 09:38:07 +01:00
37b2ab5b5e Added default_pixels_per_unit property to the Prop2DCache singleton. 2022-02-23 09:36:45 +01:00
5e12fc6525 Make 2d tiled walls pixel perfect, just like the engine expects. 2022-02-23 08:59:52 +01:00
b9b151414a Also remove multiple material support from TiledWall2D. 2022-02-23 08:39:01 +01:00
4b8edd9567 More cleanups. 2022-02-23 08:33:23 +01:00
ef202ae590 Cleanups. 2022-02-23 08:28:12 +01:00
030eee10f3 Removed multiple materials from the PropCache singleton. 2022-02-23 08:23:16 +01:00
cca967333d Removed multiple material support from the MaterialCache. Multiple material support was built for lods, and it's not needed here. 2022-02-23 02:34:15 +01:00
3cde50a5c5 Cleanups. 2022-02-23 01:56:12 +01:00
9cd631a36c More cleanups to the mesher. 2022-02-23 01:52:18 +01:00
9ae6cd5a0b Remvoe some of the normal and uv2 related getters and setters from the mesher. 2022-02-23 01:44:54 +01:00
10f58baf27 Flip the generated uvs. 2022-02-23 01:19:02 +01:00
b02e73d17a Test setup for baked lights. 2022-02-23 00:22:25 +01:00
8eaa94f0dc Look for terraman 2d instead of just terraman. 2022-02-23 00:15:25 +01:00
875f338a88 Notes. 2022-02-23 00:08:29 +01:00
56a786800b Remove normals and uv2 from the final mesh in Prop2DMesher's build_mesh. I haven't removed them internally yet. 2022-02-23 00:05:16 +01:00
3cb79bfffb Initial working prototype for TiledWall2D. 2022-02-22 23:38:45 +01:00
da8922e123 Started reworking TiledWall. 2022-02-22 21:41:09 +01:00
828863d638 Added a Transform2D property to PropDataEntry, and also changed the processor api to use Transform2Ds. I did not yet remove the 3D transforms, as it would break too much code right now. 2022-02-22 19:05:10 +01:00
bb6f76dbf0 Removed job steps, as 2d will not need lods. 2022-02-22 14:27:39 +01:00
1b5d2102bc Fix a 2D2D. 2022-02-21 22:13:52 +01:00
104549adcc Add 2D postfix to the classes. 2022-02-21 22:12:25 +01:00
79366df39e Update the include guards. 2022-02-21 22:07:03 +01:00
9c076cb694 Add 2d to the file names. 2022-02-21 22:02:46 +01:00
b95db8d786 Started over. Added everythong from the props module again. 2022-02-21 17:09:00 +01:00
6f802fcf68 Postfix every class with 2D. 2021-11-24 14:00:16 +01:00
ee35479d38 Postfixed every file with 2d. And changed include guards. 2021-11-23 18:19:01 +01:00
4ba39e4438 Fix compile. 2021-11-23 17:11:38 +01:00
0bb9bb898c Initial commit. 2021-11-23 16:53:47 +01:00