Menu

#716 non fullscreen quad for compositor pass + ISO Cpp bugfixes

Shoggoth
closed-accepted
nobody
5
2007-12-23
2007-08-23
nop
No

1/ Added non fullscreen quad feature for compositor pass.

Useful if the quad compositor should not cover the whole viewport.

Example of use :

const float fourThird=4.0/3.0;
CompositionTargetPass *tp = m_compositorTechnique->getOutputTargetPass();
tp->setInputMode(CompositionTargetPass::IM_PREVIOUS);
{ CompositionPass *pass = tp->createPass();
pass->setType(CompositionPass::PT_RENDERQUAD);
pass->setQuadCorners(-1,1,-1.0+fourThird,-1);
pass->setMaterialName("Ogre/Compositor/Passthru");
pass->setInput(0, std::string(inputBuffer));
}

Note : positions are given in normalised [-1;1]x[-1;1]
coordinates.

Todo : modify grammar parser to access to such feature

2/ Misc ISO C++ typo fixes

(removing extra commas and semi colons)

3/ Math::intersects

precision improved

Discussion

  • nop

    nop - 2007-08-23

    non fullscreen quad for compositor pass + ISO Cpp bugfixes

     
  • Steve Streeting

    Steve Streeting - 2007-12-23

    Logged In: YES
    user_id=16123
    Originator: NO

    Thanks!

     
  • Steve Streeting

    Steve Streeting - 2007-12-23
    • milestone: 552992 --> Shoggoth
    • status: open --> closed-accepted
     

Log in to post a comment.