S sn_nn Member Licensed User Longtime User Oct 3, 2020 #1 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?
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?
S sn_nn Member Licensed User Longtime User Oct 3, 2020 #2 The problem partially was solved by using Reflection library: Code: 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
The problem partially was solved by using Reflection library: Code: 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?
ricardossy1 Member Licensed User Longtime User Oct 12, 2020 #3 curBody.Transparency=0 ' Set transparent curBody.Transparency=-1 ' Set opaque curBody.Transparency=100 ' Set +- semi-transparent as screenshot Last edited: Oct 12, 2020 Upvote 0
curBody.Transparency=0 ' Set transparent curBody.Transparency=-1 ' Set opaque curBody.Transparency=100 ' Set +- semi-transparent as screenshot
S sn_nn Member Licensed User Longtime User May 22, 2021 #4 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: 633 Screen2.jpg 25.8 KB · Views: 606 Last edited: May 22, 2021 Upvote 0
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?