Author Topic: Cube Texture Problems  (Read 5789 times)

Offline Nemetz

  • int
  • **
  • Posts: 53
    • View Profile
Re: Cube Texture Problems
« Reply #15 on: June 29, 2011, 11:38:02 am »
Hi 2 all!
In rendering i made this one:
Code: [Select]
box.setTexture("transp");
box.setTransparency(500);
box.setShadingMode(Object3D.SHADING_FAKED_FLAT);
box.align(cam);
box.strip();
box.build();
Where texture is a transparency texture only with a border.
Fron and left side looks god, but i don't see back side of box, i mean i don't see border there.

Is it a bug or i made something wrong?


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Cube Texture Problems
« Reply #16 on: June 29, 2011, 12:25:14 pm »
It's not a bug and you haven't done something wrong. It's by design and it's called backface culling. You can disable it by using Object3D.setCulling(...);

Offline Nemetz

  • int
  • **
  • Posts: 53
    • View Profile
Re: Cube Texture Problems
« Reply #17 on: June 29, 2011, 02:40:06 pm »
Thank you for your help!