1 Reply Latest reply on Aug 7, 2011 11:37 PM by kenwang

    all vertex array entires are on zero

    ditus00

      hi all,

      i got trouble to receive the correct vertex positions.

      my system spec and engine i use:

      ati1950X

      panda3d // im not sure about this engine

       

      here this sticky test thingi:

       

      //Cg

      //



      void vshader(float4 vtx_position : POSITION,  

      float2 vtx_texcoord0: TEXCOORD0,

      float4 vtx_color: COLOR,

      float4 vtx_raster0 : POSITION,

      in uniform float4x4 mat_modelproj,

      out float4 l_col : COLOR,

      out float4 l_position : POSITION

                   ) 

      {

      l_position=mul(mat_modelproj, vtx_position);

      //l_pos = mul(mat_modelproj,vtx_raster0);

      float4 posCLOUD = float4(vtx_raster0.x,vtx_raster0.y,vtx_raster0.z,vtx_raster0.w); //seems i do only receive 0.0

      float4 posBOX = float4(vtx_position.x,vtx_position.y,vtx_position.z,vtx_position.w); 

      float dis = length(posCLOUD-posBOX);

      l_col = dis/100;


      void fshader( in float4 l_col : COLOR,

                  out float4 o_color: COLOR

                   )

      o_color = float4(l_col.x,l_col.y,l_col.z,1);

       

       

      at vtx_raster0 im getting only  zero values back, but those should be the regular vertex position coordinates of the second obj.

       

      and a other question i do have:

      - is it possible to use a vertex texture fetch on this graphic card?

       

      thanks a lot 

      ditus00