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

ricardossy1

Member
Licensed User
Longtime User
curBody.Transparency=0 ' Set transparent
curBody.Transparency=-1 ' Set opaque
curBody.Transparency=100 ' Set +- semi-transparent as screenshot
Transparence.png
 
Last edited:
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
    Screen.jpg
    37.2 KB · Views: 133
  • Screen2.jpg
    Screen2.jpg
    25.8 KB · Views: 134
Last edited:
Upvote 0
Top