[Kalzium] Kalzium molecule viewer

Alexandr Goncearenco neksa at neksa.net
Sun May 27 19:48:45 CEST 2007


Hello!

> Actually, if you are interested in globally useful KParts, there's another
> project, KryoMol, that focuses more on the KParts aspect. Anyway 99% of the
> code is shared, as these KParts are just thin wrappers around libavogadro.

KryoMol seems to be much less KDE4 prepared and is more focused on molecular 
dynamics visualization and it also has an extra dependency libqwt4.2 (quite 
outdated).
I am waiting for the responce from KyoMol author (Dr. Armando 
Navarro-Vazquez), but I think at the moment, I'll better work with Kalzium 
molecule viewer KPart.


> > in GLWidget::initializeGL():
> > glEnable( GL_LIGHTING );
>
> uh oh, indeed, that's rather unavoidable!
>
> > I will try Mesa 6.5.3-1 from debian experimental, which is there since
> > May'21. And an updated 2.6.21 kernel. I'll report success here, if you
> > wish.
>
> yes, I'm always interested.

Unfortunately, switching off DRI is not an option for me, I need it for pymol 
and Schroedinger Maestro.
So I had to figure out the way to make Kalzium working on my ATI 7500.

Yes, the problem is in Mesa DRI radeon driver. I use version 6.5.3.
it expects Light.Model.ColorControl == GL_SEPARATE_SPECULAR_COLOR
to be set even at the stage when it's not yet Light.Enabled.
That's why it triggers a harmful (I hope so) assert prohibiting me from 
working with the debug builds.  I'll send my bugreport to mesa-devel.

But instead of removing the assert, there is a simple workaround to get 
Kalzium molecular viewer working with my ATI and vanilla Mesa 6.5.3.

we just  enable GL_LIGHTING after 

glLightModeli( GL_LIGHT_MODEL_COLOR_CONTROL_EXT,
        GL_SEPARATE_SPECULAR_COLOR_EXT );

but not before.
I hope it has no side effects. Patch it attached. 

I can commit it to libavogadro-kalzium in KDE, if you think it's OK.

Best wishes,
Alexandr Goncearenco
GSoC student.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libavogadro-kalzium-radeon-bug.patch
Type: text/x-diff
Size: 744 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kalzium/attachments/20070527/7d8e9c5c/attachment.bin 


More information about the Kalzium mailing list