Blenderplayer can not change video resolution in Mac OSX #36501

Closed
opened 2013-08-18 16:09:04 +02:00 by Alex Fraser · 5 comments
Member

Category: UI/Interface

%%%The standalone Blender game player can not change video modes on OSX. If a file is configured to run full-screen, it will do so - but the resolution will not change, so the game plays in the native resolution.

To reproduce, run:

  /Applications/blenderplayer.app/Contents/MacOS/blenderplayer ~/Downloads/fullscreen_test.blend

(file attached) The screen should change to 800x600, in which case the individual pixels should be clearly visible. However this bug causes that not to happen.

Tested by Cheeseness with:
Blender: 2.66, 2.68a
Mac OSX: 10.8.4
Video: Intel HD 4000 (512MB)

Tested by Caley Finn with:
Blender: 2.68a
Mac OSX: 10.6.8
Video: nVidia GeForce 9400M
%%%

**Category**: UI/Interface %%%The standalone Blender game player can not change video modes on OSX. If a file is configured to run full-screen, it will do so - but the resolution will not change, so the game plays in the native resolution. To reproduce, run: ``` /Applications/blenderplayer.app/Contents/MacOS/blenderplayer ~/Downloads/fullscreen_test.blend ``` (file attached) The screen should change to 800x600, in which case the individual pixels should be clearly visible. However this bug causes that not to happen. Tested by Cheeseness with: Blender: 2.66, 2.68a Mac OSX: 10.8.4 Video: Intel HD 4000 (512MB) Tested by Caley Finn with: Blender: 2.68a Mac OSX: 10.6.8 Video: nVidia GeForce 9400M %%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

%%%Actually it wasn't an ATI card; it's an nVidia GeForce 9400M. OSX 10.6.8, Intel 64-bit CPU.%%%

%%%Actually it wasn't an ATI card; it's an nVidia GeForce 9400M. OSX 10.6.8, Intel 64-bit CPU.%%%
Author
Member

%%%Apparently on OSX the resolution should never be changed; instead, a backbuffer of the appropriate size should be created:

http://stackoverflow.com/questions/10596489/programmatically-change-resolution-os-x

https:*developer.apple.com/library/mac/documentation/graphicsimaging/Conceptual/OpenGL-MacProgGuide/opengl_contexts/opengl_contexts.html#*apple_ref/doc/uid/TP40001987-CH216-SW28%%%

%%%Apparently on OSX the resolution should never be changed; instead, a backbuffer of the appropriate size should be created: http://stackoverflow.com/questions/10596489/programmatically-change-resolution-os-x https:*developer.apple.com/library/mac/documentation/graphicsimaging/Conceptual/OpenGL-MacProgGuide/opengl_contexts/opengl_contexts.html#*apple_ref/doc/uid/TP40001987-CH216-SW28%%%

%%%"fixed" on r.60165, in fact I changed the interface in Mac to make clear to the user that you either pick fullscreen or you set the resolution (and I hid the 'desktop' option).
Attached is the test patch I used to see if the backbuffer downsampling would work but I'm not confident it would. Blender relies on glViewport everywhere.

If you want to pursuit the native support I recommend looking at the code where we handle 'framing' settings (letterbox, scaling, ...). If the solution can limit itself to ghost and that part of the code than it may be a go. Remember that Blender uses the ghost library as well.%%%

%%%"fixed" on r.60165, in fact I changed the interface in Mac to make clear to the user that you either pick fullscreen or you set the resolution (and I hid the 'desktop' option). Attached is the test patch I used to see if the backbuffer downsampling would work but I'm not confident it would. Blender relies on glViewport everywhere. If you want to pursuit the native support I recommend looking at the code where we handle 'framing' settings (letterbox, scaling, ...). If the solution can limit itself to ghost and that part of the code than it may be a go. Remember that Blender uses the ghost library as well.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#36501
No description provided.