[MPlayer-dev-eng] gl & distorted fisheye for dome projection
Johannes Gajdosik
johannes.gajdosik at gmx.at
Tue Jul 11 00:55:58 CEST 2006
On 07/08/2006 09:33:53 PM, Reimar Döffinger wrote:
> Hello,
> On Wed, Jul 05, 2006 at 10:51:11PM +0200, Johannes Gajdosik wrote:
> > 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.
>
> Your card does not support the ARB extension, only the significantly
> less powerful nVidia special-case extension.
The mplayer output tells me that I have many ARB extensions.
Which ARB extension am I missing?
>
> > 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.
>
> That will probably make no real difference.
> Update to latest SVN and use attached version (pay attention to the
> changed commandline!).
> Main advantage is that the same customtex can be used for any video as
> long as the aspect matches monitor aspect (can be achieved via -vf expand
> if needed).
> It also means your old customtex will not work (you can get a working
> one by creating one for a 1024x1024 video).
> Be aware that on your hardware the floating point texture will not be
> interpolated, so make customtex accordingly big.
> Also, for your other programs where linear interpolation is bad you
> should add the "nocustomtlin" suboption.
I finally compiled the latest svn version. But your fragment program now
gives me only a black screen. I attach the output of mplayer.
Also the edgedetect.fp fragment program does not work anymore.
It gives images which are mostly white, with black shapes moving
where persons should be.
./mplayer -vo gl ~/titel1a.avi
works fine.
Yours,
Johannes
johannes at pc1:~/mplayer> ./mplayer -vo gl:yuv=4:customprog=TOOLS/distort16_Reimar.fp:customtex=/home/johannes/Progs/Mathematik/Projection/index16.ppm ~/titel1a.avi -v
MPlayer dev-SVN-r19005-3.3.1 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 12, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
get_path('codecs.conf') -> '/home/johannes/.mplayer/codecs.conf'
Reading /home/johannes/.mplayer/codecs.conf: Can't open '/home/johannes/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-vo' 'gl:yuv=4:customprog=TOOLS/distort16_Reimar.fp:customtex=/home/johannes/Progs/Mathematik/Projection/index16.ppm' '/home/johannes/titel1a.avi' '-v'
[snip]
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_multi
sample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_obje
cts 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_transpose_matrix GL_ARB_verte
x_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_bgra 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_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_tex
ture GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal 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_EXT_texture3D GL_EXT_te
xture_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_occ
lusion_test GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_c
olor 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_depth_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_r
eflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_t
exture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_prog
ram GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_SGIS_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_pbu
ffer 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_fastest;TEMP coord, coord2, cdelta, parmx, parmy, a, b, yuv;TEX yuv.r, fragment.texcoord[0], texture
[0], 2D;TEX yuv.g, fragment.texcoord[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};PARAM 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, ucoef, res;MAD res.rgb, yuv.bb
bb, 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], 2
D;ADD res.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: 12/1024
[gl] native instructions: 13/1024
[gl] temporaries: 5/32
[gl] native temporaries: 6/32
[gl] parameters: 7/1024
[gl] native parameters: 7/1024
[gl] attribs: 1/16
[gl] native attribs: 1/16
[gl] ALU instructions: 8/1024
[gl] TEX instructions: 4/1024
[gl] TEX indirections: 4/1024
[gl] native ALU instructions: 9/1024
[gl] native TEX instructions: 4/1024
[gl] native TEX indirections: 4/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
[snip]
More information about the MPlayer-dev-eng
mailing list