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: PienueDut

26. May 2012, 09:10:47 am
Xith3D CommunityGeneral CategoryGeneral Discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)DynamicLabel transparency
Pages: [1]
Print
Author Topic: DynamicLabel transparency  (Read 825 times)
mordrek
Just dropped in

Offline Offline

Posts: 5


View Profile
« on: 08. November 2008, 10:55:08 am »

Hi.
I just started looking into Xith3D and I'm very pleased so far  Grin, although I had to do a quick ugly-hack to make my intel integrated graphics not crash all the time (ShapeAtomPeer fix)... Smiley

Anyway, I am fiddling around with animating transparency of some DynamicLabel and stumbled across something that might be a bug.

I have two DynamicLabels that are animated so that they fade in and then fade away, one label first and the other one starts fading in a bit after the first have started to get a nice effect.

The strange thing is that all letters in the first label, that also exists in the second label, obey the transparency values of the second label while the other letters obey the transparency of the first label as they should....

I haven't gotten around to create a simple test-case and my code uses a couple of animation classes so it's a bit much to post I guess.
Just wanted to know if anyone got some bells ringing.



Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 09. November 2008, 03:58:22 pm »

Hi mordrek. Welcome to Xith3D Smiley. I am peased to hear, that you like Xith3D.

DynamicLabels use shared shapes for the letters. This is nothing, that can be changed. Otherwise this class would lose its goal. Just use a regular Label and you're through. The prefix "Dynamic" doesn't aim towards the transparency attribute, but to the letters. So you won't get any negative performance, but actually possibly positive ones.

May I ask, what you changed in ShapeAtomPeer to make it work on your Intel hardware? Intel graphics cards always tended to cause problems. And maybe you found, what I've been searching for for a long time Smiley.

Marvin
Logged
mordrek
Just dropped in

Offline Offline

Posts: 5


View Profile
« Reply #2 on: 09. November 2008, 05:27:17 pm »

Ah, thanx. I had a gut feeling it was something like that Smiley

No new fix, sry :/
The fix was from a post on this forum from a year ago and involved setting useVBO to false in     bindGeometryComponent.  After some investigation I found the thread and apparently you suggested that one could achieve the same by setting some renderOption.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 09. November 2008, 11:50:25 pm »

After some investigation I found the thread and apparently you suggested that one could achieve the same by setting some renderOption.

Indeed. You can use the following line to do that.
Code:
canvas.getRenderOptions().setVBOsEnabled( false );

Looks like all intel cards don't support VBOs. This is pretty lame, since they should, if they report to support OpenGL 1.5 (IIRC) and especially the VBO related functions. But it is at least an info, that xith should generally disable VBOs for Intel hardware.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic