Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualNercury

Posted 08 March 2013 - 05:29 PM

So I believe that what you need to do is setup OpenGL as you normally would do, then create your own sub-viewport within that (e.g. half the width, half the height and centre it) which you can do your software clipping to. That way you can colour the lines inside the sub-viewport one colour, and outside the sub-viewport another colour and still be able to see them.

 

You can also clip the viewport with glScissor, I think it will make it easier because with smaller viewport the FOV would need to be adjusted to match larger viewport.


#2Nercury

Posted 08 March 2013 - 05:28 PM

You can also clip the viewport with glScissor, I think it will make it easier and you won't need to adjust FOV.


#1Nercury

Posted 08 March 2013 - 05:18 PM

Clear the scene once, render twice from different points of view? :)


PARTNERS