ARB_vp issue on ATI

OK, I was able to fix the very basic vp thing.

It looks like

PARAM AmbientColor0=state.lightprod[0].ambient;
PARAM DiffuseColor0=state.lightprod[0].diffuse;
PARAM SpecularColor0=state.lightprod[0].specular;
PARAM AmbientColor1=state.lightprod[1].ambient;
PARAM DiffuseColor1=state.lightprod[1].diffuse;
PARAM SpecularColor1=state.lightprod[1].specular;

contain invalid values, so I just calculated them myself in the VP.

Too many obvious bugs if you ask me.

On my Radeon8500, your program does display a flat blue model with ARB_vp, whereas the model is red and shaded by lighting with fixed function.

Originally posted by vincoof:
On my Radeon8500, your program does display a flat blue model with ARB_vp, whereas the model is red and shaded by lighting with fixed function.

Yes, that’s the cause and looks like it may be widespread.

ATI doesn’t seem strong in quality control. This is laughable.

Originally posted by V-man:
[b]OK, I was able to fix the very basic vp thing.

It looks like

PARAM AmbientColor0=state.lightprod[0].ambient;
PARAM DiffuseColor0=state.lightprod[0].diffuse;
PARAM SpecularColor0=state.lightprod[0].specular;
PARAM AmbientColor1=state.lightprod[1].ambient;
PARAM DiffuseColor1=state.lightprod[1].diffuse;
PARAM SpecularColor1=state.lightprod[1].specular;

contain invalid values, so I just calculated them myself in the VP.

Too many obvious bugs if you ask me.

[/b]
Were the corresponding lights enabled? Was lighting enabled? Just a wild guess …
This may be an issue of state not propagating through the pipe if the fixed function controls are disabled. Just like fixed function fog and NV_register_combiners.

Originally posted by zeckensack:
Were the corresponding lights enabled? Was lighting enabled? Just a wild guess …
This may be an issue of state not propagating through the pipe if the fixed function controls are disabled. Just like fixed function fog and NV_register_combiners.

Yes and yes. You can have a look at the code if you wish.

But I’m not sure if it’s necessary to have the lights and lighting enabled. I don’t know the spec that well at this point.

Originally posted by V-man:
Are you guys able to run this one OK http://www.geocities.com/vmelkon/verybasicvp.html
(PS: this is a different issue! be sure to turn on ARB_vp and observe the result. Does it look like the same as the fixed pipeline?)

Runs just fine, ARB_vp and fixed pipeline look the same on Radeon 9000Pro with Catalyst 3.5.

[This message has been edited by bumphoney (edited 07-22-2003).]

Originally posted by V-man:
[b] I have this demo that uses glCallList. Look inside RenderScene().
http://www.geocities.com/vmelkon/verybasicvp.html

On NVidia, the ARB, NV, NV2 work just fine.
On ATI, the ARB version gives a completely blue objects. Sometimes multicolor (red, green, blue. It depends on which object you select (sphere, cube, …)

[/b]

I had similar problems and I discussed it with ATI tech support. They understood the problem and the even told me they managed to fix it. It was about a month ago. They told me the fix would be in their next driver release. Not sur if it’s there yet…

I juste installed ATI’s latest driver. It’s significantly worst than before…