[MPlayer-dev-eng] gl & distorted fisheye for dome projection
Johannes Gajdosik
johannes.gajdosik at gmx.at
Wed Jul 5 22:51:11 CEST 2006
On 07/05/2006 01:48:57 PM, Reimar Doeffinger wrote:
> Hello again,
> On Wed, Jul 05, 2006 at 12:08:46AM +0200, Johannes Gajdosik wrote:
> > > I'd recommend http://developer.nvidia.com/object/nvshaderperf_home.html.
> >
> > Thanks, but the link seems to be broken.
>
> Weird, works for me.
My email client is broken and includes the finishing dot(.) into the url.
Sorry.
> > I tried the patch. I had to fix glFmt2bpp in the following way,
>
> Right.
>
> > It worked, but again I got the pixelization (block) effect.
> > I suppose that the texture is internally represented with only
> > 3 bytes per pixel, instead of 6 bytes per pixel.
>
> Yep, that format is supported by none of the current cards. But they
> support 16 and 32 bit float. Though not sure from which version on
> exactly, so it might be a good idea to keep that other version anyway.
> Still, see if this works.
I tried your new patch.
1) with my old 16bit/pixel ppm: No effect,
the image is the same as when specify an inexisting texture.
2) with a new 32bit/pixel float-ppm. This is no official format,
I just supplied a 32 bit float (range 0..1) for each component of a pixel.
I had to further patch gl_common.c in order to be able to load this texture.
But there is again no effect, the same as when specify an inexisting texture.
I wonder what is going wrong. I even used ARB_precision_hint_nicest because I
have read ARB_precision_hint_fastest will make 16-bit-floats. No success.
I give the VO-related output of mplayer:
VO Config (720x576->720x576,flags=0,'MPlayer',0x32315659)
VO: [gl] 720x576 => 720x576 Planar YV12
VO: Description: X11 (OpenGL)
VO: Author: Arpad Gereoffy <arpi at esp-team.scene.hu>
OpenGL extensions string:
GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB
_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB
_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_tr
anspose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bg
ra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_draw_range_elem
ents GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_n
ormal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_shared_texture_palette GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EX
T_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture
_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_HP_occlusion_test GL_IBM_rasterpos_clip GL_IBM_text
ure_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV
_fragment_program GL_NV_fragment_program_option GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_dept
h_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_te
xture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_s
hader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_SG
IS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig GLX
_SGIX_pbuffer GLX_SGI_video_sync GLX_SGI_swap_control GLX_ARB_multisample GLX_NV_float_buffer GLX_ARB_get_proc_address
[gl] Creating 1024x1024 texture...
[gl] generated fragment program:
!!ARBfp1.0
OPTION ARB_precision_hint_nicest;TEMP coord, coord2, cdelta, parmx, parmy, a, b, yuv;TEX yuv.r, fragment.texcoord[0], texture[0], 2D;TEX yuv.g, fragment.texcoo
rd[1], texture[1], 2D;TEX yuv.b, fragment.texcoord[2], texture[2], 2D;PARAM ycoef = {1.1640, 1.1640, 1.1640, 0};PARAM ucoef = {0.0000, -0.3910, 2.0180, 0};PARA
M vcoef = {1.5960, -0.8130, 0.0000, 0};PARAM offsets = {-0.8742, 0.5313, -1.0860, 0.125};TEMP res;MAD res, yuv.rrrr, ycoef, offsets;MAD res.rgb, yuv.gggg, ucoe
f, res;MAD res.rgb, yuv.bbbb, vcoef, res;TEX result.color.r, res.raaa, texture[3], 2D;ADD res.a, res.a, 0.25;TEX result.color.g, res.gaaa, texture[3], 2D;ADD r
es.a, res.a, 0.25;TEX result.color.b, res.baaa, texture[3], 2D;END
[gl] Program statistics:
[gl] instructions: 11/1024
[gl] native instructions: 12/1024
[gl] temporaries: 2/32
[gl] native temporaries: 3/32
[gl] parameters: 5/1024
[gl] native parameters: 5/1024
[gl] attribs: 3/16
[gl] native attribs: 3/16
[gl] ALU instructions: 5/1024
[gl] TEX instructions: 6/1024
[gl] TEX indirections: 4/1024
[gl] native ALU instructions: 6/1024
[gl] native TEX instructions: 6/1024
[gl] native TEX indirections: 4/1024
[gl] Program statistics:
[gl] instructions: 8/1024
[gl] native instructions: 9/1024
[gl] temporaries: 5/32
[gl] native temporaries: 6/32
[gl] parameters: 4/1024
[gl] native parameters: 4/1024
[gl] attribs: 1/16
[gl] native attribs: 1/16
[gl] ALU instructions: 4/1024
[gl] TEX instructions: 4/1024
[gl] TEX indirections: 2/1024
[gl] native ALU instructions: 5/1024
[gl] native TEX instructions: 4/1024
[gl] native TEX indirections: 2/1024
[gl] Resize: 720x576
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
[gl] Resize: 720x576
XXX initial v_pts=0.040 a_pos=96000 (0.500) 1 ??% ??% ??,?% 0 0
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
Johannes
I have FX5200 and NVidia driver 6111.
More information about the MPlayer-dev-eng
mailing list