AnsweredAssumed Answered

Opacity on a dirtmap

Question asked by Mortensen91 on Oct 25, 2016
Latest reply on Nov 3, 2016 by Mortensen91

Hey all

 

I'm having some problems when trying to add a dirtmap to a surface. I want to be able to control the opacity of the dirtmap in the CGA rule file. This is the code so far, the dirt map shows up along with the Grass texture, it is just to dominating. 

 

BuildingArea -->
               setupProjection(0, scope.xz, 2.25, 1.5, 1)             //ColorMap
               texture(Grass_Tex)
               projectUV(0)

               setupProjection(1, scope.xz, 2.25, 1.5, 1)             // BumpMap
               set(material.bumpmap, Grass_BumpMap)
               projectUV(0)

               setupProjection(2, scope.xz, '1, '1)                      // DirtMap
               set(material.dirtmap, Grass_Grunge)
               projectUV(2)

 

I have tried adding the set(material.opacity,0.5) but that makes all the materials transparent, hope one of you have the answer, and another question, I'm trying to add a bumpmap, but the bump is not visible in the scene, does any information lack in rulefile? 

Outcomes