Author Topic: Object3D.setBillboarding()  (Read 2682 times)

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Object3D.setBillboarding()
« on: October 07, 2011, 04:09:22 am »
Question 1: How can I scale billboarded objects? setScale() appears to do nothing.

Question 2: How can I disable billboarding lighting? setLighting(LIGHTING_NO_LIGHTS) doesn't ignore nearby lighting.


Code: [Select]
obj = Primitives.getPlane(2, 2);
obj.setTexture("bb");
obj.setTransparency(50);
obj.setLighting(Object3D.LIGHTING_NO_LIGHTS); //?
obj.setBillboarding(true);
obj.setScale(0.02f); //?
world.addObject(obj);


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12297
    • View Profile
    • http://www.jpct.net
Re: Object3D.setBillboarding()
« Reply #1 on: October 07, 2011, 09:27:50 pm »
I can't verify this. Scaling works fine on billboarded objects and setting lighting to LIGHTING_NO_LIGHTS disables all light sources except for ambient (everything else would be very strange because lighting has nothing to do with billboarding). Just as it's supposed to be. If this is different in your case, i need a test case that shows the problem.

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Object3D.setBillboarding()
« Reply #2 on: October 08, 2011, 08:37:27 am »
ok I'll look into it, thanks.