Commit Graph

259 Commits

Author SHA1 Message Date
Georg Hagen
c0e85d4fba Add vertex buffer step mode config 2025-01-04 20:58:49 +01:00
Georg Hagen
6ccef62ad3 Add VertexBuffer class 2025-01-04 20:58:22 +01:00
Georg Hagen
fad309d96d Move FreetypeHelper and cleanup glyph creation 2025-01-04 11:59:13 +01:00
Georg Hagen
994ae12b80 Remove branching 2025-01-04 11:42:09 +01:00
Georg Hagen
ca93036f31 Change TextDrawable base class 2025-01-04 03:08:06 +01:00
Georg Hagen
94025c79c6 Unify text shader handling 2025-01-04 02:46:24 +01:00
Georg Hagen
bc78af70e8 Fix bugs introduced by refactoring 2025-01-04 02:45:46 +01:00
Georg Hagen
884949f92f Deduplicate Atlas validity checking 2025-01-04 02:02:14 +01:00
Georg Hagen
f156ff5892 Update fallback glyph handling 2025-01-04 01:52:41 +01:00
Georg Hagen
f124a22910 Cleanup duplicated text shader 2025-01-04 01:52:11 +01:00
Georg Hagen
207d02aab4 Remove redundant lambda, use initializer, add nodiscard 2025-01-04 01:25:04 +01:00
Georg Hagen
d96ced96c0 Deduplicate shader creation function for text drawable 2025-01-04 01:15:25 +01:00
Georg Hagen
c288f3ccba Remove redundant namespaces 2025-01-04 01:05:31 +01:00
Georg Hagen
54441024b3 Delete duplicated variable 2025-01-04 01:02:37 +01:00
Georg Hagen
0e21159888 Use AABB grow instead of custom function 2025-01-04 00:53:08 +01:00
Georg Hagen
61fa1546a0 Use same shader instance for all labeldrawables 2025-01-03 22:23:24 +01:00
ohyzha
0dd0532775 rename main sdf class for convenient synonym names 2024-12-31 12:15:15 +02:00
ohyzha
43842d6ece move stb zlib compressor to extensions folder 2024-12-31 12:14:32 +02:00
ohyzha
8d389db50c some more refactoring and improvements 2024-12-31 10:15:00 +02:00
ohyzha
e8289c643b code refactoring 2024-12-31 10:14:59 +02:00
ohyzha
503e31947f make font atlas generator interface more uniform and implement bitmap font atlas rendering and generation 2024-12-31 10:14:59 +02:00
Georg Hagen
a290bcf11b Add AXIS_TAP_X_ABS & AXIS_TAP_Y_ABS 2024-12-30 21:17:35 +01:00
Vladyslav Baranovskyi
308c361d89 Guarded assimp-related code 2024-12-19 17:04:50 +02:00
Vladyslav Baranovskyi
b9f3e2545e Merge branch 'master' into fbx 2024-12-19 16:28:27 +02:00
Vladyslav Baranovskyi
2e36d8b20e Storing mesh members using smart pointers 2024-12-18 22:58:24 +02:00
Vladyslav Baranovskyi
6c31d97271 Stack-allocating things, removed cleanup code 2024-12-18 14:28:33 +02:00
Vladyslav Baranovskyi
972df913c0 Fixed texture appearance, added scaling, removed unused code 2024-12-18 12:48:11 +02:00
Georg Hagen
f574344b5b Add convenience constructor 2024-12-13 20:05:26 +01:00
Vladyslav Baranovskyi
73ce105328 Basic FBX export (without attached textures) 2024-12-13 12:12:09 +02:00
Vladyslav_Baranovskyi_EXT
1abfb22b08 Merge pull request 'WriteObjAsZip and WriteAsUSDZ MeshWriter methods' (#166) from mesh_exporter_with_textures into master
Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/166
Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com>
2024-12-02 16:49:44 +01:00
Vladyslav Baranovskyi
0a38791bee Syntax changes, removed rotation in usd file format 2024-11-29 12:20:29 +02:00
Georg Hagen
c2ba301ce6 Suppress very spamy warning 2024-11-29 01:14:47 +01:00
Vladyslav Baranovskyi
7a214397a1 Hardcoded material name, capitalized constants 2024-11-28 22:01:43 +02:00
Vladyslav Baranovskyi
2d936096e7 Duh, removed temporary code 2024-11-27 20:23:10 +02:00
Vladyslav Baranovskyi
34bfebbdd3 Summary:
- Changes in Cat functions
- Using gmtime_s and gmtime_r as a thread-safe functions
- ZFill() that is used for padding
- Option for ZipWriter to pad LocalFileHeaders(it is used to properly run tests)
- ZipWriter::IsOpen()
- Moved material creation away from WriteObjContents
- Using MemMappedFile instead of ReadFile
- Scoping files and adding them to archive
- UsdEncoder refactoring
2024-11-27 20:21:14 +02:00
Vladyslav Baranovskyi
ba8574f537 Updated tests, changed model encoders to output content to a stream 2024-11-25 19:34:05 +02:00
Georg Hagen
cce979037e Add pixel scale factor values for ortho cam 2024-11-24 23:32:01 +01:00
Georg Hagen
c1a51a063c Update scale factor on matrix calculation 2024-11-23 23:40:09 +01:00
Vladyslav Baranovskyi
2a331011d5 Changed order of includes, uint32_t as index for Geometry::GetIndex(), minor changes 2024-11-22 16:36:41 +02:00
Vladyslav Baranovskyi
ac843c0fe3 Summary:
- Removed ReadEntireFile
- ZipWriter now writes directly to a file when possible
- Added GetIndex to geometry
- Moved Usd and Obj generators to different files
- Removed unused procedures
- Deduplicated obj generators
- Updated tests for ZipWriter
2024-11-22 15:45:57 +02:00
Vladyslav Baranovskyi
4133b4f0d9 Using ZipWriter in exporting USDZ files 2024-11-20 19:36:51 +02:00
Vladyslav Baranovskyi
33ca4213b6 WriteObjAsZip and WriteAsUSDZ MeshWriter methods 2024-11-18 18:15:55 +02:00
ohyzha
04b700ae82 distance setter 2024-11-07 17:52:39 +02:00
ohyzha
04a705456e cleanup 2024-11-07 17:33:39 +02:00
ohyzha
3521ddeb1d rework API 2024-11-07 16:45:42 +02:00
ohyzha
e2df88ca22 code refactoring 2024-11-07 16:45:35 +02:00
ohyzha
645fac1964 geometry no longer can be freed if object is hittable 2024-11-04 22:52:05 +02:00
ohyzha
4c67b94bc6 store ray hittable drawables in the scene 2024-11-04 22:52:05 +02:00
ohyzha
4c9f0ab2ee ray hit with drawable 2024-11-04 22:52:05 +02:00
ohyzha
7febb370a8 implement ray casting events 2024-11-04 22:52:05 +02:00