Object3D.setBillboarding()

Started by K24A3, October 07, 2011, 04:09:22 AM

Previous topic - Next topic

K24A3

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.



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);


EgonOlsen

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.

K24A3