Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 07:00:22 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)setAlpha on a line
Pages: [1]
Print
Author Topic: setAlpha on a line  (Read 141 times)
gbrinon
Just dropped in

Offline Offline

Posts: 24



View Profile
« on: 26. December 2011, 03:15:57 pm »

Hi,

I've seen that there's no "setAlpha" method for the lines because it doesn't inherits from org.xith3d.scenegraph.primitives.Quad .
I have to draw lines and make them disapear smoothly (so changing their alpha at the end of their lifetime)
Is there and other object that can be used as a line and which implements a setAlpha method ?

Thx
Logged

Guillaume
HEMERA project on XITH3D
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 26. December 2011, 06:08:03 pm »

You could either manipulate the vertex alpha (could get expensive) or add a proper appearance to manipulate an alpha for the whole geometry.
Logged
gbrinon
Just dropped in

Offline Offline

Posts: 24



View Profile
« Reply #2 on: 28. December 2011, 12:21:18 pm »

The "appearance" solution works fine, thanks a lot
Logged

Guillaume
HEMERA project on XITH3D
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic