Per-pixel lighting

Hi guys!
I try to implement per-pixel lighting on linux on nvidia gf3
But also I have to work in PLIB scenegraph
I tried to use with it vertex programs but no luck. I need to implement light lobes
and I can use multitexturing and register combiners. Still have problems with cubemaps
Maybe someone post here a code how to make this.
Thanx in advance