View Full Version : Rendering problem

06-09-2006, 11:19 PM
We are developing a CAD like software for PCB design related problems. We have imported the text file exported from the PCB softwares in our first step. In our project, we are displaying the imported text file in a image using the OpenGL API functions. The design gets rendered successfully. But the problem we are facing is.., while it is in smaller size, some areas of the design is not visible to the viewer, (particularly lines). If we are zooming in, then it is visible. We dont know how to solve it. We are using orthographic projection. Please help us to solve this problem.

06-10-2006, 05:11 AM
Did you tried to draw more wider lines ?

Jens Scheddin
06-11-2006, 03:26 AM
If it's a texture you are rendering to, it might get filtered away by bilinear interpolation and mip mapping. Try to turn those off.

06-11-2006, 03:26 PM
It might become invisible even without RTT, due to very small width of PCB traces, once you zoom out.

In addition, there was recently the thread about ATI cards "flipping" very narrow triangles here on this board.

My advice would be to switch to drawing LINES, not filled geometry, once zoomed out enough to fall below some threshold. While LINES (AFAIK) usually works by rendering two triangles, it should also take care of keeping them wide enough to always be visible.


06-12-2006, 05:49 AM
Did you created mipmaps correctly for your textures.
Are your far clipping plane far enough?

06-12-2006, 09:57 AM
double topic ... please use only one ...

06-13-2006, 02:07 AM
Please STOP reposting, use the thread already posted by sandeep.

I have given you the correct answer.