Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(268)

Issue 4431072: 2.5x blenderplayer (BGE) anti-aliasing & embedding (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by dfelinto
Modified:
13 years, 7 months ago
Reviewers:
jesterKing, bf-codereview
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

Patch originally submitted to Blender Tracker http://projects.blender.org/tracker/?func=detail&aid=26799&group_id=9&atid=127 This patch is necessary for Burster web-plugin, but also for any other application relying on multisampling for blenderplayer and parented opengl window (which is currentyl supported for both Linux and OSX, and this patch adds it to Windows). Patch from Sebastian Korczak, with some small tweaks/cleans on my end. From the tracker: ############## This patch fix anti-aliasing (multisampling) implementation for win32 platform. It also gives opportunity to embed blenderplayer inside parent window. Usage: blenderplayer.exe -i 123456 -m 16 file.blend where: 123456 - parent window handler (integer, default: 0) 16 - multisample level (integer, default: 0, max: 16. Put there maximum level you want. If not supported, player will automatically try 15,14,13,...,3,2,1) ############## It changes ghost, so it would be nice to assure it doesn't affect Blender. #################### Update - closed, patch committed at rev. 36470. Thanks for the review(s).

Patch Set 1 #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -61 lines) Patch
intern/ghost/intern/GHOST_SystemWin32.cpp View 2 chunks +9 lines, -1 line 0 comments Download
intern/ghost/intern/GHOST_WindowWin32.h View 2 chunks +4 lines, -0 lines 0 comments Download
intern/ghost/intern/GHOST_WindowWin32.cpp View 10 chunks +61 lines, -32 lines 10 comments Download
source/gameengine/GamePlayer/ghost/GPG_Application.h View 1 chunk +5 lines, -5 lines 2 comments Download
source/gameengine/GamePlayer/ghost/GPG_Application.cpp View 6 chunks +18 lines, -11 lines 0 comments Download
source/gameengine/GamePlayer/ghost/GPG_ghost.cpp View 8 chunks +15 lines, -12 lines 1 comment Download
source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_OpenGLRasterizer.cpp View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 4
dfelinto
13 years, 8 months ago (2011-04-27 23:09:35 UTC) #1
dfelinto
some comments on top of the original patch. This patch is actually the original work ...
13 years, 8 months ago (2011-04-28 17:15:20 UTC) #2
jesterKing
The patch looks good as far as I'm concerned. http://codereview.appspot.com/4431072/diff/1/intern/ghost/intern/GHOST_WindowWin32.cpp File intern/ghost/intern/GHOST_WindowWin32.cpp (right): http://codereview.appspot.com/4431072/diff/1/intern/ghost/intern/GHOST_WindowWin32.cpp#newcode714 intern/ghost/intern/GHOST_WindowWin32.cpp:714: ...
13 years, 8 months ago (2011-04-28 21:53:25 UTC) #3
dfelinto
13 years, 7 months ago (2011-05-04 02:01:38 UTC) #4
patch commited to trunk with some final small adjustments.
review #36470

(is there any option to close this issue?)

http://codereview.appspot.com/4431072/diff/1/intern/ghost/intern/GHOST_Window...
File intern/ghost/intern/GHOST_WindowWin32.cpp (right):

http://codereview.appspot.com/4431072/diff/1/intern/ghost/intern/GHOST_Window...
intern/ghost/intern/GHOST_WindowWin32.cpp:714: while (iAttributes[17] > 0) {
On 2011/04/28 21:53:25, jesterKing wrote:
> iAttributes[17] looks very obscure. At least have a comment explaining it, or
> better yet, a comment *and* a descriptive #define for 17
It's not that obscure. iAttributes is defined above and [17] stands for
multisampling. I think a #define would be a bit overkill so I added only a
comment :)

http://codereview.appspot.com/4431072/diff/1/intern/ghost/intern/GHOST_Window...
intern/ghost/intern/GHOST_WindowWin32.cpp:721: #ifdef BF_GHOST_DEBUG
I created GHOST_PRINTF (couldn't test though, I forgot how to enable ghost
debugging).

http://codereview.appspot.com/4431072/diff/1/intern/ghost/intern/GHOST_Window...
intern/ghost/intern/GHOST_WindowWin32.cpp:727: iAttributes[17] -= 1;
On 2011/04/28 21:53:25, jesterKing wrote:
> See the previous comment about iAttributes[17]
See the previous reply ;)

http://codereview.appspot.com/4431072/diff/1/intern/ghost/intern/GHOST_Window...
intern/ghost/intern/GHOST_WindowWin32.cpp:735: #endif // BF_GHOST_DEBUG
done

http://codereview.appspot.com/4431072/diff/1/source/gameengine/GamePlayer/gho...
File source/gameengine/GamePlayer/ghost/GPG_Application.h (right):

http://codereview.appspot.com/4431072/diff/1/source/gameengine/GamePlayer/gho...
source/gameengine/GamePlayer/ghost/GPG_Application.h:66: const bool
stereoVisual, const int stereoMode, const GHOST_TUns16 samples=0);
sorry Nathan, next time? I'm still a bit clueless regarding Doxygen. I do want
to help it to be in bge code but I will do it at once. To get this patch in
trunk we must...

On 2011/04/28 21:53:25, jesterKing wrote:
> I know there hasn't been much before here, but please, add doxygen style docs
in
> headers whenever you add something :)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b