CapnK / Duffer

A .Net library for writing IDTF files
3 stars 1 forks source link

IDTF Billboard Sample #3

Open DongMinShin opened 8 years ago

DongMinShin commented 8 years ago

I want to IDTF File sample. IDTF 2D Text & Line or IDTF Billboard Sample

I writed a source but Lines not created .

FILE_FORMAT "IDTF"
FORMAT_VERSION 100

NODE "MODEL" {
    NODE_NAME "M_TEST_Model_Glyph001"
    PARENT_LIST {
        PARENT_COUNT 1
        PARENT 0 {
            PARENT_NAME "<NULL>"
            PARENT_TM {
                1.000000 0.000000 0.000000 0.000000
                0.000000 1.000000 0.000000 0.000000
                0.000000 0.000000 1.000000 0.000000
                0.000000 2000.000000 0.000000 1.000000
            }
        }
    }
    RESOURCE_NAME "<NULL>"
}

MODIFIER "GLYPH" {
    MODIFIER_NAME "M_TEST_Model_Glyph001"
    PARAMETERS {
        ATTRIBUTE_BILLBOARD "TRUE"
        ATTRIBUTE_SINGLESHADER "FALSE"
        GLYPH_COMMAND_COUNT 8
        GLYPH_COMMAND_LIST {
            GLYPH_COMMAND 0 {
                TYPE "START_GLYPH_STRING"
            }
            GLYPH_COMMAND 1 {
                TYPE "START_GLYPH"
            }
            GLYPH_COMMAND 2 {
                TYPE "START_PATH"
            }
            GLYPH_COMMAND 6 {
                TYPE "LINE_TO"
                LINE_TO_X 100
                LINE_TO_Y 100
            }
            GLYPH_COMMAND 7 {
                TYPE "LINE_TO"
                LINE_TO_X 400
                LINE_TO_Y 400
            }
            GLYPH_COMMAND 3 {
                TYPE "END_PATH"
            }
            GLYPH_COMMAND 4 {
                TYPE "END_GLYPH"
                END_GLYPH_OFFSET_X 1000
                END_GLYPH_OFFSET_Y 1000
            }
            GLYPH_COMMAND 5 {
                TYPE "END_GLYPH_STRING"
            }

        }
        GLYPH_TM {
            1.000000 0.000000 0.000000 0.000000
            0.000000 1.000000 0.000000 0.000000
            0.000000 0.000000 1.000000 0.000000
            0.000000 0.000000 0.000000 1.000000
        }
    }
}
CapnK commented 8 years ago

@DongMinShin I'm not sure I understand this or #2

Did you create the IDTF file manually by typing those lines into a text editor, and then try to convert to a U3d/PDF ?

Or are you saying that you used the Duffer library to create an IDTF file, but it didn't include the Glyph or lines?

I don't think I added Glyph support to the library (as I never used it) and I'm not activly workign on this code project right now.

DongMinShin commented 8 years ago

@CapnK

I have to add a Glyph in the Buffer library.

So. Create the IDTF File manually by typing a Text editor. and Convert to a U3D File

But I could not get information about the Glyph.

I saw the article "IDTF (Intermediate Data Text File) Format Description Version 100 8 March 2005" This document is not correct.

If you have ever wanted Glyph Sample for asking it.

Thanks to the buffer library I could make IDTF file. A very good library.

I don't know you thing rather than Activily working, There was also a place where no one asks. I'm sorry.

I use the translator did not speak English well. I hope I'm not trying to say precisely delivered.