www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: cintix on November 10, 2011, 08:48:57 am

Title: Wall's not being drawn...
Post by: cintix on November 10, 2011, 08:48:57 am
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 ??
(http://www.cintix.dk/screen2.png)

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

(http://www.cintix.dk/screen1.png)


Title: Re: Wall's not being drawn...
Post by: EgonOlsen on November 10, 2011, 09:43:08 am
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:

Code: [Select]
yourHouse.setCulling(false);
Title: Re: Wall's not being drawn...
Post by: cintix on November 10, 2011, 11:04:33 am
Ohh thank you! It worked like a charm :-) Thank you for taking the time to help Egon :-)
Title: Re: Wall's not being drawn...
Post by: AGP on November 11, 2011, 09:21:31 pm
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).
Title: Re: Wall's not being drawn...
Post by: cintix on November 13, 2011, 07:08:31 pm
Ohh thank you :-) I tried SAMPLINGMODE_GL_AA_4X and it looks alot better now