25653 Commits

Author SHA1 Message Date
rdb
fe94e43bc4 pgraph: Fix issues with flattening TexMatrixAttrib
If multiple texture stages reference the same texcoord set, Panda wouldn't flatten the tex matrices even if they were the exact same

Fixes #1392
2022-11-13 11:11:32 +01:00
rdb
0220a43ce0 shader: Fix support for #pragma include <example.glsl> in GLSL 2022-11-09 17:20:11 +01:00
rdb
63017864ab pgraph: Support any number of attribs in RenderState::make() in Python 2022-11-07 18:17:48 +01:00
rdb
e09f78b987 interrogate: Do not consider make() with explicit kwargs for coercion
Unless this parameter has a default value
2022-11-07 18:05:34 +01:00
rdb
68111b2c42 Merge branch 'release/1.10.x' 2022-11-07 18:05:03 +01:00
rdb
11746457ff interrogate: Fix invalid syntax for make() coerce ctor with kwargs
[skip ci]
2022-11-07 18:03:41 +01:00
Erica M. ("Loonatic")
40618e104d chore: Remove extraneous print statement
There's no reason why this should be printed out by default. It can create a lot of spam in the output when utilizing this module.

Fixes #1383
2022-11-07 13:01:59 +01:00
rdb
8965741fcf tinydisplay: Don't reimplement process_events from base class
Reduces code duplication, makes it possible to inherit bug fixes from the base class, and also handles resizes more efficiently now (only when this would actually require a framebuffer reallocation).
2022-11-07 12:56:56 +01:00
rdb
0a827cf65c x11display: Time out waiting for ConfigureNotify event
Fixes #1087
2022-11-07 12:56:03 +01:00
rdb
70e86c46ed audio: Code formatting fixes in nullAudioManager.cxx
[skip ci]
2022-11-06 11:22:10 +01:00
rdb
502607e450 pgraph: Make CullTraverserData.view_frustum settable from Python
Perhaps useful for in cull callbacks
2022-11-06 11:19:56 +01:00
rdb
9d73c9b786 pgraph: Fix a missed std::move opportunity in ScissorEffect 2022-11-06 11:19:04 +01:00
rdb
2ec147f3b0 audio: Add positional property getter to AudioSound
Fixes #1257
Closes #1282

Co-authored-by: morganmliang <morganmliang@users.noreply.github.com>
2022-11-06 11:16:29 +01:00
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