  | | | RT Shader writing problem | RT Shader writing problem 2004-06-23 - By André Adam
Back Hi!
One of our programmers encountered some problems while rewriting our inhouse Realtime Shaders to match the new RTS2 structure. Perhaps someone on the list can shed some light here?
-Andr�
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Hi,
we have a problem with the realtimeshaders. How is the order of the elements in the "property page parameters"-structure defined?
First we thought the order must be the same as the order the parameters are defined in the SPDL-File. But we encountered errors. Then we had a look at the examples (again). And now we have no clue how the order is defined.
Have a look at "OGLTexture.cpp" and "OGLT2D.spdl". (Both can be found in XSI_4.0\XSISDK\examples\realtimeshader\OpenGL\src)
In "OGLTexture.cpp" you will find this structure the "in_pParams" will be casted to.
typedef struct tagOGLT2DPPG { LONG enable; LONG projection; LONG modulation; LONG refmap; LONG wrapS; LONG wrapT; LONG magnification; LONG minification; XSI_RTS_Texture header; } OGLT2DPPG;
But you won't find this kind of order in the SDPL-File. The example compiles and works.
The SDK-Docs won't help either. Will you?
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |