|
From: Roger H. <rog...@mi...> - 2006-05-15 19:40:22
|
Hi Sean, The Null Illumination shader does not inherit from Surface Shader, it inherits from Shader. Surface Shader also inherits from Shader but that does not help. I am not sure you can put one in an attribute set. Can you put them both in a group and submit that instead? Roger Holmes. On 15 May, 2006, at 19:35, Sean McBride wrote: > Hi all, > > Up to recently I've been using Quesa 1.7 from CVS of 2006-03-28. Now > I'm trying 1.8 and now my app crashes. The code is: > > TQ3ShaderObject shader =3D Q3NULLIllumination_New(); > > TQ3PolygonData polygon_data; > polygon_data.numVertices =3D ...; > polygon_data.vertices =3D ...; > polygon_data.polygonAttributeSet =3D Q3AttributeSet_New(); > > Q3AttributeSet_Add( polygon_data.polygonAttributeSet, > kQ3AttributeTypeSurfaceShader, > &shader ); > > And then in E3Set::Add() (called by Q3AttributeSet_Add) this =20 > assertion fires: > > Q3_ASSERT( Q3Object_IsType ( > setData.attributes.surfaceShader, > kQ3ShaderTypeSurface ) ) ; > > It crashes a few lines later. I'm not sure if I built 1.7 with > assertions, but there was no crash then. > > Is this not the right way to add a null shader? Our goal is to add a > null illumination shader to a polygon object. > > Thanks for any advice! > > -- > ____________________________________________________________ > Sean McBride, B. Eng se...@ro... > Rogue Research www.rogue-research.com > Mac Software Developer Montr=E9al, Qu=E9bec, Canada > > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=120709&bid&3057&dat=121642= > _______________________________________________ > Quesa-develop mailing list > Que...@li... > https://lists.sourceforge.net/lists/listinfo/quesa-develop |