[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/src drawobject.c drawview.c editmesh_mods.c

Ton Roosendaal ton at blender.org
Thu Sep 30 10:17:09 CEST 2004


Hi,

Eeew, the g200 matrox was on our banned list 4 years ago already! :P
If you can compile yourself, then do the following to test;

src/drawobject.c
find the function call index_to_framebuffer(index) on line 4465 (in  
bbs_mesh_solid). Printf that value.

src/editmesh_modes.c
on line 509 you find result from sample_backbuf(), printf that value  
too.

Now compile and run Blender, and click on default cube in selectmode  
'face', with 'zbuffer select clipping' on. The values should be  
equal... it helps btw printing %x (hex).

The function that calculates such indices based on gfx card is in  
src/mywindow.c

-Ton-



On 30 Sep 2004, at 03:16, Stephane SOPPERA wrote:

> Ton Roosendaal wrote:
>
>> Hi,
>
> Hi,
>
>> Hrms, I've removed the code already for zbuffer value checks, it was   
>> just too unreliable with edges
>
> I noticed that.
>
>> or slightly non-planar quads. I also  wanted to have proper edge  
>> selection for subsurf-optimal draw, not  possible with previous  
>> method. Plus the zbuf method didnt even work on  linux with newer  
>> ATIs.
>
> What do you think of the method I gave in my previous mail?
>
>> I rather check on what exactly is wrong with your gfx setup. Whats  
>> your  card?
>
> A Matrox MGA G200 (quite old card) with (only) 8Mo Video RAM.
> (maybe this problem won't last long for me since I'm seriously  
> thinking upgrading my configuration ;-)
>
>> OS?
>
> The problem is reproduced on both Windows and Linux as long as  
> hardware acceleration is used (on window, in 24 or 32bit mode,  
> software rendering is used so it works and on linux hardware  
> acceleration is possible only in 16bit)
>
>> I can give some hints for (or a patch) with prints in the  code.
>
> It seems that sample_backbuf function does not return correct values.
> In framebuffer_to_index function, 16bits is used.
>
> What kind of print do you need? Maybe should it be possible to dump  
> the content of the backbuffer into an image file? Is it possible with  
> blender API?
>
> Thanks,
>
> --  
> Stephane SOPPERA
> http://perso.wanadoo.fr/stephane.soppera
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>
>
------------------------------------------------------------------------ 
--
Ton Roosendaal  Blender Foundation ton at blender.org  
http://www.blender.org



More information about the Bf-committers mailing list