NVidiaCG Shader Implementation Gotcha!

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
rabbit
Posts: 15
Joined: Wed Sep 02, 2009 12:39 pm
Location: Sydney, Australia

NVidiaCG Shader Implementation Gotcha!

Post by rabbit »

Ok guys, this isn't so much of a bug as it is a heads up over using the NvidiaCG implementation (I am using Irrlicht 1. 8 ).

You can't passing arrays of float and int arrays to CG shaders.

On another note, the CG integration only supports a limited number of data types, mainly ints, and floats. No support for char, short etc
chronologicaldot
Competition winner
Posts: 685
Joined: Mon Sep 10, 2012 8:51 am

Re: NVidiaCG Shader Implementation Gotcha!

Post by chronologicaldot »

Isn't NVidia going to dump CG? Or am I reading things wrong?
I suppose you could put this topic under "Everything 2d/3d Graphics".

Thanks for the heads up!
rabbit
Posts: 15
Joined: Wed Sep 02, 2009 12:39 pm
Location: Sydney, Australia

Re: NVidiaCG Shader Implementation Gotcha!

Post by rabbit »

I figure it should be excluded from the next version of irrlicht because it is discontinued.

It is a very poor choice of api because it doesn't support arrays. This means, that multi-lighting shaders are kinda impossible because you can't pass in arrays of light positions / colours.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: NVidiaCG Shader Implementation Gotcha!

Post by Nadro »

Yes, Cg support will be removed in v1.9.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply