Hi
Is it possible to add a fullscreen in the .py script ? Or is Panda 3D too slow for a fullscreen?
Just wondering before I try to “even” download the engine…Slouuuuwww connection, you know and a 30 meg app, to boot.
Orangutang
Hi
Is it possible to add a fullscreen in the .py script ? Or is Panda 3D too slow for a fullscreen?
Just wondering before I try to “even” download the engine…Slouuuuwww connection, you know and a 30 meg app, to boot.
Orangutang
Hiya,
My Panda3D window opens up just like any other ‘Windows’ window, so to run it full screen, all I do is just click the min/max icon in the upper right corner.
Works for me .
Cheers
In the \etc edit the file Config.prc and change the following to true:
To be a little more explicit, change this:
fullscreen #f
to this:
fullscreen #t
Ok Thank You.
I tried downloading it but its just too big for this slow connection.
Might Try later, though.
Are you guys satisfied with what the engine can do?
Is it slow/ fast… in 1024x768 Res, say, for example, on a 733Mhz and 32 meg video card 128 meg total RAM ?
Orangutang
I have a 56k. I d/l’d Panda over the course of 3 days, off and on, using DL Expert. It’s freeware and works like a charm. Give it a go.
Hm…
And how to set refresh rate? like 85 Hz? I couldnt find it in manual…
Do you mean your video refresh rate? That’s based on your Desktop properties.
David
well… my refresh rate are 85hz, and when i run fullscreen window its twinkle looks like 60hz. is there any way to change it?
There’s a different refresh rate for each video mode. If you’re opening an 800x600 fullscreen window, then it changes the video mode to 800x600. To set the refresh rate in 800x600 mode, change your desktop properties to that size and then set the refresh rate there.
David
My screen size is 1024*768 85hz and the same set in panda config file, but it doesnt look 85hz when i run some sample game…
Well, depending on what the game is doing in the CPU and how much it’s rendering, it might not be able to achieve the full 85 Hz. When you run pview and there’s nothing onscreen except a blue triangle, what is your frame rate? That will be the measure of the video rate that you’re actually syncing to.
David
Hi folks,
Is there a way to do this dynamicly from the application?
(also to change the applications resolution)
I tried to use:
import direct.directbase.DirectStart
from pandac.PandaModules import *
ConfigVariableBool("fullscreen",0).setValue(1)
But it had no effect.
Any ideas if and how it’s possible?
(I’m new to Panda3D and Python. So this might not even be the right function to do it.(?))
Since the window is opened automatically when you import DirectStart, setting the “fullscreen” variable after the window is opened is too late. You can set the variable before you import DirectStart, but that’s still just a one-time step that changes the window’s state at the beginning, and not again.
To change the window properties while the application is running, you can use base.win.requestProperties(), e.g.:
wp = WindowProperties()
wp.setSize(640, 480)
base.win.requestProperties(wp)
Note that requestProperties() does not take effect right away, but rather will take effect the next frame. If you need to wait for the result to happen now, you can call base.graphicsEngine.openWindows(), which does not return until all pending window events have completed.
The above allows you to resize and/or reposition the windows, as well as change a few other properties, like title and mouse pointer and such. Unfortunately, you cannot change a non-fullscreen window to a fullscreen window or vice-versa this way. If you want to switch between fullscreen mode, you will have to close the current window and open a new one. That’s a bit more complicated, but it’s still perfectly doable:
wp = WindowProperties()
wp.setFullscreen(1)
wp.setSize(1024, 768)
base.openMainWindow()
base.win.requestProperties(wp)
base.graphicsEngine.openWindows()
It’s even possible to change between DirectX and OpenGL at runtime in this way, by reassigning base.pipe before doing the above.
David
Thanks for your quick reply.
While reading some other postings I already noticed that the response time in this forum is really fast. That’s another PLUS for Panda3D.
I nearly already thought that my function call was too late to affect the running application.
I’ll try your suggestions.
Thanx David.