Cyrille<br><br>Go ahead and commit those changes.<br><br>This turned out to be an architecture problem where PowerPC conformed to the casts and x86 didn't. The MacBook here also had the same problem. <br><br>Looks like some further vetting of the code is needed to deal with 'x86 float' issues.
<br><br>cgc<br><br><div><span class="gmail_quote">On 8/21/06, <b class="gmail_sendername">cyrille henry</b> <<a href="mailto:cyrille.henry@la-kitchen.fr">cyrille.henry@la-kitchen.fr</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
finally : i replace all GLclampd by float<br>and cast the value on the glClearDepth.<br>like in the attachment.<br><br>this solve the problem.<br><br>is it clean enough to be commited on the cvs?<br><br>cyrille<br><br>cyrille henry a écrit :
<br>> i made more test.<br>> the depth buffer is empty, but not with the correct value.<br>> the problem comes from GEMglClearDepth<br>><br>> this code :<br>><br>> /////////////////////////////////////////////////////////
<br>> // Render<br>> //<br>> void GEMglClearDepth :: render(GemState *state) {<br>> glClearDepth (10); // <- fix for test only<br>> post("depth : %d", depth); // <- ...<br>><br>> }
<br>><br>> gives :<br>> depth : 1073741824 in the log<br>> and the patch is working.<br>><br>> look like there is a problem with (GLclampd) casting.<br>><br>><br>> cyrille<br>><br>><br>> chris clepper a écrit :
<br>>> Yes, that mask is only for the depth buffer. The mask for color and<br>>> depth would be 256 + 16384.<br>>> On 8/21/06, *cyrille henry* < <a href="mailto:cyrille.henry@la-kitchen.fr">cyrille.henry@la-kitchen.fr
</a><br>>> <mailto:<a href="mailto:cyrille.henry@la-kitchen.fr">cyrille.henry@la-kitchen.fr</a>>> wrote:<br>>><br>>> I add the line :<br>>><br>>> post("mask %d, depth %d, current %d, color %d", mask,
<br>>> GL_DEPTH_BUFFER_BIT, GL_CURRENT_BIT, GL_COLOR_BUFFER_BIT);<br>>><br>>><br>>> and it gives me :<br>>> mask 256, depth 256, current 1, color 16384<br>>><br>>> looks OK.
<br>>> ???<br>>><br>>> cyrille<br>>><br>>> chris clepper a écrit :<br>>> > On 8/21/06, *cyrille henry* < <a href="mailto:cyrille.henry@la-kitchen.fr">cyrille.henry@la-kitchen.fr
</a><br>>> <mailto:<a href="mailto:cyrille.henry@la-kitchen.fr">cyrille.henry@la-kitchen.fr</a>><br>>> > <mailto:<a href="mailto:cyrille.henry@la-kitchen.fr">cyrille.henry@la-kitchen.fr</a>
<br>>> <mailto:<a href="mailto:cyrille.henry@la-kitchen.fr">cyrille.henry@la-kitchen.fr</a>>>> wrote:<br>>> ><br>>> > well, if you see something, then it "work better"
<br>>> > i think we have the same problem.<br>>> ><br>>> > so, i think the gemglcleardeph and gemglclear does not only<br>>> clear depth<br>>> > buffer, but also the color buffer.
<br>>> > but i don't really see why, and how to solve this.<br>>> ><br>>> ><br>>> > It works on both Nvidia and ATI on OSX, but not ATI on<br>>> Windows. The
<br>>> > code only clears the depth buffer, so I can't see what would<br>>> trigger the<br>>> > clearing of any other buffers. Maybe the GLdefine constants are<br>>> wrong<br>
>> > or there is an OR being done? Try printing out<br>>> GL_DEPTH_BUFFER_BIT,<br>>> > GL_CURRENT_BIT and GL_COLOR_BUFFER_BIT to the console.<br>>> ><br>>> > cgc
<br>>> ><br>>> ><br>>> ><br>>> ><br>>><br>>> ------------------------------------------------------------------------<br>>><br>>> ><br>
>> > _______________________________________________<br>>> > GEM-dev mailing list<br>>> > <a href="mailto:GEM-dev@iem.at">GEM-dev@iem.at</a> <mailto:<a href="mailto:GEM-dev@iem.at">
GEM-dev@iem.at</a>><br>>> > <a href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a><br>>> <<a href="http://lists.puredata.info/listinfo/gem-dev">
http://lists.puredata.info/listinfo/gem-dev</a>><br>>><br>>><br>><br>> _______________________________________________<br>> GEM-dev mailing list<br>> <a href="mailto:GEM-dev@iem.at">GEM-dev@iem.at
</a><br>> <a href="http://lists.puredata.info/listinfo/gem-dev">http://lists.puredata.info/listinfo/gem-dev</a><br>><br>><br></blockquote></div><br>