RenderTarget Set Render Bounds/Offset

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
kklouzal
Posts: 343
Joined: Sun Mar 28, 2010 8:14 pm
Location: USA - Arizona

RenderTarget Set Render Bounds/Offset

Post by kklouzal »

Is it possible when rendering to target texture set the render bounds or a render offset so Irrlicht either only renders a portion of the screen into the target texture or offsets rendering away from the top left corner of the screen?

Then if my ITexture was 200x200 I could make it render a 200x200 portion of the screen into it like

Code: Select all

irr::core::position2di UpperLeftCorner(200,200)
irr::core::position2di BottomRightCorner(400,400)
Dream Big Or Go Home.
Help Me Help You.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: RenderTarget Set Render Bounds/Offset

Post by hendu »

Draw a pic zoomed to a smaller area of the texture? That's the viewport.
Draw a partial area? That's stencil.
Post Reply