Locked Create multi viewport 3d app in MFC

  • Tuesday, May 15, 2012 3:01 AM
     
     

    I'm working on a 3d game engine and I want to create four 3d viewports (top, left, front, perspective) like Autodesk Maya (four viewport And toolbar to each viewport)

    I have seen the "Viewer" project on www.CodeProject.com

    And I have learned how to make multi viewports but the viewports do not have toolbars.

    Besides I have seen the "Toolbar in splitter window pane" project on www.CodeProject.com

    And I have learned how to make a toolbar in a splitter window view.

    Now I have some questions:

    1. In "CMainFrame" at  "OnCreateClient" method I create the splitter then I add a viewport to each splitter view and I create the viewport  class that is a child to "CFrameWndEx" that has a DirectX viewport and toolbar but I get a problem : When I close the application the document is deleted many times "double deletion"

    . I correct the error by recreating the Create Context and setting the m_pCurrentDoc to null. now how do I get the document? I create a pointer to the document in the "CMainFrame" but I don’t Know, is this the right way to do it?

    1. I try to make a menu button in the viewport toolbar but it doesn't work. the button is not replaced.
    2. When I reset all toolbars I have an error when I close the program (ASSERT failure in CObject). And I don’t know how to correct it (the cause of error is create a toolbar in CFrameWndEx inside the splliter).

    Please help.

    Thanks in advance.

    sorry for waste your time.

All Replies

  • Wednesday, May 16, 2012 8:54 AM
     
     

    I have tried the link, and I found they refer to the same page.

    a 3d game engine? I think there is not so many experts about it here.


    Please mark this reply as answer if it helps you! Thanks for your cooperation! Good Luck to you.

  • Thursday, May 17, 2012 1:52 AM
     
     

    sorry the "Viewer" project is not in code project web site it's in www.gamedev.net

    the project page link is here (http://www.gamedev.net/page/resources/_/technical/apis-and-tools /creating-3d-tools-with-mfc-r1358).

    The second project "Toolbarin splitter window pane" is in code project web site and the project page link is here (http://www.codeproject.com/Articles/2285/Toolbar-in-splitter-window-pane).

    But ,please, my question is how to make four views with toolbars for one document in splitter window in MFC , and not how to make a game engine.

     a 3d game engine? I think there is not so many experts about it here.

        could you please tell me the best place to find experts about it.


    3d multi viewport