Main Menu
Menu

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.

Show posts Menu

Messages - ggp

#31
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?
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?
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.setAdditionalColor(RGBColor.WHITE);
            earth.setLighting(Object3D.LIGHTING_NO_LIGHTS);
            earth.setTransparencyMode(Object3D.TRANSPARENCY_MODE_ADD);
            earthsetTransparency(7);
            earth.setBillboarding(true);
            earth.shareCompiledData(dummyPlane);
            earth.build();
            earth.strip();
                                earth.translate(0.22f,-25, -0.12f);

                                world.addObject(earth);
                                 
                             


            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?
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?
February 18, 2012, 09:36:19 PM
or example "Multiple light sources".
#36
Support / How rotate object around pivot?
February 18, 2012, 09:27:32 PM
How rotate object around pivot?
example:  earth=obj , Sun=pivot.
#37
Billboarding - OK.

TextureManager.getInstance().addTexture("glow", new Texture(res.openRawResource(R.raw.glow), true));
            glowPlane = new Object3D(dummyPlane, true);
            glowPlane.setTexture("glow");
            glowPlane.setAdditionalColor(RGBColor.WHITE);
            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);
                               
                               world.addObject(glowPlane);

additive blending? code example please. I can not find.
#38
Thank you.
#39
How to make the light glow of the example "Multiple light sources" AnD3Bench?