TGA in a DCL image

Discussion in 'AutoCAD' started by Gustavo Guidi, Dec 8, 2004.

  1. I try to ask in this way (I expose the same on 6/12/04 under RENDER.DCL), to
    see if I can solve my problem to do an aplication with render commnads.
    I would like to know how can AutoDESK view a TGA in an image_button as they
    do in avis_mat_preview (If you look in a RENDER.DCL file you will see )
    and we don't.

    avis_mat_preview : boxed_column {
    children_alignment = centered;
    : image_button {
    key = "image";
    color = graphics_background;
    height = 8;
    aspect_ratio = 1;
    fixed_height = true;
    fixed_width = true;
    is_tab_stop = false;
    .......
    .......

    Thanks
     
    Gustavo Guidi, Dec 8, 2004
    #1
  2. Gustavo Guidi

    BillZ Guest

    I don't know how they do it.
    And I cannot find avis_mat_preview in any of my directories.

    I know that with image_tile or image button it has to be a slide.

    From the help files:
    Note If you use slides with filled objects (such as wide polylines, solids, and 3D faces) in image tiles, the images will appear as outlines unless you make the slides from an image created with the SHADEMODE command.

    Bill
     
    BillZ, Dec 8, 2004
    #2
  3. You can find it in the RENDER.DCL files which is in the support directory
    (im talking about 2K AutoCAD )

    solids, and 3D faces) in image tiles, the images will appear as outlines
    unless you make the slides from an image created with the SHADEMODE command.
     
    Gustavo Guidi, Dec 8, 2004
    #3
  4. Gustavo Guidi

    mataeux Guest

    one could very well create a lisp routine to read a TGA file and extract the
    pixel information from it and use (fill_image) to draw the image in a dcl
    image button.

    i suppose it would take me about 6 hours to research the file format and
    come up with a rough routine and another 6 hours for testing, debugging and
    to improve functionality

    how important is it to you to show TGA files? what other file formats might
    you want to draw? are there any other alternatives?
     
    mataeux, Dec 8, 2004
    #4
  5. Gustavo Guidi

    UmeshGole Guest

    Hello Friend,
    I have also same problem
    I think there is common function define in "acrender.arx" of
    which lisp interface have to provides by autodesk to us
    Right now i close my dialog box, draw 3dface, attach selected material and show preview
     
    UmeshGole, Dec 9, 2004
    #5
  6. Gustavo Guidi

    BillZ Guest

    Found it.
    Also tested some images made with shademode but they still look like a wireframe.

    Sorry

    Bill
     
    BillZ, Dec 9, 2004
    #6
  7. For me is important becouse I'm developing an aplication for render an the
    user should view the material is going to attached

    Thanks
     
    Gustavo Guidi, Dec 9, 2004
    #7
  8. Gustavo Guidi

    mataeux Guest

    does your application perform rendering and texture mapping?
    or just allow the user to assign materials similar to the way AutoCAD
    does?
    how do you expect AutoCAD users to use your application instead of AutoCAD
    commands?

    do you expect to use other image file formats besides TGA?
    what is the time frame for the project?
     
    mataeux, Dec 9, 2004
    #8
  9. My application allow to the user to assign materials and use the external
    defined commands of render in order NOT have an expertize in AutoCAD to make
    a render, the same to create the objects without been a 3D and UCS's expert

    Sorry but (maybe becouse of my english) what do you mean for "what is the
    time frame for the project?"
     
    Gustavo Guidi, Dec 10, 2004
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.