Giter VIP home page Giter VIP logo

Comments (5)

serkkz avatar serkkz commented on May 30, 2024

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.

rdb avatar rdb commented on May 30, 2024

Must be a regression in 389b24e.

Is the reported base.pipe.display_width/_height correct?

from panda3d.

serkkz avatar serkkz commented on May 30, 2024
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.

rdb avatar rdb commented on May 30, 2024

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.

rdb avatar rdb commented on May 30, 2024

Has anyone been able to test the changes?

from panda3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.