I know it is possible to find game window size in python
but how set up game window size after game started in Blender ( I would like 720 480 )?
another, related question - how to use blender hot keys in Game Engine - say, I’d like to use Alt F3 to make movie? But after engine started - Alt F3 won’t work
Well yeah, the Blender hotkeys don’t work in the BGE because it’s a separate engine altogether from Blender - none of the capabilities of Blender carry over. If you want to take a screenshot, you can do so with a specific function - bge.render’s module has a makeScreenshot function, I think, but movie making isn’t built into the BGE. If you want to make a movie, you can use screen capturing software like VirtualDub.
Yes, even in the 3D window, it’ll be useful if we could (pre)set precise window sizes, to preview how the game it’ll look like!
And bring back UV editor’s red and green lines!!!
It is set by the arguments given to blenderplayer.
For starting my game, i use this little “script”
blenderplayer.exe -w 1024 768 Game.blend
here all the arguments
usage: blenderplayer.exe [-w [w h l t]] [-f [fw fh fb ff]] -c [-g gamengineoptions] [-s stereomode] filename.blend
-h: Prints this command summary
-w: display in a window
w = window width
h = window height
l = window left coordinate
t = window top coordinate
Note: If w or h is defined, both must be defined.
Also, if l or t is defined, all options must be used.
-f: start game in full screen mode
fw = full screen mode pixel width
fh = full screen mode pixel height
fb = full screen mode bits per pixel
ff = full screen mode frequency
Note: If fw or fh is defined, both must be defined.
Also, if fb is used, fw and fh must be used. ff requires all options.
-s: start player in stereo
stereomode: hwpageflip (Quad buffered shutter glasses)
syncdoubling (Above Below)
sidebyside (Left Right)
anaglyph (Red-Blue glasses)
vinterlace (Vertical interlace for autostereo display)
depending on the type of stereo you want
-D: start player in dome mode
angle = field of view in degrees
tilt = tilt angle in degrees
warpdata = a file to use for warping the image (absolute path)
mode: fisheye (Fisheye)
cubemap (Cube Map)
sphericalpanoramic (Spherical Panoramic)
depending on the type of dome you are using
-c: keep console window open
-d: turn debugging on
-g: game engine options:
Name Default Description
fixedtime 0 "Enable all frames"
nomipmap 0 Disable mipmaps
show_framerate 0 Show the frame rate
show_properties 0 Show debug properties
show_profile 0 Show profiling information
blender_material 0 Enable material settings
ignore_deprecation_warnings 1 Ignore deprecation warnings
- : all arguments after this are ignored, allowing python to access them from sys.argv
example: blenderplayer.exe -w 320 200 10 10 -g noaudioc:\filename.blend
example: blenderplayer.exe -g show_framerate = 0 c:\filename.blend
Yeah, you can make a batch file, like Makers_f said that loads the blenderplayer with your specific properties necessary for the game. If you want to set the screen size before runtime creation, you can do so with the ‘Blender Render’ rendering engine (top bar, with the File menu and such) selected and the screen size properties in the Rendering tab (camera icon).
thanks for answers - really helpful