PDA

View Full Version : Rendering problem



krishnan
06-09-2006, 10:19 PM
Hi,
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.

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

Jens Scheddin
06-11-2006, 02: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.

tamlin
06-11-2006, 02: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.

++luck;

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

ZbuffeR
06-12-2006, 08:57 AM
double topic ... please use only one ...
http://www.opengl.org/discussion_boards/ubb/ultimatebb.php?ubb=get_topic;f=3;t=014541

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

I have given you the correct answer.