www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: K24A3 on October 07, 2011, 04:09:22 am

Title: Object3D.setBillboarding()
Post by: K24A3 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);

Title: Re: Object3D.setBillboarding()
Post by: EgonOlsen 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.
Title: Re: Object3D.setBillboarding()
Post by: K24A3 on October 08, 2011, 08:37:27 am
ok I'll look into it, thanks.