I am awfully sorry I found the source of my error. My sky dome rendered after the rest of the world. Now everything works.
Thank you very much and I apologize for the inconvenience.
Thank you very much and I apologize for the inconvenience.
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 Object3D planet = Loader.loadASC(new FileInputStream("res/meshes/sphere.asc"), (float) planet_radius, true);
Object3D atmo = Loader.loadASC(new FileInputStream("res/meshes/sphere.asc"), (float) planet_radius, true);
atmo.rotateX((float) (Math.PI/2));
planet.rotateX((float) (Math.PI/2));
atmo.setOrigin(new SimpleVector( center[X], center[Y], center[Z]));
planet.setOrigin(new SimpleVector( center[X], center[Y], center[Z]));
atmo.scale((float) atmo_radius);
atmo.setTexture("atmo");
atmo.setSpecularLighting( true );
atmo.setCulling(false);
atmo.setTransparency(0);
atmo.setTransparencyMode( Object3D.TRANSPARENCY_MODE_ADD);
//atmo.setAdditionalColor(255,255,255);
planet.setTexture( textureId );
planet.build();
atmo.build();
planet.addChild(atmo);
Page created in 0.019 seconds with 12 queries.