drawWireframe() - only drawing top-left quarter

Started by anonymous_reality, May 22, 2012, 01:18:50 PM

Previous topic - Next topic

anonymous_reality

I'm having a problem with drawWireframe(). It's not really an important issue, but it's a weird one.

When using drawWireframe(), the first draw is fine, but any subsequent drawing (like after moving my camera), it's only drawing to the top-left quarter of the frameBuffer (or the buffer is only drawing the top-left quarter to the Graphics object, not sure which).

Drawing normally, (i.e. draw()) is fine.

Any idea why? Is there something I need to do in the setup that you wouldn't normally do?

EgonOlsen



EgonOlsen

I can't see a reason for this behaviour. The wireframe's will be drawn into the same buffer as the normal rendering and there's no code that i'm aware of that clips it in this way. Please try to do a normal draw-call first and the wireframe-draw right after that. If it's really a problem with the wireframe only, the result should be a normal render with some wireframes in the top left corner only.

anonymous_reality

Thanks, it's not really an important issue, I won't be using wireframe other than for testing.

Strangely, the first draw of the WF is fine, it's only once I start moving the camera that it goes wonky. I'll give your suggestion a go!