Material Shader: output fragment depth?

hi,
I'm working on a game with very complex isometric sprite-based scenes. Currently we're doing the depth-sorting in software (AS3) and it's taking up a considerable amount of our frame time. I've been eagerly awaiting Molehill so that I can finally use z-buffering to depth-sort the scene, however reading through the docs I'm not sure whether it can actually do what I need it to.
In order to implement depth sprites (aka "nailboard sprites"), I need to be able to output the fragment depth from the material shader. In GLSL this is gl_FragDepth. In DirectX it's PS_OUTPUT.DEPTH.
Reading the docs, it appears that only colour can be output by the material shader? Is this correct?!
If so, this is very frustrating.
Is there any way to access the stencil/depth buffer, or render-to-texture?

This is a Molehill question rather than a Pixel Bender 3D question. PB3D is built on top of Molehil so doesn't supply anything more than Molehill does. You might want to ask on the Flash player forums here:
http://forums.adobe.com/community/labs/flashplatformruntimes/incubator/
Bob

Similar Messages

  • Material Document output message type.

    Hi Experts
    Please advise the details to be maintained in MN23 for the below message type.
    Goods Issue Sub-con
    Material Document output message type.
    Trans./Event Type:
    Print Version:
    Print item:
    Debit/Credit Ind:
    Rgds
    MM

    SAP-MM1 wrote:
    Hi Experts
    >
    > Please advise the details to be maintained in MN23 for the below message type.
    >
    > Goods Issue Sub-con
    > Material Document output message type.
    >
    > Trans./Event Type:
    > Print Version:
    > Print item:
    > Debit/Credit Ind:
    >
    > Rgds
    > MM
    Hi,
    Trans./Event Type: WO(Goods Movement for Subcontracting)
    Print Version:1(Individual Slip)
    Print item:  3(GR/GI Slip for Subcontracting)

  • Material document "Output type".

    Hi,
    after setting the system with the following parameters (trx MN21):
    Output type: WE01,
    Trans/Event type: WE
    Print version: 1,2,3
    Print item: 6
    Output type: WE02,
    Trans/Event type: WE
    Print version: 1,2,3
    Print item: 6
    Output type: WE03,
    Trans/Event type: WE
    Print version: 1,2,3
    Print item: 6
    output types WE01, WE02, WE03 are not created automatically
    What is the difference between print item 1 and 6 ?
    Can't understand why
    Best regards

    hi,
    maintain one output type we03 thru transaction mn21 with the following data
    Event type:WE
    Print version :3
    Print indicator: 1
    assign the output type to the printer.
    1- material document print out
    6- GI/ GR Document print out
    Regards,
    velu

  • Material Document Output Message

    Hi
    I cutomize the Mat.Doc Output Message WE01 to ZE01.
    In OMJ3 I already removed the WE01 for the new plant.
    However still in the Plant#2000 material document picks up both message
    Where else i should remove ?
    Thanks
    MM

    Hi Garapati 
    Output WE01 is already in use at other plants (ex; 1000) using different forms.
    ZE01 which is to be used for plant 2000.
    So, I can't delete in Output Determination or NACE/T.
    I thought if I dont maintain the WE01 output type in OMJ3 for Plant 2000, suppose to not appear and only appear the ZE01.
    But now both appears.
    Rgds
    MM

  • Material master/Output type IDOC /MATMAS

    Hello ,
    I want to generate Idoc(MATMAS) whenever a material is created or changed. I could do the same for ME21N/ME22N for PO with PO idoc. Would like to know whether there is output types for material master or anything else so that i can generate Idoc for my senario.
    Thanks for ur time.
    Jeeva.

    Hi,
    the configurations which we do for material master is below...we don't give any output for material master,becoz its a master data not transactional data..
            For distributing master data like material master, vendor master, customer master we have standard transaction codes that are provided by sap.
    Bd10(send material master)
    Bd12(send customer master)
    Bd14(send vendor master)
    Bd30(bom’s)
    The order of Tcodes are:
               Bd54 (creating logical systems)
               Scc4 (assigning logical systems )
               Sm59 (rfc destination)
               We81 ( message type)                      
               We30 ( idoc type)
               We31 ( segment type)
               We82 (linking message type and idoc type)
               We21 (creating port)
               We20 (partner profiles)
               Bd64 (Distribution model)
               Bd10 (material master)
    Ex: material master.
         Message type: matmas.
         Idoc type: matmas05.
    Rewrad if helpful.
    Regards,
    Nagaraj

  • Single raw material with output of 2 finish product

    All,
    In our scenario, we have the pressing machine which have the dye to create the right and left bumper of the car in a single stock . if we give the single raw material , the ouput will be two finish products 1. right bumper and 2. left bumper.
    while confirming the order, how we can get two fert?

    Create Left Bumper And Right bumper as FERT, Maintain a co product Indicator for Both and maintain Joint  production details in MRP 2view ( ex  50 % for Left bumper and 5o % for right bumper ) the cost will proportioned accordingly
    IN BOM
    Create a BOM for  Left Bumper
    and maintain component as raw material with qty
    and Right bumper as 1- and maoinatin co product indictor in item detail
    ANd save
    WHile doing GR in MB31 System will propose  Both Left and Right bumper with 101 movement type.
    Regards,
    Sundaresan

  • Excise Output Material Type

    Hello Experts ,
    In Material Master or J1id , do i have to maintain output material type??
    If yes ... picture this ...
    My client has 2 lac raw material , which can be interchangeably used to produce 1lac finished goods.
    One particular material can be used to make more than one finished goods . Can I ...
    1. Define a dummy finished material & put it as output material type in material masters for all ROH materials?
    2. Put any arbitrary finished material as output type for ROH ?
    3. Can i by any means put more than one finsished materials for one particular raw material in masters?
    Pls pass the gyaan
    Thx
    Rgds,
    Anis

    hey kunal !
    thanks as always ...
    My clients is a make to order scenario...
    n the raw material is highly generic ...
    assigning any particular finished goods is not fine...
    A) Can u tell me where does this output type material hv implication in mandatory excise reports /forms ...???
    And also does this o/p mtrl have any accounting effect??
    As i understand .. while filing annual returns (ER6) the client (manufacturer) has to show that X units of raw material was  used to produce Y units of finished goods. This is just a snapshot n contains  no details.
    There r basically 3 classes ( material grps ) of finished goods produced from 4 classes ( material grps ) of raw material .
    Ref to point A, if there r no a/c financial implications of the field , can i assign any arbitaray or dummy o/p mtrl ???
    Hope i have made my "q" clear ...
    pls guide ...
    Regds ,
    Anis
    Rgds,
    Anis
    Edited by: anis bazmi on Oct 17, 2008 3:56 PM

  • Regarding : Material document data and PO data do not match (Plant)

    Hi Gurus,
    Please go through this BAPI program.
    While uploading it is giving an error ' Material document data and PO data do not match (Plant) '.
    Please help regarding this issue.For all Other moment types it is working fine except this 351 moment type.
    dATA: i_excel TYPE truxs_t_text_data. "work table for excel upload
    DATA: BEGIN OF it_itab OCCURS 100,
          docdate(10),
          postdate(10),
          mvt_type(3), "Movement Type
          plant(4), "Plant
          lgort(4),
          pur_doc(10), "Purchase Document No
          po_item(3), "Purchase Document Item No
          material(18), "Material Number
         delnote(16),
          erfmg(13),
          uom(3),
         lfmng(13), "Quantity
          batch(10) TYPE c,
          vfdat TYPE vfdat,
          END OF it_itab.
    DATA: it_goodsmvt_head TYPE TABLE OF bapi2017_gm_head_01      INITIAL SIZE 100,
          it_goodsmvt_code TYPE TABLE OF bapi2017_gm_code         INITIAL SIZE 100,
          it_goodsmvt_item TYPE TABLE OF bapi2017_gm_item_create  INITIAL SIZE 100.
    DATA: wa_goodsmvt_head LIKE LINE OF it_goodsmvt_head,
          wa_goodsmvt_code LIKE LINE OF it_goodsmvt_code,
          wa_goodsmvt_item LIKE LINE OF it_goodsmvt_item.
    DATA: w_mat_doc  TYPE bapi2017_gm_head_ret-mat_doc,
          w_year     TYPE bapi2017_gm_head_ret-doc_year.
    DATA: BEGIN OF it_errmsg_goodsmvt OCCURS 10.
            INCLUDE STRUCTURE bapiret2.
    DATA: END OF it_errmsg_goodsmvt.
    DATA : obj_type LIKE bapiache09-obj_type,
           obj_key  LIKE bapiache09-obj_key,
           obj_sys  LIKE bapiache09-obj_sys.
    DATA: v_date1 TYPE sy-datum.
    DATA: v_date2 TYPE sy-datum.
    DATA: w_lines TYPE i.
    DATA: errflag.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-100.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK bk1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    Start-of-selection processing
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_line_header        = 'X'
          i_tab_raw_data       = i_excel
          i_filename           = p_file
        TABLES
          i_tab_converted_data = it_itab[]
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT it_itab.
        REFRESH it_goodsmvt_head.
        REFRESH it_goodsmvt_item.
        CONCATENATE it_itab-docdate6(4) it_itab-docdate3(2) it_itab-docdate+0(2) INTO v_date1.
        CONCATENATE it_itab-postdate6(4) it_itab-postdate3(2) it_itab-postdate+0(2) INTO v_date2.
        wa_goodsmvt_head-pstng_date = v_date2.
        wa_goodsmvt_head-doc_date   = v_date1.
       wa_goodsmvt_head-ref_doc_no = it_itab-delnote.
    wa_goodsmvt_head-pr_uname   = sy-uname.
        APPEND wa_goodsmvt_head TO it_goodsmvt_head.
    Maintain it_goodsmvt_code
        wa_goodsmvt_code-gm_code    = '04'.
    Maintain it_goodsmvt_item
    *LOOP AT it_itab.
    IF wa_goodsmvt_item-po_number IS INITIAL.
        wa_goodsmvt_item-po_number    = it_itab-pur_doc.
        wa_goodsmvt_item-move_type    = it_itab-mvt_type.
        wa_goodsmvt_item-MOVE_PLANT      = it_itab-plant.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = it_itab-material
          IMPORTING
            output = it_itab-material.
        wa_goodsmvt_item-material     = it_itab-material.
        wa_goodsmvt_item-stge_loc     = it_itab-lgort.
        wa_goodsmvt_item-po_item      = it_itab-po_item.
        wa_goodsmvt_item-entry_qnt    = it_itab-erfmg.
        wa_goodsmvt_item-ENTRY_UOM_ISO    = it_itab-uom.
       wa_goodsmvt_item-po_pr_qnt    = it_itab-lfmng.
        wa_goodsmvt_item-batch        = it_itab-batch.
        wa_goodsmvt_item-expirydate   = it_itab-vfdat.
       wa_goodsmvt_item-NO_MORE_GR   = 'X'.
        wa_goodsmvt_item-mvt_ind      = 'B'.
        APPEND wa_goodsmvt_item TO it_goodsmvt_item.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            goodsmvt_header  = wa_goodsmvt_head
            goodsmvt_code    = wa_goodsmvt_code
          IMPORTING
            materialdocument = w_mat_doc
          TABLES
            goodsmvt_item    = it_goodsmvt_item
            return           = it_errmsg_goodsmvt.
    Process of commit work
        IF it_goodsmvt_head[] IS NOT INITIAL.
          DESCRIBE TABLE it_goodsmvt_head LINES w_lines.
        ENDIF.
        IF it_goodsmvt_item[] IS NOT INITIAL.
          DESCRIBE TABLE it_goodsmvt_item LINES w_lines.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = 'X'.
        IMPORTING
        RETURN        =
          CLEAR errflag.
          READ TABLE it_errmsg_goodsmvt INDEX 1.
          IF it_errmsg_goodsmvt-type EQ 'E'.
            WRITE:/'Error in function', it_errmsg_goodsmvt-message.
            errflag = 'X'.
          ELSE.
            WRITE:/ it_errmsg_goodsmvt-message.
          ENDIF.
          IF errflag IS INITIAL.
            COMMIT WORK AND WAIT.
            IF sy-subrc NE 0.
              WRITE:/ 'Error in updating'.
              EXIT.
            ELSE.
              WRITE:/ 'Material Document created successfully and the Document Number for the Material',
                      wa_goodsmvt_item-material,'is:', w_mat_doc, w_year.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.

    Hey,
    Just wanted to post that in my case this was the error of MVT_IND field in item table. When I made it from 'B' to blank then it worked.
    Mine is solved....
    Thanks

  • How to Differentiate between Parent & child item of material determination

    Hi Experts
    I have a list of material & the Business requirement is to found that whether a material is a Parent material , Child material or Both ( a parent to other children  and a child to another parent).
    I tried using table KONDD & KONDDP but I was not able to differeniate between Parent & Child item.
    I even cant use item category to diferentaite the two as by item categairy i can only find that it is a Prent material but cant find whether this material is a Child material or not.
    Is there any table in which i can enter the Parent material & the output would be child material or any other table which contain both parent & child material.
    Note : In Material determination ( VB11) , the material which is entered is Parent material & the material with which it would be replaced is Child material.
    Kindly Guide.
    Thanks in Advance

    Hi
    The wording of Parent and Child sounds like using a BOM material. In material determination...these two items can be called as Material entered and material determined or Main Item and Sub Item.
    In the sales order overview screen...at line item level check the field 'HLvItem' (Higher Level Item). It will show the POSNR of the main item to which this item is linked. Since this can also happen in the case of free goods and BOM...you have make another check for these items with the item category.
    If the substitue material is not determined as a sub item... you can check the material number in the field 'Material Entered' in the sales tab of the item and compare the material number with that exists in the VBAP-MATNR. If both are different, then this material can be considered as a determined material.
    Thanks,
    Ravi

  • Report for subcontracting material

    Dear all,
    I need your help.
    we have two plants suppose plant 1 and 2
    plant 1 have sent some material to plant 2 by subcontracting challan
    so i need a detail like
    1) material sent via 57f4
    2) input material (raw material)
    3) output material (finish material after subcontracting)
    4) vendor
    5) price, qty
    is there is any report like this....

    Hi
    Go to J1ILN > Indirect taxes > procurement > subcontracting > reports > chalan Listing.
    This may be of your help. beyond this you will have to develop client specific report.
    Best Regards
    Nishant Shende

  • Why are dots missing from PDF output?

    When I use the 'line' tool with dots, (in this case to draw a line-break,) AND export a .pdf, it often leaves out a single dot in the line. There are no objects intersecting the line, or even within a half-inch of its location. The missing dot is consistent across the document, nearly always the second or third dot in the line. And this happens with all forms of dots - normal, japanese, etc. The dot is present in the InDesign application, just not in the material it outputs.
    Thanks a million for your help!
    Screenshots below:

    Hey Bob,
    Looks like you're on to something with the program used to open it. While the PDF reader presents the problem, the web plugin does not. (It opens fine in both Chrome and Firefox.) And it renders just fine as imported into Illustrator.
    So that really narrows the problem down to the renderer. I'll submit the bug report.
    Thanks!!!

  • Material number suffixing with ! for some material in material master

    Hi Friends,
      We have uploaded  material master data with BDC . but for some of materials contain ! sign at the end of the material number. Means , at the 18th charecter ! is appearing. but it does not appear in mm03 while displaying. and even while finding it from MARA if we put material number   without ! sign then we can possible to get that material. and it does not allow us to crate material with same material number withought ! sign.
    But if while creating material if we put material with ! at the 18th charecter it creates material with ! sign but while searchig from MARA if you dont put ! sign with material number we can not  get that material as output and if we create other material without ! sign it allows to create the material.
    Please can you tell me what is the reson why ! is getting added at the end of material number ... do any1 of you have faced the same kind of situation and found for what reason it is coming....
    Thanks & Regards.
    Praja.

    Hi,
    This is due to config. In our case whenever we enter 8 digit number for Eg:
    12345678 material will be created as 1234.5678 a dot will appear after every 4 digits.
    But when we actually look at mara we wont find the dot (.) .
    We can do this by config by setting perfix and sufix to the material number. actually these characters will not be stored in DB.
    It will be shown in output when the function module CONV_EXIT_MATN1_OUTPUT runs.
    check config in OMSL transaction.
    In TMCNV table check field TEMPLATE it will have the template how the material number should be in our case its ____.____
    Your case might be ________________!
    Regards,
    Shanmugavel chandrasekaran.
    Edited by: shanmugavel chandrasekaran on Mar 22, 2010 10:58 AM

  • REG: Creating customer stock for different material codes has an single set

    Hi FRIENDS,
    we  are purchasing finished items from our vendor in numbers (Eg. Item Number 1 to 6 (all different items and having different item codes)) and selling it to our customer in a set ( 1 set contains all this 6 items and we have code for this Set).  Please let me know how to create the customer stock for these items in the store as the store shows stock for 7 different  items, not in a set.
    Please let em know if any more information is nedded

    hi dan,
    as per your requriment you can have all MRP viewsfor HAWA material type.
    that means you are purchasing, use HAWA for finished goods in SAP system.
    if you are having different item codes seperately for each item.
    take one packing material called CARTON and maintain UOM as 6 items and you can pack the same in BOM.
    use PP -PHANTOM - BOM which should add all the 7 materials in & gives one single material as OUTPUT.
    use 561 GMT and upload that material as a final finished goods and in MMBE you can see only one called CARTON inside it set of 6 materials will be there.
    BUT BE AWARE OF COSTING OF THE MATERIAL because each material will be having the its price. So discuiss with PP as well as FICO consultants.
    whether you will cost the total set of carton or individual material
    go ahead
    test and confirm
    this clears your issue
    balajia

  • Output Determination for Shipping/ Handling Units etc

    Could someone give me the steps to out put determination for outbound deliveries.
    I am trying to get the labels printed for materials and handling units. I do not want a partner function while creating the records, however it does not allow me to proceed without a partner function. I am not sure if i have understood the process right. I have got BA00 working perfect. A response will be appreciated.

    Susan,
    For output detrmination type for lets say material labelling output type MALB has acess sequence that links two tables one is related to shipping materail type and other is partner function or may be combination of partner function ship2 party and handling unit or packaging materail.
    If you dont want partner function then remove the tables in the acess sequence make it shiapping materail type as more specific entry in the acess sqeuence amt check as exculsive so that by default it should create record on the basis of shipping material.
    I hope this would not wllow you to have partner function in any of theacesssequence you are using.
    I hope this will work for u
    Thanks
    Saurabh

  • Saving Color and Depth data as png to filestream

    I try to save both color and depth data to separate files as PNGs using PngBitmapEncoder but I get much less depth frames saved than color.
    If I save color as Jpeg with JpegBitmapEncoder and depth as PNG using PngBitmapEncoder I get the same amount of frames from both streams.
    Can anyone explain me why?
    private void myKinectSensor_ColorFrameReady(object sender, ColorImageFrameReadyEventArgs e)
    using (ColorImageFrame color = e.OpenColorImageFrame())
    if (color != null)
    colorbits = new byte[color.PixelDataLength];
    color.CopyPixelDataTo(colorbits);
    PngBitmapEncoder enc = new PngBitmapEncoder();
    enc.Frames.Add(BitmapFrame.Create(BitmapSource.Create(color.Width, color.Height, 96, 96, PixelFormats.Bgr32, null, colorbits, color.Width * color.BytesPerPixel)));
    if (StartSavingFrames)
    string temppath = System.IO.Path.Combine(@"../output/kinect1/color/", colorcnt.ToString() + ".jpeg");
    FileStream fs = new FileStream(temppath, FileMode.Create);
    enc.Save(fs);
    fs.Close();
    fs = null;
    colorcnt++;
    else { colorcnt = 0; }
    private void myKinectSensor_DepthFrameReady(object sender, DepthImageFrameReadyEventArgs e)
    using (DepthImageFrame depth = e.OpenDepthImageFrame())
    if (depth != null)
    frame = new short[depth.PixelDataLength];
    depth.CopyPixelDataTo(frame);
    for (int i = 0; i < depth.PixelDataLength; i++)
    frame[i] = (short)(((ushort)frame[i]) >> 3);
    PngBitmapEncoder enc = new PngBitmapEncoder();
    enc.Frames.Add(BitmapFrame.Create(BitmapSource.Create(depth.Width, depth.Height, 96, 96, PixelFormats.Gray16, null, frame, depth.Width * depth.BytesPerPixel)));
    if (StartSavingFrames)
    string temppath = System.IO.Path.Combine(@"../output/kinect1/depth/", cnt.ToString() + ".png");
    FileStream fs = new FileStream(temppath, FileMode.Create);
    enc.Save(fs);
    fs.Close();
    fs = null;
    cnt++;
    else { cnt = 0; }

    performance of the write operations and the operations of the system at the time you are calling them. You need to ensure your functions are returning and releasing(disposing) of the frames faster than the callback times. When you hold onto data to
    long, that just prevents your application from getting new data.
    Have a look at the coordinate mapping sample from the toolkit for a way to copy both the depth and color at the same time. From there you need to create a new thread to save that data since write speeds are very slow.
    Carmine Sirignano - MSFT

Maybe you are looking for

  • Hi ALL i have a BDC code  it is not working properly

    this BDC code is not working properly , when ever the file is transfering BDC is aborting in the case of   invalid material/batch comes into teh picture... so please could you ''Check for invalid material/batch combinations so they are not processed

  • How many iPods can i sync to itunes

    I also have an Iphone and Ipad so I would have a minimum of 12 devises syncing to the one Itunes computer. Is it possible to have that many Ipods syncing the apps on the one Itunes computer? Thank you for your help

  • Serial Number Message - Already Used on 2 Machines

    I purchased Adobe Acrobat 9 from an internet business in May.  I am now receiving a message that the serial number has already been used to set up and activate Acrobat Standard on 2 other machines, which is the maximum allowed.  I haven't used it on

  • Mail slow down; too many messages?

    Mail (4.4) has slowed down a bunch here. I click on an unread message and it takes a good 5 seconds (or more) to show the message and any pics in it. (most of the time it seems to display the wrong message for a quick spell, then go and wait on the c

  • Pub and Sub question

    I am in the process of developing interface where source system will pubish the data in Que and target system will subscribe it. The question I have when I create a Que in source system how this que become visible to target system. When I am creating