Commit Graph

10685 Commits

Author SHA1 Message Date
rdb c329a41dd3 movies: Python-facing read_samples should return bytes object
Also, properly returns partial buffers based on number of actual samples read
2019-04-29 18:00:44 +02:00
rdb c513342247 movies: return actual number of samples read in read_samples
Various codecs may only partially fill the buffer and fill the rest with zeroes, but it is useful to know how many samples were actually read.
2019-04-29 17:55:15 +02:00
rdb 026c2bf619 movies: UserDataAudio.read_samples should take a bytes/vector_uchar 2019-04-29 17:49:02 +02:00
rdb d92168cd74 movies: allow seeking compressed Opus file to beginning
Same change as 2c55663472 but for Opus files.
2019-04-29 12:39:44 +02:00
rdb 8af3e37bd2 movies: remove unused fields from Vorbis and Opus audio cursors 2019-04-29 12:14:04 +02:00
rdb 1723fae158 Merge branch 'release/1.10.x' into incoming 2019-04-29 11:52:23 +02:00
rdb fa1ff3d489 movies: fix for loading unseekable Opus files
Same fix as 00b3fbdb1a but for Opus files.
2019-04-29 11:41:13 +02:00
rdb 2c55663472 movies: allow seeking compressed Ogg Vorbis file to beginning 2019-04-29 11:39:30 +02:00
rdb a726592244 movies: support looping compressed .wav files
Any kind of skipping is supported on any kind of stream, actually, but some uses may require reopening the file and skipping some number of bytes, so a warning will be displayed in some cases.

I figure this feature is particularly interesting for .wav files since they are (1) often used for short samples, where skipping bytes is not really a big deal, and (2) aren't inherently compressed so would benefit particularly from zlib compression.
2019-04-29 10:48:04 +02:00
rdb 00b5faca2d ode: add OdeBody.joints property 2019-04-29 01:06:44 +02:00
Rishabh Tewari bfb50ab7ff device: don't crash on Linux if no devices are found
Fixes #634
Closes #635
2019-04-29 00:32:34 +02:00
rdb 00b3fbdb1a movies: fix for loading unseekable ogg vorbis files
Now, compressed/encrypted ogg files will properly be detected as unseekable, and will still be able to be played.
2019-04-28 22:57:06 +02:00
rdb ca5b4e7b54 ode: fix OdeJoint.attach with None parameters
Fixes #633
2019-04-28 22:29:29 +02:00
rdb 186d8feef4 movies: properly detect extension of pz/gz audio/video files 2019-04-28 21:49:23 +02:00
Sam Edwards df9640454f cocoadisplay: Add missing EXPCL_PANDA_COCOADISPLAY 2019-04-15 15:57:57 -06:00
rdb daa57733cb Merge branch 'release/1.10.x' 2019-04-14 23:11:03 +02:00
rdb 6df700939a glsl: make ParamVecBase4 and ParamVecBase4i work with ptr inputs 2019-04-14 23:08:02 +02:00
rdb 239dc40032 device: fix crash when unplugging certain devices on macOS
Fixes #621
2019-04-14 22:11:20 +02:00
rdb 5530074945 cocoa: fix crash when typing with RIME as input method
Fixes #620
2019-04-14 22:10:32 +02:00
rdb 5d3499dc64 x11display: fix crash when starting in fullscreen on Linux/X11
Fixes #618
2019-04-14 18:01:55 +02:00
rdb 98227daaa5 putil: fix SparseArray::clear_range et al
Fixes #588
2019-04-14 17:11:42 +02:00
rdb 552916efea Merge branch 'release/1.10.x' 2019-04-09 13:31:51 +02:00
rdb 8b79fb75b9 glgsg: allow multisampling on FBO even if host has no multisamples
Fixes #601
2019-04-09 13:24:52 +02:00
rdb 77d6a9f5c9 ffmpeg: add "FFmpeg" tag to PandaSystem 2019-04-09 12:09:21 +02:00
DrEuler aad1bc9aa2 audio: change include guard naming to be more consistent
Closes #592
Closes #595
2019-04-02 21:32:22 +02:00
rdb fa53e013cb gobj: add margin to float comparison in lens.project()
Fixes unit tests in double-precision build.
2019-04-02 21:27:08 +02:00
rdb 1a9867ae2e device: remove executable permissions from inputDeviceSet.* 2019-04-02 02:08:47 +02:00
rdb e98fbc7633 Merge branch 'release/1.10.x' 2019-03-29 13:44:50 +01:00
rdb 3ea562d404 collide: handle degenerate case for into-sphere test more robustly
This case happens, for example, when colliding a capsule with identical begin and end points into a sphere.
2019-03-29 13:29:14 +01:00
rdb 63a764a61b display: fix missed cases in 364d5d82fe 2019-03-29 13:28:12 +01:00
rdb 364d5d82fe display: don't apply color-scale-via-lighting to shader inputs
This isn't working properly at the moment, since the state gets set for the *next* object, causing significant artifacts.  I wasn't entirely sure whether to restore the "proper" behavior or not, since applications may be relying on one or the other behavior, but enabling this feature for shaders is a minefield and it's a lot better to just tell people to use p3d_ColorScale instead.
2019-03-26 23:12:41 +01:00
rdb 9fd8870766 Merge branch 'release/1.10.x' 2019-03-21 12:44:24 +01:00
rdb b0a5cceafd glgsg: fix support for matrix arrays in vertex data 2019-03-21 12:35:53 +01:00
Sam Edwards c63562088b device: Fix missing include 2019-03-18 04:10:35 -06:00
rdb 03c53bb33b ShaderTerrainMesh: set a bounding volume around the whole terrain
This lets one use multiple ShaderTerrainMesh tiles effectively, with Panda automatically disabling ones that are certainly not in view.  It may be worth an attempt to call `set_bounds_type(BoundingVolume::BT_box)` or set `bounds-type best` in Config.prc to get a tighter volume.
2019-03-17 21:45:27 +01:00
rdb 9e1b40bbb7 Remove unused ThreadSafePointerTo class
It seems that this was created when regular PointerTo was not yet atomic, and never used or updated.
2019-03-17 20:26:59 +01:00
rdb 662f28813a Merge branch 'release/1.10.x' 2019-03-17 20:18:16 +01:00
rdb 4f94b3aa0e egg2pg: fix CollisionBox generation for transformed objects
Rather than xforming after the fact, which does not work properly for boxes, we need to apply the transform to the vertices around which the box is generated.

Fixes #506
2019-03-17 19:07:47 +01:00
rdb e486bbcb3f collide: fix printing CollisionBox 2019-03-17 19:06:45 +01:00
rdb 8194f53206 Merge branch 'release/1.10.x' 2019-03-17 00:20:43 +01:00
rdb 029d7363cd distort: fix use of cylindrical_k in oSphereLens.cxx 2019-03-17 00:17:11 +01:00
rdb ea10cf192e Merge remote-tracking branch 'origin/release/1.10.x' 2019-03-12 21:11:56 +01:00
Daniel fb0807d769 putil: add is_allocated convenience method to UniqueIdAllocator
Closes #580
2019-03-12 21:10:44 +01:00
rdb bafd523e2b mathutil: fix bad assert in BoundingBox::set_min_max 2019-03-12 15:36:47 +01:00
Sam Edwards 138e7f935f collide: Fix missing includes 2019-03-12 02:01:09 -06:00
rdb 8d1bdf0118 Merge branch 'release/1.10.x' 2019-03-10 20:49:52 +01:00
rdb 0e70997fbf x11display: fixes for multi-monitor and fullscreen support
- DisplayInformation now gives the list of display modes returned by XRRGetScreenResources if RandR 1.2 is supported, which is apparently more reliable than the previous XRRSizes/XRRRates approach.
- Switching fullscreen on X11 to the current resolution on the CRTC that the monitor is on will make the window cover the CRTC properly, rather than forcing the window to have an origin of (0, 0).
- Passing in the pipe's display width/height is commonly done to go fullscreen at native res, but this may not correspond to a real display resolution.  It now detects when this is done, and interprets this as "go fullscreen at the native resolution on the current CRTC".

Fixes #575
2019-03-10 19:33:13 +01:00
rdb 511b0e7af3 gobj: prevent GeomVertexReader/Writer.set_row with negative row 2019-03-10 19:23:05 +01:00
rdb a7d9baeeb8 Remove unused ProfileTimer class
It doesn't seem to be used by anything, but it does take up 64+ KiB of memory in every Panda process.
2019-03-10 19:20:43 +01:00
rdb 08c686ba18 windisplay: fix issues with runtime fullscreen switching 2019-03-08 11:14:56 +01:00