Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

MixMaterial problems

$
0
0

Hello @Luaacro,

First of all, thank you for this new material. 👍

1) - To follow the discussion on the PR, I still have the problem with mixTexture1 and mixTexture2 that mix. I still have also the problem with alpha channels that do not draw textures but a light shade or very dark.

The idea was to have a mix with the diffuseTextures, but not with the mixTextures because the effect obtained does not give the desired result.

For you to understand better, I add my terrain editor online for you to test and see the result live :

Demo Terrain Editor (I can send you the full zip if you need.) I intend to offer this complet terrain editor for Babylon, I think it can be useful to many people.

Use :

  1.  select the terrain 'Delos' in the menu Load :
  2.  Activate edition mode (red button)
  3.  Select Painting mode to paint textures in the terrain.
  4.  select the texture one by one and paint.

We can see that the textures is a mix between diffuseTexture1 with diffuseTexture5,  diffuseTexture2 with diffuseTexture6, diffuseTexture3 with diffuseTexture7, diffuseTexture4 with diffuseTexture8 (mixTexture1 and mixTexture2 are mixing according to their RGBA channel)
We can also see that it is not possible to paint sand, it is simply transparent shadows or very dark. (I try material.alpha 1.0, but that does not change anything.)

try to paint snow on the mountain and repaint some rock over the snow. the snow remains apparent.

2) - I also saw a very small errors in the file mixMateriel.babylon.ts: if(this.mixTexture2) instead of if(this._mixTexture2) line: 322

3) - I also find a problem with the fog that makes all the texture white. the terrain and the sky this is all white and there is no fog.

The shadows and lights work perfectly well. 😊

Thank you for your help.

Screenshot result :

855679229_2018-05-2315_03_26-Greenshot.thumb.jpg.f5dddfbce09152cc640df58fbd56249d.jpg


Viewing all articles
Browse latest Browse all 760


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>