### Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

### Messages - ggp

Pages: 1 2 [3]
31
##### Support / How to make an object not transferred to another at any angle?
« on: March 01, 2012, 09:33:32 pm »
How to make an object not transferred to another at any angle?, there is a universal function of collision?

32
##### Support / Re: How rotate object around pivot?
« on: February 24, 2012, 08:35:40 pm »
Thank You EgonOlsen, Worked perfect. But,is possible attach light to Dummy?.

33
##### Support / Re: How rotate object around pivot?
« on: February 19, 2012, 02:13:30 pm »
With  earth.setBillboarding(true); not working,  without  earth.setBillboarding(true);  works!!!

Here the code:

earth= new Object3D(dummyPlane, true);
earth.setTexture("glow");
earth.setLighting(Object3D.LIGHTING_NO_LIGHTS);
earthsetTransparency(7);
earth.setBillboarding(true);
earth.shareCompiledData(dummyPlane);
earth.build();
earth.strip();
earth.translate(0.22f,-25, -0.12f);

public void onDrawFrame(GL10 gl) {
try {

SimpleVector pivotsun= new SimpleVector();

pivotsun.x = -20;
pivotsun.y = -25;
pivotsun.z = -13;

earth.setRotationPivot(pivotsun);
//earth.getTransformedCenter(pivotsun);
//earth.translate(pivotsun);
earth.rotateY(0.05f);

}

34
##### Support / Re: How rotate object around pivot?
« on: February 18, 2012, 10:27:33 pm »

earth.setRotationPivot(pivotsun);

//no rotate
onDrawFrame(GL10 gl) {
earth.rotateY(2);
}

35
##### Support / Re: How rotate object around pivot?
« on: February 18, 2012, 09:36:19 pm »
or example "Multiple light sources".

36
##### Support / How rotate object around pivot?
« on: February 18, 2012, 09:27:32 pm »
How rotate object around pivot?
example:  earth=obj , Sun=pivot.

37
##### Support / Re: How to make the light glow of the example AnD3Bench?
« on: February 18, 2012, 02:04:08 pm »
Billboarding - OK.

glowPlane = new Object3D(dummyPlane, true);
glowPlane.setTexture("glow");
glowPlane.setLighting(Object3D.LIGHTING_NO_LIGHTS);
glowPlane.setTransparency(7);
glowPlane.setBillboarding(true);
glowPlane.shareCompiledData(dummyPlane);
glowPlane.build();
glowPlane.strip();

light= new Light(world);
light.setIntensity(250, 250, 250);
SimpleVector sv = new SimpleVector();
sv.set(fuente.getTransformedCenter());
sv.x = 0;
sv.y = -50;
sv.z = 40;
light.setPosition(sv);

38
##### Support / Re: How to make the light glow of the example AnD3Bench?
« on: February 17, 2012, 08:51:51 pm »
Thank you.

39
##### Support / How to make the light glow of the example AnD3Bench?
« on: February 17, 2012, 07:45:08 pm »
How to make the light glow of the example "Multiple light sources" AnD3Bench?

Pages: 1 2 [3]