Wall's not being drawn...

Started by cintix, November 10, 2011, 08:48:57 AM

Previous topic - Next topic

cintix

Hi everyone,

I'm fairly new to playing around with 3D, so sorry it my question is something that would have been self explaining.
I use one the examples from the wiki, to test my 3DS models to see how they preform, and I have created a simple house(it's around 1100 poly), and the looks great.

When i look throw the holes I made for the windows, then the walls inside the house are not being drawn ?? I added a screenshot's to explain what i mean.
I tried adjusting Config.maxPolysVisible and Config.farPlane, but with no luck.

BTW.. is there anyway to blur the render a bit, so its doesn't have so sharp edges ?

Uhmm the roofs shows, but where did the wall go ??


Here you can see the wall is there....




Faith is for the weak...

EgonOlsen

That's because you are looking at the backfaces of the walls that won't be drawn by default. You can enable this by doing:


yourHouse.setCulling(false);

cintix

Ohh thank you! It worked like a charm :-) Thank you for taking the time to help Egon :-)
Faith is for the weak...

AGP

Also, the sharp edges are called aliases. The process of blurring them is called antialiasing. To do this in jpct, you would use the hardware renderer and initialize the FrameBuffer with SAMPLINGMODE_GL_AA_4X (or 2X, but 4X would probably look better).

cintix

Ohh thank you :-) I tried SAMPLINGMODE_GL_AA_4X and it looks alot better now
Faith is for the weak...