Results 1 to 6 of 6

Thread: Proton irrlicht support for alpha transparent PNG ?

  1. #1
    Lesser Knight
    Join Date
    Jul 2011
    Posts
    51

    Default Proton irrlicht support for alpha transparent PNG ?

    As the title says, I'm trying to load this shadow blob:
    Name:  shadow.png
Views: 89
Size:  25.3 KB
    And apply it to a plane using this code:

    Code:
    scene::IAnimatedMesh* shadowMesh = GetIrrlichtManager()->GetScene()->addHillPlaneMesh("shadow", tileSize, tileCount);
    
    shadowNode = GetIrrlichtManager()->GetScene()->addMeshSceneNode(shadowMesh);
    shadowNode->setMaterialTexture(0, GetIrrlichtManager()->GetTexture("game/shadow.png"));
    shadowNode->setMaterialType(video::EMT_TRANSPARENT_ALPHA_CHANNEL);
    shadowNode->setMaterialFlag(irr::video::EMF_LIGHTING, false);
    But for some reason all I get is a textureless white plane. on the other hand it loads perfectly on original irrlicht (not proton version) on PC.

    I'm using many png assets with similar transparency for proton UI entities and they load fine, but irrlicht seems to have a problem

    converting it to rttex won't solve the problem either.

  2. #2
    Lesser Wizard YOmadBRO's Avatar
    Join Date
    Jul 2014
    Location
    Yo mad bro?
    Posts
    112

    Default

    Quote Originally Posted by darkchazz View Post
    As the title says, I'm trying to load this shadow blob:
    Name:  shadow.png
Views: 89
Size:  25.3 KB
    And apply it to a plane using this code:

    Code:
    scene::IAnimatedMesh* shadowMesh = GetIrrlichtManager()->GetScene()->addHillPlaneMesh("shadow", tileSize, tileCount);
    
    shadowNode = GetIrrlichtManager()->GetScene()->addMeshSceneNode(shadowMesh);
    shadowNode->setMaterialTexture(0, GetIrrlichtManager()->GetTexture("game/shadow.png"));
    shadowNode->setMaterialType(video::EMT_TRANSPARENT_ALPHA_CHANNEL);
    shadowNode->setMaterialFlag(irr::video::EMF_LIGHTING, false);
    But for some reason all I get is a textureless white plane. on the other hand it loads perfectly on original irrlicht (not proton version) on PC.

    I'm using many png assets with similar transparency for proton UI entities and they load fine, but irrlicht seems to have a problem

    converting it to rttex won't solve the problem either.
    Hmmmmm
    YOmadBRO

    To Do List :

    WOTD : (X)

    MAKE A GOOD WORLD : (PECKS) ()

    GET 200 WLS : (0/200)

    GET DEVIL WINGS : (0/460)

    GET LEVEL 100 : (20)

    GET 3 AWESOME FRIENDS (2/3)

    OWN 31JUMPS (X)

    Good Bye!

  3. #3
    Lesser Knight
    Join Date
    Jul 2011
    Posts
    51

    Default

    I wonder if Seth is checking this forum anymore

  4. #4
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Default

    Sorry, I'm not sure about that one. I don't use Irrlicht currently. I suspect a render mode flag isn't set or something on the Irrlicht texture.
    Seth A. Robinson
    Robinson Technologies

  5. #5
    Lesser Wizard
    Join Date
    Jul 2014
    Location
    Philippines
    Posts
    114

    Default

    Quote Originally Posted by Seth View Post
    Sorry, I'm not sure about that one. I don't use Irrlicht currently. I suspect a render mode flag isn't set or something on the Irrlicht texture.
    Seth, check my bug report for you. You really need to fix this!
    http://www.rtsoft.com/forums/showthr...ADE-SYSTEM-BUG!

  6. #6
    Lesser Wizard
    Join Date
    Feb 2013
    Posts
    142
    Last edited by feelthat; 08-18-2014 at 04:39 PM.

Similar Threads

  1. Replies: 0
    Last Post: 02-24-2014, 10:31 AM
  2. Transparent Legs...
    By TheRealThatGuy in forum Bugs & Glitches
    Replies: 2
    Last Post: 02-03-2014, 12:32 AM
  3. transparent!
    By ShadowKiller in forum Suggestion Box
    Replies: 0
    Last Post: 10-13-2013, 04:44 AM
  4. Replies: 2
    Last Post: 08-31-2013, 08:04 PM
  5. Irrlicht GUI support..?
    By tehJP in forum Proton SDK
    Replies: 2
    Last Post: 08-03-2012, 09:50 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •