21830 Commits

Author SHA1 Message Date
Mitchell Stokes
214b67c3c0 deploy-ng: Convert .egg to .egg.bam instead of .bam 2017-11-22 15:39:34 -08:00
Mitchell Stokes
949214834c deploy-ng: Fix error when build directory is missing 2017-11-22 14:02:30 -08:00
Mitchell Stokes
a8d1e9444b deploy-ng: Fix build_apps user options 2017-11-22 13:15:40 -08:00
rdb
39dba025b7 deploy-ng: fix library suffix being stripped on FreeBSD 2017-11-22 21:42:17 +01:00
rdb
82ced9900e deploy-ng: allow using setup.cfg instead of setup.py 2017-11-22 20:57:03 +01:00
rdb
80b6021d22 deploy-ng: don't warn about missing Windows system libraries 2017-11-22 20:05:50 +01:00
rdb
da2ad0f0bc deploy-ng: default to ACP if console codepage codec wasn't frozen
This is necessary because when Python is initialized, it takes the codec to use from GetConsoleCP() and GetConsoleOutputCP() without bothering to check whether the given codec is available.  However, in most cases, the console codepage will be the same as the ANSI codepage (ie. GetACP()) which is always supported by Python via the 'mbcs' codec.

So what we do is we check whether the console codepage is frozen in, and if not, we set the console codepage to the ANSI codepage and set the stdin/stdout/stderr encoding to 'mbcs'.

This is still not a perfect solution because the ACP may not be able to encode all characters that the application is printing, which would still result in unexpected errors.  Ideally, we'd pull in Python 3.6's _io._WindowsConsoleIO class, which bypasses this whole mess by directly using the wide-character Windows APIs to write to the console.
2017-11-22 19:33:17 +01:00
rdb
6ec4e5db68 deploy-ng: fix typo in copyfile call 2017-11-22 19:28:08 +01:00
rdb
37572b312c loader: try appending .bam to filename if loading doesn't find model 2017-11-22 19:27:14 +01:00
Mitchell Stokes
a2fd511db8 deploy-ng: Make use of distutils.core.Command.announce() instead of print() for verbosity levels 2017-11-21 19:02:27 -08:00
Mitchell Stokes
56ebf981df deploy-ng: Add user_options and finalize_options to build_apps 2017-11-21 18:48:42 -08:00
Mitchell Stokes
44a4d18a8e deploy-ng: Add descriptions to build_apps and bdist_apps setuptools commands 2017-11-21 18:37:17 -08:00
Mitchell Stokes
54dad81646 deploy-ng: Add RPATH to search_path when parsing ELF files 2017-11-21 14:57:15 -08:00
Mitchell Stokes
3995ea4c3b deploy-ng: Fix skipping ignored directories 2017-11-21 11:07:39 -08:00
Mitchell Stokes
37b9e256d8 deploy-ng: Raise a RuntimeError if pip is not version 9.0 or greater
This is when pip download was introduced and is required for deploy-ng.
2017-11-21 09:52:26 -08:00
rdb
46c8852eed text: fix for certain versions of HarfBuzz 2017-11-20 20:40:51 +01:00
rdb
0edac2e94a Work around gamma issue with 64-bit color depths on NVIDIA hardware 2017-11-16 23:52:12 +01:00
Younguk Kim
82d66c1928 makepanda: add support for compiling with VS 2017
This is a squashed merge of PR #153 by bluekyu with fixes by rdb.

Closes: #153
2017-11-16 17:33:46 +01:00
rdb
001804113a ShaderGenerator: make colorscale/texture blending match FFP better
A notable change is that the color scale is now applied *before* texture blending, matching the FFP.  If this breaks anything, we might want to add a configuration option for this.
This also implements the remaining combine modes, CM_dot3_rgb and CM_dot3_rgba, and fixes the broken CM_subtract mode (which currently worked the same way as CM_add).

Fixes: #189
2017-11-16 15:58:13 +01:00
fireclawthefox
936ef1953c Small extensions for the mirror demo
Add extra parameters for buffer size and clear color
Add sample code at the bottom to display usage of mirror demo

Closes: #195
2017-11-12 00:19:50 +01:00
fireclawthefox
feb36d9818 Fixed mirror demo
Set "mirror" camera to always have the same roll as the mirror
-> otherwise the model in the mirror will move unexpectedly
Set y coordinate of the mirror corners to the cameras distance
-> This fixes a crash and keep the mirrored model at correct sizer

Closes: #194
2017-11-12 00:15:58 +01:00
fireclawthefox
649a9abf8d Fix initial usage of letterbox
Set start position of letterbox frames to the hidden position

Closes: #193
2017-11-12 00:06:13 +01:00
rdb
4b4e11c085 egg-palettize: implement mirror and border-color wrap modes
Closes: #192
2017-11-11 23:59:47 +01:00
rdb
404842e70b interrogate: fix warning message caused by erroneously wrapped remap
Fixes: #191
2017-11-11 20:36:58 +01:00
rdb
3621bd64c5 tests: add unit tests for bullet bam serializability 2017-11-08 01:56:31 +01:00
consultit
e13d14fe3d bullet: add bam serializability of remaining shapes
From #123 with significant changes from rdb.

Closes: #123
2017-11-08 01:53:53 +01:00
rdb
b8bf8bd641 interrogate: fix crash when calling functions returning TypedWritable 2017-11-08 00:04:00 +01:00
rdb
1b1d80cd27 More thoroughly fix issues with pickling Panda objects in Python 3
This also adds DatagramBuffer, a class for writing datagrams to memory and reading them from there again.
2017-11-08 00:02:35 +01:00
rdb
08629ef1a0 Fix a few compiler warnings 2017-11-07 15:38:40 +01:00
rdb
483a491ed7 interrogate: simplify coercion code
This remove support for coercing non-ReferenceCounted types that are neither default-constructible nor move-assignable, but it turns out none of the classes we really need it for matches that.
It further cuts down on the amount of code that is being generated to support coercion in cases where it makes absolutely no sense.
2017-11-06 19:53:38 +01:00
rdb
dd2806c8bd Mark constructors 'explicit' for which coercion makes no sense 2017-11-06 19:47:38 +01:00
rdb
dc1f5dd3b1 tests: fix syntax error on Python 3 2017-11-06 19:42:52 +01:00
rdb
b73c627c61 tests: add interrogate tests for MAKE_PROPERTY et al 2017-11-06 13:02:23 +01:00
rdb
96d237377b interrogate: add various sequence/mapping methods to seq/map property 2017-11-05 18:01:39 +01:00
kamgha
f6c12ced34
Update makepanda.py 2017-11-04 18:28:46 +01:00
rdb
0343dbcbba makepanda: locate setup.cfg using __file__, not working directory.
This fixes the buildbots, which import makewheel from inside the makepanda directory.
2017-11-03 20:15:21 +01:00
rdb
3f0ab1d198 interval: fix ActorInterval endFrame assignment when passing duration
Fixes: #187
2017-11-03 20:07:24 +01:00
rdb
c043755f94 Add --tests argument to makepanda, instructions to README.md 2017-11-03 20:06:49 +01:00
rdb
b865b31390 makepanda: add __version__ attribute to panda3d module 2017-11-03 20:06:07 +01:00
rdb
19fe51eddd makewheel: fix sha256 hashes being surrounded with b'' in Python 3 2017-11-03 20:05:24 +01:00
rdb
e0a3788636 Move metadata to setup.cfg; also use this for pytest configuration
This makes it possible to run pytest in the root directory.  It also lets us store metadata such as the current version number, preventing us from having this in several different places, and allowing us to phase out parsing dtool/PandaVersion.pp.
2017-11-03 20:04:37 +01:00
Mitchell Stokes
40aa65249b tests: Add tests to .travis.yml 2017-11-03 19:26:35 +01:00
Mitchell Stokes
aabf009ff0 tests: Add test_window_basic
This test just makes sure that created windows match the default
WindowProperties (with a few exceptions).

This also adds the following fixtures:

  * graphics_engine - scope='session', GraphicsEngine
  * graphics_pipe - scope='session', default GraphicsPipe
  * window - scope='test', GraphicsWindow with default framebuffer and window properties
2017-11-03 19:25:13 +01:00
Mitchell Stokes
9d7896ccc4 tests: Add simple NodePath tests using PyTest
These tests were converted from the tests branch with some changes:

  * Convert from unittest to PyTest
  * Update code to use new API (LVector3 instead of Vec3, properties, etc.)
2017-11-03 17:58:53 +01:00
Younguk Kim
a26662ce46 Fix compile error by missing header file 2017-11-02 18:04:36 +09:00
rdb
075cb14cbb bullet: implement debug draw via cull callback for efficiency
Now the debug drawing will no longer happen if the debug node is not being visited by the cull pass, ie. in another scene graph.  Furthermore, the generation code has been optimized a bit more.

This change means it no longer inherits from GeomNode.  Future improvements could include better culling (which is currently disabled entirely).

Closes: #130
2017-11-01 21:55:54 +01:00
rdb
490dbe7b2a readme: fix link to issue tracker 2017-11-01 21:32:48 +01:00
rdb
745b51f10f ShaderGenerator: fix M_blend to match fixed-function pipeline
See panda3d/panda3d#178
2017-11-01 20:20:38 +01:00
rdb
73d13a8f5c Merge remote-tracking branch 'origin/release/1.9.x' 2017-10-31 20:20:49 +01:00
rdb
c17db98aec Merge branch 'pr-pview-adjust-camera-clip' of git://github.com/eswartz/panda3d 2017-10-31 20:15:38 +01:00