Android Question JPCT-AE

sn_nn

Member
Licensed User
Longtime User
Hello!
Is it possible make loaded 3D-model semitransparent in jpct-ae?
The TRANSPARENCY and TRANSPARENCYMODE only return values and modes. How i can set this values for loaded model?
 

sn_nn

Member
Licensed User
Longtime User
The problem partially was solved by using Reflection library:
SetTransparency in JPCT-AE Wrapper:
    World.addObject(curBody)
    'curBody.setTransparency(15)
    Dim obj1 As Reflector
        obj1.Target = curBody
        obj1.RunMethod2("setTransparency", 15, "java.lang.int")

But DepthBuffer works not properly... How to solve?
 
Upvote 0

sn_nn

Member
Licensed User
Longtime User
Thank you, ricardossy1!
Transparency is working fine with levels 0 and -1. Another values are giving randomly small artifacts!
P.S.:
But for now I can't make Polyline in jpct-ae(((( Some incompatible types with SimpleVector array... I tryed edit Sources, but i'm not a specialist in Eclipse. Can you help?
 

Attachments

  • Screen.jpg
    37.2 KB · Views: 181
  • Screen2.jpg
    25.8 KB · Views: 188
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…