Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - nerdinand

Pages: [1]
1
Support / Transparency - How does it work?!
« on: July 04, 2014, 10:58:14 am »
Hello

I'm using JPCT-AE for something serious. ;)
It is a medical application where a user can select a pain point on a 3D model of the body. Right now I implemented this pain point using a Sphere primitive without texture and set the additional color to color it. Now I'd like to make it pulsate by making it more and less transparent over time. How would I implement this? I know there is a setTransparency() method, but this only accepts integers (IMO the JavaDoc could be improved here to explain some more what range of values it accepts and what they mean). When I set the transparency to -1, the object is fully opaque and setting it to 1 seems to make it fully transparent. How can I vary the transparency in order to achieve the desired effect?

Thanks for this easy to use lib and your help!

Pages: [1]