2D Drawing and Open GL

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 09/09/2011 at 07:40, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R13 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hi,

I encountered a problem when using DrawLine2D or any other 2D drawing function with Open GL activated. This problem was already there in R12:

All objects, polygon objects as well as simple objects like cubes, will be displayed wrong as soon as just one 2D line is drawn. The image shows the kind of error (right hand). Faces that are directed in x or z direction are displayed as if the normals are reversed. But remember: it's a standard cube!

_<_img src="http://www.c4dplugin.de/wip/opengl_problem.jpg" border="0" /_>_

Any ideas?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 12/09/2011 at 02:27, xxxxxxxx wrote:

I can confirm this. I will report this.

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 12/09/2011 at 03:10, xxxxxxxx wrote:

Ok, the problem is that the 2D drawing functions disable the Z buffer. Our OpenGL developer recommends to use the non-2D functions in camera space instead. If this doesn't work you can alternatively call bd- >SetDepth(TRUE) to enable the Z buffer again.

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 12/09/2011 at 07:13, xxxxxxxx wrote:

ok, bd->SetDepth() does it when calling after 2D drawing. But this function is available only in R13, isn't it?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 12/09/2011 at 07:17, xxxxxxxx wrote:

Originally posted by xxxxxxxx

But this function is available only in R13, isn't it?

Unfortunatly, yes. So for R12 I'm afraid you have to use the non-2D drawing functions.

cheers,
Matthias