Commit Graph

9345 Commits

Author SHA1 Message Date
rdb fe058dfb32 Don't store two references to X11 Cursor, or we double free at shutdown 2015-07-06 10:29:44 +02:00
rdb f67ee228bf Fix error in cg-glsl-version 2015-07-05 20:39:34 +02:00
rdb 7026854cc2 Fixes to get the C binding generator to work 2015-07-05 16:07:08 +02:00
rdb c0f6588c88 Separate libp3interrogatedb out of libp3dtoolconfig.
This aids further in removing the core lib dependency on Python.
2015-06-30 15:17:15 +02:00
rdb 08fbfb1874 Add missing file, update .gitignores 2015-06-28 14:04:16 +02:00
rdb 419eadb859 Support hardware skinning in GLSL 2015-06-21 20:28:31 +02:00
rdb 7a836cbbd9 Merge branch 'release/1.9.x' 2015-06-21 17:46:34 +02:00
rdb 8ecf6a7b9f Fix getattr() and hasattr() of vector classes when invalid attribute name is used 2015-06-21 15:33:42 +02:00
rdb efa8633cb0 Merge branch 'release/1.9.x' 2015-06-18 21:21:23 +02:00
rdb 458ca5ea41 Fix error when aligning C_normal column for vertex animation 2015-06-18 21:21:00 +02:00
rdb 5d364d6128 Merge branch 'release/1.9.x' 2015-06-15 00:20:17 +02:00
rdb 6d0e4c2662 Correct scaling and normalizations of binormals and tangents in generated shaders 2015-06-15 00:19:52 +02:00
rdb ac7c8c3756 Merge branch 'release/1.9.x'
Conflicts:
	panda/src/gobj/geomVertexColumn.cxx
2015-06-14 23:16:42 +02:00
rdb bac400543a Correct scaling of normals during flatten operations 2015-06-14 23:14:56 +02:00
rdb 82e098e578 Move auto-rescale-normal handling out of GSG, support normalizing normals in shader generator 2015-06-13 18:20:18 +02:00
rdb 2515ea5dff Merge branch 'release/1.9.x' 2015-06-13 13:37:33 +02:00
rdb c85a92d378 Add assertion to GeoMipTerrain::get_block_node_path 2015-06-13 13:34:19 +02:00
rdb 11ed8a4d8d Use dynamic type lookup for interrogate to eliminate inter-module dependencies
It is now no longer necessary to link to core.pyd
Also includes a slight coercion optimization for trivial types
2015-06-06 19:36:40 +02:00
rdb 8e58e9e11c Merge branch 'release/1.9.x' (though keep template exporting in master) 2015-06-06 17:03:27 +02:00
rdb 4d46172fba Revert non-Windows template export changes from 1.9.x, they're less stable than I thought 2015-06-06 16:55:33 +02:00
rdb 3c380d9006 Support collision sphere and plane solids in bam2egg 2015-06-06 16:46:43 +02:00
rdb cfcf91c1c1 Support far clip distance of infinity 2015-06-06 16:25:08 +02:00
rdb 7b9efb32af Merge branch 'release/1.9.x' 2015-06-04 00:35:19 +02:00
Ed Swartz 41498e3895 Fix a libRocket texture issue 2015-06-03 22:30:22 +02:00
rdb a70878c4ef Merge branch 'release/1.9.x' 2015-06-03 20:26:22 +02:00
rdb f8ec2c10d5 libRocket now responds consistently to auto-texture-scaling, and supports (and prefers) padding over scaling
Thanks to Ed Swartz for helping to track down these issues!
2015-06-03 19:58:50 +02:00
rdb ecaffd5eaa Fix regression in 1.9.0: loaded textures not always rescaled to POT 2015-06-03 19:55:28 +02:00
rdb eeddc9c07d Merge commit 'd1106953b219dbd786c789e92849063dd394bb38' into release/1.9.x 2015-06-03 19:51:39 +02:00
rdb 24b3b85e98 Try and work around weird GCC 4.6 bug with instantiating PTA_uchar 2015-06-03 19:50:52 +02:00
rdb f69354d9fa Explicit template instantiation on gcc/clang, implement cfsworks' suggestion of moving compiler-specific stuff out of pandasymbols.h et al 2015-06-03 13:36:04 +02:00
rdb 141c7a9c35 Improve build performance on Windows slightly 2015-06-02 21:02:35 +02:00
Ed Swartz d1106953b2 Let user know why p3tinydisplay doesn't load texture 2015-06-02 13:20:01 -05:00
rdb 75978222a1 Merge branch 'release/1.9.x' 2015-06-02 00:31:24 +02:00
deflected 88e5214af7 glstuff: Fix incorrect handling of Transpose in Shader Inputs
- Added missing recalculation of size when
    input buffer is "resized" (due to removing of
    post/pre-fixes). Now the "Transponse" part is
    correctly handled.

Signed-off-by: deflected <deflected@github>
2015-06-02 00:29:34 +02:00
rdb a73b5b3fd1 Merge pull request #33 from eswartz/pr-pnmimage-premultiply
Add PNMImage premultiply/unpremultiply methods.
2015-06-01 15:25:55 +01:00
Ed Swartz dbcb389d73 Add PNMImage premultiply/unpremultiply methods. 2015-06-01 08:42:15 -05:00
rdb 868b78f854 Work around interrogate issue 2015-06-01 00:32:51 +02:00
rdb cc62e731b7 Fix compilation with ppremake 2015-06-01 00:21:32 +02:00
Ed Swartz 4c5a540dc9 Add a color and config variable for the pstats "*" category 2015-05-31 10:27:52 -05:00
rdb c59845a63b Merge pull request #31 from eswartz/pr-rocket-more-keys
Make more keys available to libRocket event handlers
2015-05-31 09:11:26 +01:00
Ed Swartz 32bfe0bafc Add a few missing keys to libRocket keymap
libRocket calls some keys "OEM" which map to ASCII characters in
non-predictable places.  Since Panda3D is providing these values
to libRocket from well-known sources, it seems a lesser evil to
use the default US English mappings rather than losing the events
entirely.
2015-05-30 22:16:15 -05:00
rdb 5d84cc22a9 Bind textures to image samplers by default with read/write access without warning 2015-05-24 15:03:08 +01:00
rdb e2dfc935a1 Various refactoring, esp. of GLSL input system 2015-05-21 14:16:45 +02:00
rdb b49289a4f6 Allow setting min-lod, max-lod, lod-bias in egg file 2015-05-21 11:16:46 +02:00
rdb 18533a29bf Merge branch 'release/1.9.x' 2015-05-18 02:08:27 +02:00
rdb 49e0ff000c Track residency of graphics buffers (both RTT and renderbuffers) 2015-05-18 02:07:35 +02:00
rdb f152c238d5 Display error message instead of mysterious crash when encountering unknown BamObjectCode 2015-05-18 02:04:22 +02:00
rdb 32fb6814e7 Merge branch 'release/1.9.x' 2015-05-14 17:18:20 +02:00
rdb 586c067d69 Fix shader generator memory leaks 2015-05-14 17:17:38 +02:00
rdb f0df4b3b77 Merge branch 'release/1.9.x' 2015-05-11 21:15:11 +02:00
rdb b9440d634c Fix regression with depth-stencil textures reported as unsupported 2015-05-11 20:33:14 +02:00
rdb 5def6a6261 Fix flickering when using trans_model_to_apiview in Cg 2015-05-11 20:31:37 +02:00
rdb 96de270320 Fall back to depth textures when depth-stencil textures aren't supported 2015-05-11 20:31:10 +02:00
rdb 9ef782cd75 Merge branch 'release/1.9.x' 2015-05-11 18:07:53 +02:00
rdb 07ea84a1a0 Optimize shader matrix generator, allow changing GL internal coord system 2015-05-11 18:07:14 +02:00
rdb e8ce2b7b54 Fix OpenGL ES 1 compile error, it does not have GL_INT 2015-05-11 14:19:06 +02:00
rdb 4486fda042 Merge branch 'release/1.9.x' 2015-05-07 22:39:53 +02:00
rdb dbf82d514e Switch from deprecated xf86dga.h header to Xxf86dga.h 2015-05-07 22:39:12 +02:00
Ed Swartz 1fb49dc3f7 Fix Rocket asset lookup to use VFS correctly for .p3d 2015-05-07 22:37:16 +02:00
Ed Swartz bb98d8a8a0 Use model-path as a fallback for rocket asset lookup 2015-05-07 09:40:12 -05:00
rdb 541c684114 Fix filename substitution in shader error reporting for first included file 2015-05-06 15:46:16 +02:00
Ed Swartz e8fca5668c Fix a rash of asserts from PNMImage::get_alpha_val
-- originally the code had an explicit check for a missing alpha channel, that went away in 22120524a2
2015-05-05 11:31:25 -05:00
rdb f658283911 Merge branch 'release/1.9.x' 2015-05-03 20:48:06 +02:00
rdb c292d3bc65 Allow deactivating GPU timers, disable Draw:Primitive:Draw collectors 2015-05-03 20:47:29 +02:00
rdb 8ef5f05342 Pass correct byte size (instead of pixel size) for texture buffers 2015-05-03 16:30:36 +02:00
rdb cc9abf0bae Merge pull request #21 from eswartz/add-pview-options
Add -L (lighting) and -P <pipe> options to pview
2015-05-02 15:30:20 -05:00
rdb 5f875239f2 Merge branch 'release/1.9.x' 2015-05-02 22:17:29 +02:00
Sam Edwards 184901309e general: Fix missing includes. 2015-05-02 22:14:17 +02:00
rdb 11350334d0 Add assertion to prevent invalid use of FrameRateMeter 2015-05-02 22:07:03 +02:00
rdb 90ad6f00bf Change p3d_Color behavior to take ColorAttrib into account; assign white if missing 2015-05-02 15:48:21 +02:00
rdb fdc8918946 Add packed unsigned 11/10/10-bit floating point vertex format 2015-05-02 14:20:51 +02:00
Ed Swartz 6ceaf63c7d Add -L (lighting) and -P <pipe> options to pview 2015-05-01 20:34:14 -05:00
rdb aac24a3a13 Merge branch 'release/1.9.x' 2015-05-01 20:15:54 +02:00
rdb 74f936115e Force p3d_Vertex to attribute location 0 to fix disappearing geometry when an attribute is not bound 2015-05-01 20:15:00 +02:00
rdb 9303c247b6 Support signed int vertex data, normalize 16-bit uint colors properly, don't normalize int columns passed to shaders 2015-04-30 20:13:36 +02:00
rdb 24ec0d6c46 Merge branch 'release/1.9.x' 2015-04-30 19:57:23 +02:00
rdb a745184f25 Fix X11 compile and interrogate issues 2015-04-26 15:27:39 +02:00
rdb 589a1b52ac Revert unintentional debug message check-in 2015-04-26 15:07:09 +02:00
rdb 92d40c3144 Default vertex column alignment should be 4 2015-04-25 18:48:48 +02:00
rdb 66011a1352 Expose _NET_WM_PID to window managers in X11 2015-04-25 17:17:33 +02:00
rdb f1ea25bfb1 Unexpose BoundingVolume::around, add GraphicsOutput::get_fb_size 2015-04-25 17:13:35 +02:00
David Rose 1d1ee63b8e Merge branch 'master' of https://github.com/panda3d/panda3d 2015-04-25 07:24:10 -07:00
David Rose 8876f0939e add PfmFile::gamma_correct(), PfmFile::apply_mask(), PNMImage::copy_channel_bits() 2015-04-25 07:23:54 -07:00
rdb 5f20afd5ea Merge pull request #18 from eswartz/support-mouse-confinement
Support mouse confinement
2015-04-18 13:03:48 +02:00
Ed Swartz 53171c93c8 Replace some debug() calls with info()/warning() calls. 2015-04-17 15:55:46 -05:00
Ed Swartz 0f5b1a8192 Fix X11 M_relative case when missing XF86DGA 2015-04-17 15:50:11 -05:00
Ed Swartz 48cc1aa496 Implement an M_confined mouse mode to ensure mouse stays in window. 2015-04-17 15:12:29 -05:00
rdb 9c313a172d Make writable: bullet convex hull, triangle mesh, debug node 2015-04-16 20:26:55 +02:00
rdb 4f47b018eb Some .bam cross-compatibility for buffer textures 2015-04-16 17:10:14 +02:00
rdb 2ff9083812 Add support for buffer textures 2015-04-16 16:55:29 +02:00
rdb 38ac0401ce A start to make Bullet objects writable (to .bam files) 2015-04-15 22:00:30 +02:00
rdb 76e135b835 Improve behaviour of get_deactivation_enabled/is_deactivation_enabled 2015-04-15 21:58:54 +02:00
rdb d7552f0d8a Merge in bugfixes from branch 'release/1.9.x' 2015-04-14 15:50:53 +02:00
rdb 0343c4f186 GLSL robustness and issue fixes:
* Int params were not being implicitly converted to float properly
* p3d_TextureN now accepts other sampler types
* More error checking for parameter types
* p3d_ColorScale et al also allows vec3 instead of vec4 now
2015-04-14 15:48:48 +02:00
rdb 8360ad442a Work around gcc compiler shortcoming 2015-04-14 15:46:52 +02:00
rdb 0c3fd953fc oops, revert accidental checkin of debug message 2015-04-06 15:11:55 +02:00
rdb adb02a8f45 Compile out things irrelevant for target build, like ShaderGenerator when !HAVE_CG 2015-04-06 13:24:45 +02:00
rdb 947149c56a Fix reading from URLs mounted to the virtual file system 2015-04-05 22:50:38 +02:00
rdb 16e7831566 Remove executable permissions from files that don't need them 2015-04-05 15:41:49 +02:00
rdb cda7c1f171 OpenGL ES 2 optimizations and better support 2015-04-04 21:58:29 +02:00