Main Menu
Menu

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.

Show posts Menu

Messages - nerdinand

#1
Support / Re: Transparency - How does it work?!
July 04, 2014, 04:26:34 PM
Ah I see. Thanks. Although, I already Implemented it the other way now, and it works. But maybe I'll refactor it at some point.
#2
Support / Re: Transparency - How does it work?!
July 04, 2014, 01:50:16 PM
I see, so the way to go here is to modify Config.glTransparencyMul then? Could I for example modify it through a sine wave with each frame rendered?
#3
Support / Transparency - How does it work?!
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!