Hi,
On Sat, 2010-07-24 at 19:50 +0200, Mauro wrote:
> Hello everybody,
>
> I'm new with OpenSG 2.0 and I'm trying to insert a SHLChunk into a
> ChunkMaterial.
>
> What I would have done in OpenSG 1.8 is:
>
> SHLChunkPtr _shl = SHLChunk::create();
> _shl->readVertexProgram("vp.txt");
> _shl->readFragmentProgram("fp.txt");
> _shl->addUniformParameter("normalMap", 0);
>
> >From what I see in "testSHLLights.cpp" (Source/System/State/SHL) the
> >procedure
> is still the same. Am I right?
>
> My problem is that when I try to include <OpenSG/OSGSHLChunk.h> I get a
> «header not found» error.
> Is the header deprecated or has the "make install" failed?
State/SHL is definitely deprecated by default. The new shader
infrastructure is in Source/System/State/Shader. Examples are in
the Chunks subdirectory. If you can, work with those.
There is a SHL subdirectory which has wrappers (SimpleSHLChunk) so
that old code should work easier. There are also typedef mappers
for the old names in System/Depreciated/State/Shader, but these should
only be active if OpenSG was build with the deprecated flags
set in cmake (IIRC).
> Additional informations:
> * The test [testSHLLights] works fine;
but this is the one from Source/System/State/Shader/SHL not the
one from Source/System/State/SHL.
kind regards
gerrit
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users