DEFINE TEXTURE does not work in AC 20

Home Forums Problems and solutions in GDL Others DEFINE TEXTURE does not work in AC 20

This topic contains 8 replies, has 3 voices, and was last updated by  Joachim Sühlo 7 months ago.

  • Author
    Posts
  • #3181

    Joachim Sühlo
    Participant

    I have the following problem:
    DEFINE TEXTURE does not work in AC 20 with shadows as it works in AC 17:

    define texture “Texture1” “MW_Läufer_hellbraun”, 1.24, 1.24, 1 + 2 + 4, 0

    define material “MW Ziegel, braun, NF” 20,
    0.823529, 0.52549, 0.341176,
    0.8, 0.8, 0.15, 0, 1, 0,
    0.921569, 0.85098, 0.803922,
    0, 0, 0,
    0, ind(fill, “Misch-Schraffur 0%”), -1,
    ind(texture, “Texture1”)

    material “MW Ziegel, braun, NF”
    BLOCK 1, 1, 0.1
    BLOCK 0.1, 0.1, 1

    If I use 514 or 512 instaed of 1 + 2 + 4 in the DEFINE TEXTURE statement, it receives shadows, otherwise not.
    But 512 is a non documented value.
    What must I do, that it works in all AC-versions?

    GDL Object Developer
    b-prisma
    MAC OSx 10.11

  • #3182

    Barry Kelly
    Participant

    I am not having any problem with your original code (I had to change the texture image and the fill in the material).
    Can you post a screen shot of what you are seeing?
    Are your sun/shadow settings the same in both versions?

    Barry.

    Attachments:

    Versions 6.5 to 20
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • #3184

    Gergely Fehér
    Keymaster

    Please never use undocumented bits… As they are not part of the “official” package, we can change them at any time, and then your objects will change.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

  • #3185

    Joachim Sühlo
    Participant

    Attached yoe see a screenshot from AC 20 with both bits.

    Defining Textures

    The Bits of 512 and 514 (512 + 2) are not documented, but they are auto created by ArchiCAD 17, if I use the Special Menu with save GDL as master.gdl.

    GDL Object Developer
    b-prisma
    MAC OSx 10.11

  • #3186

    Barry Kelly
    Participant

    I had no problem in 20 with your original mask of 7.

    But I see from your image you are still in the GDL editor 3D preview.
    I was looking at the actual Archicad 3D window.

    Maybe the shadows just don’t work in the GDL 3D window?

    Barry.

    Versions 6.5 to 20
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • #3187

    Joachim Sühlo
    Participant

    Hi Barry,
    no, that was not the problem. In 3D main window the shadows are missing too.
    And it seems not to be a platform problem, because on Windows for me
    and my colleague (who works only on Windows) it is the same.

    GDL Object Developer
    b-prisma
    MAC OSx 10.11

  • #3194

    Barry Kelly
    Participant

    I am not sure what the problem could be – it is definitely working for me.
    Other than the obvious that shadows are off in the 3D window settings or the sun is 0% in the 3D projection settings > more sun.
    But I am sure that is not the case here.

    Just out of curiosity I thought I would try it again.
    This time no shadow – see attached image.
    Slabs and object next to each other.
    It worked before but not now it seems.

    Attachments:

    Versions 6.5 to 20
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • #3196

    Barry Kelly
    Participant

    Had a bit of a play and if you turn mask value 1 off (i.e. leave just 2+4) then all is good.
    Likewise turn transparency off in 3D window settings all is good.
    Seems like mask 1 is forcing the object to think it is transparent?

    Barry.

    Versions 6.5 to 20
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • #3205

    Joachim Sühlo
    Participant

    Thanks, Barry. This was in AC 19 the first time, where the Shadow is missing with mask 1.

    GDL Object Developer
    b-prisma
    MAC OSx 10.11

You must be logged in to reply to this topic.