Commit Graph

9324 Commits

Author SHA1 Message Date
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
rdb 4976345486 Let's use OpenGL-style vertex colors by default on non-Windows platforms 2015-04-04 21:38:54 +02:00
rdb b323d73622 Reduce redundant state changes and error checks 2015-04-04 21:04:27 +02:00
rdb 059f67d1b5 Improve GLSL error reporting, fix GLSL ES shader loading 2015-04-04 20:57:04 +02:00
rdb 41184b1189 Optimizations to improve start-up time (esp. in JavaScript) 2015-04-04 19:05:54 +02:00
rdb 0082b7876f Fix clang 3.5 compile warnings/errors 2015-04-04 16:00:20 +02:00
rdb 87451d8000 Support wireframe and point rendering modes in OpenGL ES 2015-04-04 16:00:19 +02:00
rdb 82b3268786 Prevent crash when OpenAL device creation fails 2015-04-01 02:55:20 +02:00
rdb 3f520cad01 Fix black screen when going to fullscreen on Mac OS X 2015-04-01 02:40:59 +02:00
rdb f8779d7eaf Warn if GeoMipTerrain is passed a height field with sRGB color space 2015-03-31 22:33:11 +02:00
rdb b4bfe7010c A few convenience methods that allow for cleaner code in GSGs 2015-03-31 13:57:02 +02:00
rdb 720fdba470 Re-expose LineStream to Python 2015-03-31 13:07:33 +02:00
rdb 95c403e636 Remove unused lru implementation 2015-03-31 12:51:05 +02:00
rdb 10796fe33e Fix unlockFocus error in release builds 2015-03-30 17:58:35 +02:00
rdb 40fff906d1 Change default window size to 800x600 across the board (incl runtime) 2015-03-30 17:57:37 +02:00
rdb 5827959056 Fixes for 64-bit OS X build on newer OS X versions 2015-03-29 22:06:32 +02:00
rdb 0f8f4d63b0 Only query glVertexAttribIPointer when GL version >= 3.0 2015-03-29 18:11:12 +02:00
Sam Edwards 64120cd7d8 general: Add missing includes and forward-declarations. 2015-03-28 19:27:48 +01:00
rdb b06100afdd Changes to support building universal Mac rtdist for 1.9 2015-03-28 00:31:10 +01:00
rdb 477aa4bdfe Fix various Windows build issues 2015-03-27 23:17:35 +01:00
rdb f624cdcac0 Fix various Mac OS X bugs and build issues 2015-03-25 19:43:21 +01:00
rdb 3371df8403 Fix tp_compare, better __repr__/__str__ handling 2015-03-25 19:36:35 +01:00
rdb b894954fda Better type matching (and error reporting) for GLSL shader inputs 2015-03-24 22:41:13 +01:00
rdb cf8f4d6fbc Update ca-bundle.crt 2015-03-24 22:31:20 +01:00
Ed Swartz 8344fc6187 PNMImage row interface 2015-03-23 19:28:37 +01:00
rdb 38d02fadf9 Fix various interrogate issues with parsing PhysX headers 2015-03-23 19:27:29 +01:00
rdb 0570d9536e Merge branch 'interrogate-overhaul'
Conflicts:
	panda/src/gobj/texture.h
	panda/src/pnmimage/pnmImage.h
2015-03-22 21:50:08 +01:00
rdb 7edecd7fea Fix compilation issues with the runtime 2015-03-21 21:33:32 +01:00
rdb ba6529811d Fix regression with incorrect scaling of 16-bit PNG files 2015-03-21 21:08:54 +01:00
Nikola Milentijevic e687c76db8 Fix MeshDrawer::stream
Direction vector is computed as stop - start, but the position
in the loop is computed from stop as base, instead of from start;
this is changed to start as the base (and then offset must be added).
Multiplication of non-normalized direction vector with its length
yields square of the expected current step inside the loop;
this is changed to use the normalized direction vector.
2015-03-17 19:40:09 +01:00
rdb 1bd343cd87 Windows compile issues fix 2015-03-15 19:37:14 +01:00
rdb 22120524a2 PNMImage sRGB support, use floats instead of doubles 2015-03-15 17:22:28 +01:00
rdb b63d5fbe8c Support cyclic garbage collection through PythonTask objects 2015-03-15 12:24:06 +01:00
rdb e608fa69c7 Merge branch 'master' into interrogate-overhaul
Conflicts:
	dtool/src/cppparser/cppBison.yxx
	dtool/src/interrogate/interfaceMakerPythonNative.cxx
2015-03-14 16:47:31 +01:00
rdb 68cf8cf44f Fix various issues with API documentation generator 2015-03-13 18:40:26 +01:00
rdb ee024f3dc5 Typo fix 2015-03-09 15:51:22 +01:00
rdb 36525784fd Robustify GL FBO framebuffer properties handling 2015-03-09 15:27:38 +01:00
rdb d345246a93 Fix compilation with STDFLOAT_DOUBLE 2015-03-08 15:55:43 +01:00
rdb d11cafc374 Replace SSE4 instruction with SSE2 instruction 2015-03-02 16:18:55 +01:00
rdb 97c24c9ef0 Fix a Cg crash with GL_BGRA color arrays, on NVIDIA cards this time 2015-03-01 17:32:20 +01:00
rdb 04d4309b14 SSE2-enhanced sRGB encode (with runtime CPU detection) 2015-03-01 11:46:52 +01:00
rdb 223620e27e Fix draw mask propagation for initially hidden nodes when when frustum culling is off 2015-02-28 13:03:45 +01:00
rdb 3d9d9bfc95 Deprecate use of <Collide> without specifying "descend" flag 2015-02-27 19:59:54 +01:00
rdb 238cbad2a1 Merge branch 'master' into interrogate-overhaul 2015-02-27 12:48:33 +01:00
rdb db87bc7914 PointerToArray fixes, Windows build fixes, more move constructors 2015-02-27 12:45:11 +01:00
rdb 0e67fb7cf3 Merge pull request #9 from deflected/master
FreeBSD fixes
2015-02-26 15:39:00 +01:00
rdb 72e1df987f Fix pview issues with 1-frame animations and cycling between animations 2015-02-25 21:45:14 +01:00
rdb 52fec094bc Automatically coerce Python function to CallbackObject 2015-02-25 16:24:56 +01:00
rdb 69dc29d6f0 Merge pull request #7 from kestred/cfs-fixes
Miscellaneous compilation fixes
2015-02-25 02:25:19 +01:00
rdb 7a6aa7bfae Implement ParamNodePath; fix circular include issue in shaderInput.h 2015-02-25 01:25:19 +01:00
Sam Edwards f0b3e08e9c ffmpeg: Use av_frame_* instead of deprecated avcodec_*_frame functions beginning with lavc 55.45.101. 2015-02-24 16:22:37 -08:00
Sam Edwards 903966371c general: Fix missing includes. 2015-02-24 16:06:47 -08:00
Sam Edwards 894423ace4 ffmpeg: Don't use internal SWR_CH_MAX macro. 2015-02-24 16:06:40 -08:00
rdb 8dbe681143 Fix bug with Collide flag "polyset" and nested <Transform> elements 2015-02-24 23:51:00 +01:00
rdb 46ddd46c5c Support materials in bam2egg 2015-02-24 21:40:55 +01:00
09th c0e4de3df7 Fix bam2egg issue with animated models 2015-02-24 19:58:14 +01:00
rdb 6263a591be Fix matrix.almost_equal with custom threshold in Eigen build 2015-02-22 15:04:54 +01:00
rdb 3600abfe6d Fix coercion of non-interned strings in Python 3 2015-02-22 13:51:46 +01:00
deflected d82f2c83cd downloader: Correct lack of timezone
- Use tm_gmtoff for GMT correction under FreeBSD

Signed-off-by: deflected <deflected@github>
2015-02-20 14:10:19 +02:00
enn0x d320aced73 Fixed const-correctness for BulletAllHitRayResult. 2015-02-20 01:29:16 +01:00
enn0x b7ef0d3bc3 Exposed flag to disable collision between linked bodies. 2015-02-20 01:14:12 +01:00
rdb 0fda35d88c Commit patch by nikolm to support AmbientLight shader inputs in GLSL 2015-02-16 21:33:38 +01:00
rdb d447ec3bc6 If GL_RENDERER begins with "Gallium", disable GL_PRIMITIVE_RESTART_FIXED_INDEX 2015-02-15 14:19:47 +01:00
rdb 9513046e59 Various substantial changes to Interrogate:
* Allow arbitrary selection of optional keyword arguments in some cases
* Reduce code bloat of generated bindings
* Work around awkward resolution of set_shader_input overloads
* Document the code a bit better
* Make coercion a bit cleaner for reference counted types
* A few optimization tweaks
* Use generic errors in NDEBUG build to reduce size of string pool
2015-02-15 13:48:13 +01:00
rdb d43068b09a Merge branch 'master' into interrogate-overhaul 2015-02-11 21:59:54 +01:00
rdb 7ed8cc9831 Add p3d_Color uniform in GLSL shaders 2015-02-11 21:54:34 +01:00
rdb 886890b02f Merge /mnt/panda3d 2015-02-11 21:43:21 +01:00
rdb 4d2dcdcef7 Fix OpenGL ES compiler errors 2015-02-11 21:41:48 +01:00
rdb 8d17e86d2e Merge /cygdrive/g/panda3d 2015-02-11 21:13:25 +01:00
rdb b9c1765ab4 Fix eggcacher, dramatically improve Windows installer 2015-02-11 21:12:54 +01:00
rdb 4dc4c9eb3d Merge branch 'master' into interrogate-overhaul
Conflicts:
	dtool/src/interrogate/functionRemap.cxx
	dtool/src/interrogate/interfaceMakerPythonNative.cxx
	panda/src/event/pythonTask.cxx
	panda/src/express/multifile.h
	panda/src/express/pointerToArray.I
	panda/src/mathutil/config_mathutil.N
	panda/src/putil/config_util.N
	panda/src/putil/doubleBitMask.h
2015-02-11 14:41:58 +01:00
rdb 5a51a7e08d Fix various build issues 2015-02-11 14:16:21 +01:00
rdb a6eb3fa442 Make NodePathCollection and TextureCollection constructors extensions 2015-02-11 14:14:03 +01:00
rdb cbd70ad8af Move all Python bindings out of core DLLs into the .pyd files. 2015-02-10 14:30:51 +01:00
rdb 79d025e9a8 Fix incorrect transformation of CollisionBox loaded from .egg file 2015-02-09 20:43:04 +01:00
rdb 8998fef903 Merge branch 'master' of github.com:panda3d/panda3d 2015-02-09 16:53:45 +01:00
rdb e9a64736a3 Fix 32-bit Windows compilation issues with Eigen 2015-02-09 16:51:59 +01:00
rdb bcf0229978 Expose p3d_ClipPlane array to GLSL 2015-02-09 15:57:47 +01:00
rdb b4a87b58f2 Support halfVector struct parameter for GLSL light source inputs 2015-02-08 23:38:07 +01:00
rdb bd86907181 Fix assortment of compilation issues and annoyances 2015-02-08 23:25:11 +01:00
rdb 91568b02bc Add EggVertex::make_average(v1, v2) 2015-02-08 19:51:18 +01:00
rdb f6453fd83e Fix internal name coercion error with new interrogate system 2015-02-08 13:04:53 +01:00
rdb b2f73d0877 Merge branch 'master' into interrogate-overhaul 2015-02-08 12:11:19 +01:00
rdb dad8f79e96 Support using setShaderInput with a light to bind to GLSL struct 2015-02-08 01:42:11 +01:00
rdb 028c09add5 Implicit cast string to InternalName in c++, also optimize for string literals 2015-02-07 16:43:25 +01:00
rdb 78f8f65ef9 Add M_filled_wireframe render mode 2015-02-06 12:15:25 +01:00
rdb eaabc1bfa5 Add ConfigVariableColor 2015-02-05 13:34:52 +01:00
rdb 3bf2a0f814 Proper unbinding of GLSL matrix attribute arrays 2015-02-05 13:27:35 +01:00
rdb 7c14d1872a Fix race condition when manipulating node transform in thread (LP #1417715) 2015-02-04 00:06:14 +01:00
rdb 6b10409890 Fix add_consecutive_vertices / show_bounds crash 2015-02-03 17:18:58 +01:00
rdb 083e160f89 Partially fix excessive event spam when resizing windows 2015-02-02 19:18:32 +01:00
rdb 987ba2083b Use notify-level-shader instead of gobj for shader logging 2015-02-02 19:03:14 +01:00
rdb 3b1bd9ef39 This fixes most issues with Cg's GLSL profiles on non-NVIDIA cards 2015-02-02 16:31:23 +01:00
rdb 3aefaff8b1 Show source filename in GLSL error logs 2015-02-01 19:25:51 +01:00
rdb 13fb8079ec Better shader caching, GLSL "#pragma include" support, better error reporting 2015-02-01 17:52:52 +01:00
rdb 9b2e322f29 Display better error when encountering invalid prim index 2015-02-01 17:41:55 +01:00
rdb a7d1eb90c5 Expose has_extension to query whether OpenGL extension is supported 2015-01-24 21:56:06 +01:00
rdb 0f1243230d Fix OpenGL error on FBO shutdown
(caused by call to glGetError while context was already shut down)
2015-01-24 19:50:25 +01:00
rdb a6cf0960fa Remove EventStorePandaNode, it is no longer necessary
(since PandaNode now directly inherits from TypedWritableReferenceCount)
2015-01-24 19:50:14 +01:00
rdb 0a64bdb33b Fix MouseRecorder & let PandaNode inherit from TypedWritableReferenceCount 2015-01-24 16:12:04 +01:00
rdb 0dc0bbdf0c Missed this section, no point generating shaders in draw any more 2015-01-23 21:41:43 +01:00
rdb c3ca2f1a65 Fix regression with Actor loading 2015-01-23 21:24:29 +01:00
rdb 7ba0469148 Shader generation should be done in cull, not in draw 2015-01-23 15:03:50 +01:00
rdb a56f722c09 GeomPrimitive optimizations & tweaks 2015-01-23 13:54:29 +01:00
rdb c2aa6991d6 Fix glObjectLabel error, fix crash on shutdown with pstats-gpu-timing 2015-01-23 13:22:31 +01:00
rdb c5dd6c69dd fix Loader error reporting 2015-01-23 13:20:14 +01:00
rdb 7b18e5aa41 Merge ../panda3d-git 2015-01-22 17:10:28 +01:00
rdb eacb420d3f Merge branch 'master' of github.com:panda3d/panda3d 2015-01-22 17:09:54 +01:00
rdb 77c9e6cf6c Add support for instance arrays via vertex attrib divisors 2015-01-22 17:04:25 +01:00
rdb 0ad0d4ec33 Further optimizations to the cull pipeline.
The only transform still stored in CullableObject is internal transform.

NB: I haven't tested my PipeOcclusionCullTraverser changes.  Please contact me if you encounter problems with it.
2015-01-22 16:22:16 +01:00
rdb 536d6e7810 Fix obscure bug with BitMask64::get_next_higher_different_bit() 2015-01-22 14:02:01 +01:00
rdb 142bd6a021 Remove old MLightVector TexGen mode and FFP-based normal mapping 2015-01-22 12:26:22 +01:00
rdb 3423a09f4f Merge branch 'master' of github.com:panda3d/panda3d 2015-01-21 22:12:53 +01:00
rdb 94e5bbf579 Changes to support a custom GraphicsWindow derivation 2015-01-21 20:32:00 +01:00
rdb a7f7d54f10 Support vertex attributes with matrix type 2015-01-19 00:16:59 +01:00
rdb 095a402853 Fix window-resizing regression on Windows 2015-01-14 20:23:16 +01:00
rdb 17aafeba15 Fix stencil clear: reset stencil mask before glClearStencil 2015-01-13 03:18:05 +01:00
rdb 0b2a3f0c95 Fix assertion trigger in PandaNode 2015-01-12 21:52:09 +01:00
rdb 763727fbb1 attempted crash fix 2015-01-12 21:34:47 +01:00
rdb b9899ba747 Cull improvements: tighter sphere generation 2015-01-08 23:17:06 +01:00
rdb c04cd29246 Cull improvements: don't compute bounds when not necessary 2015-01-08 23:16:38 +01:00
rdb 75c1364373 Disable use of GL_NV_primitive_restart due to driver bugs 2015-01-08 11:43:28 +01:00