|
From: Keith W. <kw...@cs...> - 2005-01-21 20:17:29
|
>> I ask because before trying to group the fog with the sun, I quickly >> tried submiting a fog turned off just prior to submitting the sun >> and then submitting the fog turned on again just after the sun...but >> the alpha-fog error is still present. Is that what you would have >> expected? Is the display group required? > > I would not have expected that. I don't know what's going on there. Rats. That's annoying. Ah me. >> My problem with the display group is that I can't create it because >> I don't have a TQ3Object to add to it. My sun (and all the objects >> in my program) are TQ3TriMeshData, not TQ3Object. It won't compile >> passing that to Q3Group_AddObject. Same is true for passing a >> TQ3FogStyleData to the group. When I do this, Q3Group_AddObject >> returns NULL, which is supposed to mean there was an error with >> creating the group. > > You're doing everything in immediate mode? Is there some reason you don't > create a TriMesh object from your TQ3TriMeshData? I'm not sure what immediate mode is. I'll look it up in the QD3D manual in a minute. Basically, I'm using Joe's Queeg framework, as I generally learn systems by hacking existing code. So I'm just duplicating Joe's approach. Maybe Queeg was meant to be small and exemplory and isn't really fleshed out in the sense you're describing above. At any rate, during the submition loop, Queeg makes calls like this: Q3TriMesh_Submit( &mTriMeshData, view ); Where mTriMeshData is of type TQ3TriMeshData and view is of type TQ3ViewObject. So, that's how I do it too because I didn't know there was any other way. Any rate, I can't figure out how to group these things. Are you saying they're not even the right type for grouping? That I need to convert them into TQ3Objects somehow? Would the conversion make the program run faster btw? ________________________________________________________________________ Keith Wiley kw...@cs... http://www.unm.edu/~keithw "Yet mark his perfect self-contentment, and hence learn his lesson, that to be self-contented is to be vile and ignorant, and that to aspire is better than to be blindly and impotently happy." -- Edwin A. Abbott, Flatland ________________________________________________________________________ |