Comments (5)
This problem is more interesting than it seems. I'm on Windows, my display resolution is 1920 by 1080, previously before Panda3D 1.10.14 this code created a full-screen window, now only 640 by 480.
from panda3d.core import GraphicsEngine, GraphicsPipeSelection, WindowProperties, \
FrameBufferProperties, GraphicsPipe
engine = GraphicsEngine.get_global_ptr()
pipe = GraphicsPipeSelection.get_global_ptr().make_default_pipe()
win_prop = WindowProperties()
win_prop.fullscreen = True
win_prop.size = (1920, 1080)
#win_prop.size = (800, 600)
win = engine.make_output(pipe,
name = "window",
sort=0,
fb_prop = FrameBufferProperties(),
win_prop = win_prop,
flags = GraphicsPipe.BF_require_window)
while not win.is_closed():
win.engine.render_frame()
It is worth noting that this is not observed if the size is specified differently than that of the display.
from panda3d.
Must be a regression in 389b24e.
Is the reported base.pipe.display_width
/_height
correct?
from panda3d.
from panda3d.core import GraphicsEngine, GraphicsPipeSelection, WindowProperties, \
FrameBufferProperties, GraphicsPipe
engine = GraphicsEngine.get_global_ptr()
pipe = GraphicsPipeSelection.get_global_ptr().make_default_pipe()
win_prop = WindowProperties()
win_prop.fullscreen = True
win_prop.size = (1920, 1080)
#win_prop.size = (800, 600)
win = engine.make_output(pipe,
name = "window",
sort=0,
fb_prop = FrameBufferProperties(),
win_prop = win_prop,
flags = GraphicsPipe.BF_require_window)
print(pipe.display_width, pipe.display_height)
print(win.get_x_size(), win.get_y_size())
while not win.is_closed():
win.engine.render_frame()
Output:
1920 1080
640 480
from panda3d.
This was caused by the fix to #1469.
Could you please test the new build and let me know whether there are still problems?
http://buildbot.panda3d.org/downloads/5da013e2e9a991c993532cc6886c53e4c38bccc0/
from panda3d.
Has anyone been able to test the changes?
from panda3d.
Related Issues (20)
- Implement relative mouse mode emulation using cursor centering HOT 1
- Add FuncReverse() to the Interval system
- Interval: `LerpFunctionInterval()` returns `toData` when played backwards and duration is 0.0
- RPM package generation fails
- Implement SteamAudio SDK HOT 9
- Font.setOutline does not work entirely correctly HOT 2
- how to use LerpFunctionInterval and functools.partial not working HOT 2
- finalize_distribution_options entry point requires panda3d import
- TransformStat::get_mat() returns singular matrix on macOS HOT 5
- font.setPixelsPerUnit crashes when values get too high HOT 3
- identical condition HOT 1
- return twice
- unclear error with possibly non BMP character HOT 3
- Standardize TypedWritable HOT 2
- PGEntry getCursorY fails on word-wrapped or multiline text HOT 2
- Grammar railroad diagram HOT 5
- 2 small Preprocessor bugs HOT 11
- Reimplement core functionality of DIRECT in C++ codebase HOT 1
- Cppparser preprocessor do not expand macros with arguments correctly HOT 94
- bam_model_extensions changes external path references in distributions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panda3d.