Mat.setTexture("ParallaxMap",map_parallax) Texture map_parallax = getAM().loadTexture(new TextureKey("Textures/textures/parallax/map_parallax.png",false)) Texture map_normal = getAM().loadTexture(new TextureKey("Textures/textures/normals/map_normals.png",false)) Mat.setTexture("DiffuseMap",map_diffuse) Mat = new Material(getAM(), "MatDefs/LodLight/LodLighting.j3md") This is the code i use to register the material,maybe this can help understanding what i’m doing: Texture map_diffuse = getAM().loadTexture(new TextureKey("Textures/textures/map_texture.png",false)) I also tried to use a total white map but the middle bar still remains :\ But anyway does anyone know a good linux program to generate heightmaps?I tried with gimp but even if mapping looks good i still see the texture deformed when i reach steep angle. I think parallax map is not made correctly,but i’m not totally sure…can somebody explain me how the parallax map should be built? Mat.setColor("Specular",ColorRGBA.White) Mat.setBoolean("UseMaterialColors", true) Mat.setTexture("ParallaxMap",getAM().loadTexture(new TextureKey("Textures/textures/parallax/map_parallax.png",false))) Mat.setTexture("NormalMap",getAM().loadTexture(new TextureKey("Textures/textures/normals/map_normals.png",false))) Mat.setTexture("DiffuseMap",getAM().loadTexture(new TextureKey("Textures/textures/map_texture.png",false))) This is the code i use for material: mat = new Material(getAM(), "MatDefs/Light/Lighting.j3md") I’m working on a map and i tried to use Lighting.j3md to implement Normal,Parallax and Steep Parallax.īut when i implement parallax and steep parallax it becomes like this:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |