skybox can not use on some android9-11 devices
like:google Pixel 3XL
like this:
Spatial sky = SkyFactory.createSky(assetManager, “Textures/Sky/St Peters/StPeters.jpg”, SkyFactory.EnvMapType.SphereMap);
rootNode.attachChild(sky);
its is nothing to render
version :jMonkeyEngine 3.4.0-stable
This is the entire program? it’s just a test program? if so, please upload it as zip file and i’ll try to debug it for you.
this is my test program,I tried several ways to create jme skybox,But it doesn’t work correctly
[testJmeSkyboxOnAndroid](https://github.com/YunlongYang/HeyCanvas/raw/master/testJmeSkybox.zip)
thank you very much,
I want to develop a Animation software on android use JME
1 Like
Pavl_G
July 14, 2021, 6:28pm
6
Set the material depth enum function to less or equal & it will work eventually, because the default seems to be greaterOrEqual, code example :
dataBaseStack.getParent().addLight(pointLight);
// BloomFilter bloomFilter=new BloomFilter();
// FilterPostProcessor filterPostProcessor=new FilterPostProcessor(app.getAssetManager());
// filterPostProcessor.addFilter(bloomFilter);
// app.getViewPort().addProcessor(filterPostProcessor);
Geometry sky = (Geometry) SkyFactory.createSky(app.getAssetManager(),
app.getAssetManager().loadTexture("AssetsForRenderer/Textures/sky.jpg"),Vector3f.UNIT_XYZ, SkyFactory.EnvMapType.EquirectMap);
sky.setLocalScale(0.5f);
sky.getMaterial().getAdditionalRenderState().setDepthFunc(RenderState.TestFunction.LessOrEqual);
dataBaseStack.getParent().attachChild(sky);
}
@Override
protected void cleanup(Application app) {
}
For Animation in jme using android, this is a structure you may find it useful :
2 Likes
sky.getMaterial().getAdditionalRenderState().setDepthFunc(RenderState.TestFunction.LessOrEqual);
It is worked use this
thanks for that.
3 Likes
About jme animation,I’ve come across a problem recently
i tryed to save my Model apart(T-pose model and animation)
A lot of ways have been tried. save compose,animclip,skinningcontrol…
I want to reuse animations on different models(same Armature)
Pavl_G
July 16, 2021, 1:42pm
9
Open a new forum thread & specify what you want to do specifically, so others can help.
pspeed
July 16, 2021, 2:33pm
10
Pavl_G:
Open a new issue
I think you mean new forum thread.
1 Like
Pavl_G
July 16, 2021, 4:04pm
11
Yep, you are right, I have corrected it.