25740 Commits

Author SHA1 Message Date
rdb
fea66ea087 pgraph: Fix rare case of assertion in cull with ScissorEffect
Fixes #1344
2022-11-06 11:13:42 +01:00
rdb
e56c1a0a98 gtk-stats: Fix compile error on manylinux2014 with G_SOURCE_FUNC
[skip ci]
2022-11-05 15:59:56 +01:00
rdb
523e1bcbb8 glgsg: Fix regression defining null mipmap levels of cube map
Fixes #1189
2022-11-05 15:52:27 +01:00
rdb
b8c53be8fd text: Add missing fields to TextNode::CData copy constructor 2022-11-05 14:55:56 +01:00
rdb
91191a9d75 pgraph: Fix weird comment formatting in renderAttrib.h 2022-11-03 13:49:08 +01:00
rdb
a1105f0f96 dxml: Remove TinyXML bindings
This isn't used anywhere in the Panda source anymore, and is considered out-of-scope for Panda.  Python users can use the XML parsing library that's shipped with the Python source (or any other one on PyPI), and C++ users can just pull TinyXML into their projects directly.

If there really is a strong call to bring this back, I'd rather do it as an external package.

Closes #1379
2022-11-03 13:45:22 +01:00
rdb
37f7dc285b assimp: Set assimp-collapse-dummy-root-node to true by default
See #366
2022-11-03 13:45:22 +01:00
rdb
2a9a32fea9 assimp: Drop support for older versions of Assimp
We now require at least Assimp 4, I believe.
2022-11-03 13:45:22 +01:00
rdb
dba65d8bd4 gobj: Remove TextureStage::write() overload, use default arg instead
This was only an overload in 1.10 so that it wouldn't break the ABI
2022-11-03 13:45:22 +01:00
rdb
e75aae62f0 Merge branch 'release/1.10.x' 2022-11-03 13:45:05 +01:00
rdb
db6ea00967 assimp: Add assimp-collapse-dummy-root-node option
This is false for now, but will be true in the future.

See #366
2022-11-03 13:18:49 +01:00
rdb
1fd2e124cf assimp: Fix unprotected debug statements 2022-11-03 13:14:07 +01:00
rdb
c50a5b25b8 ptloader: Disable obj2egg from ptloader
It doesn't support materials and textures, so it's not really useful to have this registered with the loader by default, especially since we have much better support for .obj through Assimp

Fixes #738
2022-11-03 09:53:13 +01:00
Bert Myroon
45ce3f348f
Correct documentation
See first paragraph of https://graphics.stanford.edu/courses/cs268-09-winter/notes/handout6.pdf
2022-11-02 18:39:45 -06:00
rdb
2044861597 assimp: Support custom object properties as tags 2022-11-02 23:02:33 +01:00
rdb
ffe2137680 assimp: Support reading additional texture maps, as well as PBR 2022-11-02 23:02:21 +01:00
rdb
286cf0d286 assimp: Improve performance of loading geometry 2022-11-02 23:02:21 +01:00
rdb
162a7b2c34 assimp: Support reading tangents and binormals 2022-11-02 23:02:21 +01:00
rdb
5a483e3899 assimp: Fix a typo in a config var description 2022-11-02 23:02:21 +01:00
rdb
6e636f5ca0 assimp: Fix issues reading external files 2022-11-02 23:02:20 +01:00
rdb
b254e5b7ba assimp: Support importing alpha mode from glTF files 2022-11-02 23:02:20 +01:00
rdb
9248182a0b assimp: Support texture transforms 2022-11-02 23:02:20 +01:00
rdb
a11f7c9c8d gobj: Add TextureStage::write() overload with indent_level param 2022-11-02 23:02:20 +01:00
rdb
356e974029 ptloader: Fix wrong initialization order issue 2022-11-02 23:02:20 +01:00
rdb
2226f8de9e assimp: Add support for texture wrapping modes 2022-11-02 19:35:10 +01:00
rdb
09a81e0d68 assimp: Fix memory corruption in load_texture_stage() 2022-11-02 19:34:39 +01:00
rdb
4c58eb3382 tests: Replace use of deprecated imp module in test_imports 2022-10-31 23:21:54 +01:00
rdb
bf2bf37e67 makepanda: Always populate OSX_ARCHS when building for macOS 2022-10-31 23:12:44 +01:00
rdb
316b0009ae Merge branch 'release/1.10.x' 2022-10-31 23:10:39 +01:00
rdb
ae7084504b event: Fix crash when creating task from closure with extra data 2022-10-31 23:09:13 +01:00
rdb
d8a537b59b dtoolbase: Add comment clarifying assertion in DeletedBufferChain
[skip ci]
2022-10-31 19:26:59 +01:00
rdb
587f9f7bcd makepanda: Fix issues when building on arm64 without --arch flag
Logic in various places seems to assume `OSX_ARCHS` contains `arm64` in this case
2022-10-31 19:25:47 +01:00
rdb
4cf8187df7 cocoadisplay: Fix crash with threading-model on newer macOS versions
Updates the context on the main thread instead of the draw thread now. If render_frame happens to run while the context needs updating, it will skip the frame.

Fixes #1286
2022-10-29 20:51:05 +02:00
rdb
4c6df54d6f tests: Fix failing window unit test on macOS
Fixes #804 (together with previous commit 979f194f499e76a12ba137c52b3b33f51d7d8e6c)
2022-10-29 18:47:15 +02:00
rdb
979f194f49 tests: Load either 120 or 150 GLSL shaders depending on capabilities
Addresses part of #804
2022-10-29 18:46:59 +02:00
rdb
a111bb4442 tests: skip auto-shader tests if Cg shaders are not supported
Backport of 57b0be86471f4356b912d5976e4f5b9cb9e92220
2022-10-29 18:16:58 +02:00
rdb
54e2ddfd1c gobj: Fix failure to async reload texture more than once
Fixes #1354
2022-10-28 13:16:07 +02:00
rdb
e0c3c8a8d9 filter: Add docstring for CommonFilters.setMSAA
[skip ci]
2022-10-25 17:51:32 +02:00
rdb
4bdac5afac glgsg: Save a buffer bind call by changing order of blitting MS FBOs 2022-10-25 16:51:53 +02:00
rdb
9768cbb6c2 Merge branch 'release/1.10.x' 2022-10-25 16:44:24 +02:00
rdb
bdb0f0b56a pipeline: Don't use yield ASM intruction on ARM < 7 2022-10-25 16:35:28 +02:00
rdb
fc8c07a949 pgraph: Remove unused vertices during premunge phase
Disable with premunge-remove-unused-vertices config var - let me know if causes issues for you, performance or otherwise, though!
2022-10-25 16:34:28 +02:00
rdb
4d5d7047af pgraph: Slight efficiency refactoring of remove_unused_vertices() 2022-10-25 16:34:28 +02:00
rdb
f64dcbd3df bullet: Clean up BulletContact/BulletManifoldPoint reference handling a bit
Still looks kinda sketchy though

Related to #1192
2022-10-25 16:34:28 +02:00
rdb
a71b417aec filter: Add "MSAA" filter to CommonFilters
This provides an easy way to enable MSAA for the offscreen color buffer only without having to enable it on the main window.

When using this filter, it is important to have framebuffer-multisample turned off in Config.prc.
2022-10-25 16:26:30 +02:00
rdb
4d2a45f124 glgsg: Fix multisample FBOs with MRT blitting aux target into color target 2022-10-25 16:25:50 +02:00
rdb
1a72311243 bullet: Fix LMatrix3<>btMatrix3x3 conversion functions 2022-10-25 12:10:44 +02:00
rdb
693b4d3fb3 bullet: Fix BulletAllHitsRayResult::empty() compiler warning 2022-10-25 12:08:50 +02:00
rdb
ef9c9fa20e bullet: Fix BulletWheel::empty() referencing local objects 2022-10-25 12:08:06 +02:00
rdb
cc24b5373d pgraph: Fix PandaNode::_nested_vertices not updating properly
The problem was that `PandaNode::update_cached()` queries the node's `_internal_vertices` *before* calling `get_internal_bounds()` (which is what actually calculates it).
2022-10-25 11:35:29 +02:00