Author Topic: Wall's not being drawn...  (Read 929 times)

Offline cintix

  • byte
  • *
  • Posts: 28
    • View Profile
Wall's not being drawn...
« 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 ??


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




Faith is for the weak...

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Wall's not being drawn...
« Reply #1 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);

Offline cintix

  • byte
  • *
  • Posts: 28
    • View Profile
Re: Wall's not being drawn...
« Reply #2 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 :-)
Faith is for the weak...

Offline AGP

  • quad
  • ******
  • Posts: 1515
    • View Profile
Re: Wall's not being drawn...
« Reply #3 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).

Offline cintix

  • byte
  • *
  • Posts: 28
    • View Profile
Re: Wall's not being drawn...
« Reply #4 on: November 13, 2011, 07:08:31 pm »
Ohh thank you :-) I tried SAMPLINGMODE_GL_AA_4X and it looks alot better now
Faith is for the weak...