Robert Beckebans
e243072f56
Merge remote-tracking branch 'origin/679-gltf-map-support2' into 679-gltf-map-support2
2022-08-15 11:16:02 +02:00
HarrievG
457e0e143b
- Fixed missing surfaces in multi surface/texture gltf models.
2022-08-14 20:02:06 +02:00
HarrievG
486315c7e7
- removed global gltfParser so it cannot be used as an singleton anymore.
...
- fixed destruction and cleanup of gltfData and gltfParser
- gltfParser always fixes up skeletonID's for skins that do not have it set.
- fixed gltfData::GetAnimation to also check for duplicates taking multple targets for the same animation into account.
- several boneless animation fixes
[!] [ BUG WARNING ] Be aware -> for some reason models/meshes that use multple textures are not drawn correctly; ATM onlt single texure users are correct.
2022-08-14 13:43:12 +02:00
HarrievG
ecaf297ef6
Allow for multple GLTF/GLB to be loaded at the same time.
2022-08-07 15:56:46 +02:00
HarrievG
d0ff0a7f64
Dont load GLTF data when loading bglb/bgltf
2022-08-07 15:05:14 +02:00
HarrievG
8e889c1804
Fixed non Simdpath for idRenderModelGLTF::UpdateSurface
2022-08-06 20:43:25 +02:00
HarrievG
2ef1fe3ce2
idRenderModelGLTF::NearestJoint
2022-08-04 01:40:59 +02:00
HarrievG
b41411f8d0
Fixed axis conversion for gltfModels with animated translations
2022-08-03 21:44:42 +02:00
HarrievG
7e7ee22f3b
AAS support for MapPolygonMehses
2022-08-03 02:14:06 +02:00
HarrievG
b6bccf19d0
Fixed gltf animation bounds.
2022-08-01 22:05:13 +02:00
HarrievG
c5f8af3b66
corrected sw skinning bounds
2022-07-31 21:37:42 +02:00
HarrievG
e56f696c9c
- Skinned / animated GLTF models
2022-07-31 12:13:07 +02:00
HarrievG
edf657f50d
- Initial GLTF Animation Implementation. For now only supports boneless TRS animations without scale.
...
![only works with r_UseGpuSkinning 0]!
- Writes bmd5anim for each animation. its not perfect yet but, rot + trans looks good.
- Model tag supports gltf Animations. Indexed the same way as meshes.
- Enabled weights and bone index in ConvertFromMeshGltf
2022-07-10 21:09:25 +02:00
Robert Beckebans
04606dc3cf
Dmap: always write a .cm file, especially when overwriting from a mod dir
2022-06-26 15:28:15 +02:00
Robert Beckebans
ffd18bf9d4
Fixed duplication of glTF models
2022-06-26 13:24:55 +02:00
Robert Beckebans
5446ae31e4
Fixed binaryzation of .glb models that don't have 'models' as main scene
2022-06-26 12:23:21 +02:00
HarrievG
833f112f4e
- gltfMesh support for mesh tag in idDeclModelDef
2022-06-25 15:05:59 +02:00
HarrievG
8030a5b1de
- idRenderModelGLTF now set dynamicModel_t to DM_STATIC when no anims are found, or to DM_CONTINUOUS
...
- idRenderModelGLTF now does only transform the model verts on read for DM_STATIC. Vertices for dynamicmodels are transformed on instantiation [wip]
- A-Style update
2022-06-24 21:40:08 +02:00
HarrievG
8f80816183
- binary loading/writing for (static) gltfMesh
2022-06-21 22:07:27 +02:00
HarrievG
6840b3a13e
- added cnew make batch file for vs2019
2022-06-21 00:44:01 +02:00
Robert Beckebans
90d329c78b
Moved FinishSurfaces for gltf
2022-06-21 00:20:25 +02:00
Robert Beckebans
d87d05e82c
Split Model_gltf.cpp into idlib/MapFile_gltf.cpp
2022-06-21 00:18:24 +02:00
HarrievG
39bdcba4ba
Merge remote-tracking branch 'RB/679-gltf-map-support2' into 679-gltf-map-support2
2022-06-21 00:03:31 +02:00
HarrievG
e84ef1edb2
transform bugs
2022-06-21 00:02:58 +02:00
Robert Beckebans
5f58f73845
Fixed missing generation of tangent spaces for glTF files
2022-06-20 23:57:13 +02:00
HarrievG
e3d37473da
Merge branch 'RobertBeckebans:679-gltf-map-support2' into 679-gltf-map-support2
2022-06-20 22:38:50 +02:00
HarrievG
18677c0e4a
Merge remote-tracking branch 'RB/679-gltf-map-support2' into 679-gltf-map-support2
2022-06-20 22:34:43 +02:00
Robert Beckebans
6e3a048833
Merge remote-tracking branch 'HarrievG/679-gltf-map-support2' into 679-gltf-map-support2
2022-06-20 22:34:25 +02:00
Robert Beckebans
4f6f65f4b8
Ignore line definitions in OBJ files
2022-06-20 22:33:01 +02:00
HarrievG
d0b9d8f8a8
astyle
2022-06-20 22:25:52 +02:00
Robert Beckebans
57b0b9620f
Fixed idassert in Release builds
2022-06-20 20:55:50 +02:00
HarrievG
9e4cd947a1
- cleanup YUP define
...
- added rotation for entities
- models scene can be overriden with cvar
2022-06-20 01:12:45 +02:00
Robert Beckebans
52a99ea5f6
Astyle
2022-06-19 22:25:33 +02:00
HarrievG
44c4ba9e46
- if no meshname is given while trying to load a idRenderModelGLTF, add all primitives from the default scene of that gltf as surfaces
2022-06-19 22:19:27 +02:00
HarrievG
1f22320d37
- correct axis transform for gltf assets
2022-06-19 21:58:43 +02:00
HarrievG
72b535f0ac
- Fixed bsp/worldspawn scene node traversal
2022-06-19 01:26:16 +02:00
Robert Beckebans
0cb72166f8
Added missing copyright notices
2022-06-18 11:09:09 +02:00
Robert Beckebans
fd6c589da0
( ), ( void ) -> ()
2022-06-18 10:43:30 +02:00
Robert Beckebans
35d809a145
Astyle
2022-06-18 10:36:48 +02:00
HarrievG
e5ecb219e5
- hierarchical bsp/worldmodel loading
...
- gltf support for model def. Looks up item within the "models" scene of the target gltf!
2022-06-18 01:18:28 +02:00
Robert Beckebans
b147183658
Don't generate collision models for every rendermodel in advance
...
(cherry picked from commit 82928cce8b6544466f4131b9bfd602ab2fa033d6)
2022-06-16 12:32:58 +02:00
Robert Beckebans
2d133b6910
Made hashing faster in MapPolygonMesh::GetGeometryCRC()
2022-06-11 11:54:01 +02:00
Robert Beckebans
f7db9d0ab7
Simplified allocations and fixed potential crash if materials are missing
2022-06-11 11:45:09 +02:00
Robert Beckebans
5354950d8a
Merge pull request #681 from HarrievG/679-gltf-map-support2
...
- Fixed GLTF Mesh -> Polygon Mesh creaton
2022-06-11 11:27:58 +02:00
HarrievG
a6d4ca7694
material name is now used as texture/idMaterial
2022-06-10 22:06:38 +02:00
HarrievG
faa9207d01
- Fixed GLTF Mesh -> Polygon Mesh creaton
2022-06-10 10:27:17 +02:00
Robert Beckebans
c0a5f1233d
Fixed collision detection and shading
2022-06-09 10:51:20 +02:00
Robert Beckebans
c576583b28
Don't add indices from other polygons
2022-06-08 23:06:17 +02:00
Robert Beckebans
c74ed79e8d
Support the Valve 220 texture projection in MapPolygonMesh::ConvertFromBrush()
2022-06-08 21:34:04 +02:00
Robert Beckebans
9216f47572
Automatically remove map collision .cm, .bcm files before running dmap
2022-06-08 21:12:38 +02:00