Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Text on Vincent

  1. #1

    Text on Vincent

    hi to everyone:

    what's the way to write on screen te name of the streets... How i use the text?

    thanks,
    Eym

  2. #2
    I havent find a way to do that using the UG.. thats why i changed to GLUT|ES

    With glut|es you may use the command glutBitmapString

    []

    Wendel B Silva

  3. #3
    Yes, i've tried, but it doesn't works...

    Why?

  4. #4
    The method glutBitmapString disable the use of the light, vertex and normal..

    After you call the method, you have to enable the light and everything else... in my case, i had to set 'again' the normal and vertex...

    glVertexPointer(3, GL_FLOAT, 0, Vertex);
    glNormalPointer(GL_FLOAT, 0, Normal);
    glEnableClientState(GL_VERTEX_ARRAY);
    glEnableClientState(GL_NORMAL_ARRAY);

    Im not good with english and others may tell you more about that.. and also you may try google it.

    []

    Wendel B Silva


    ps: theres 2 ways to draw something in the screen... in my case the glutBitmapString is fastest than glutTrueTypeString

  5. #5
    I'm sorry, but if i put
    "glutBitmapString(GLUT_BITMAP_8_BY_13, 5, 5, "Test");"
    before the rest of instructions, it doesn't works anyway... why???

    Code :
       glutBitmapString(GLUT_BITMAP_8_BY_13, 5, 5, "Test");
     
        glEnable (GL_NORMALIZE);
        glColor4f(0.0f, 0.0f, 0.0f, 1.0f); 
        int indexSeg=GeoDB.GetIndex(); //numero di segmenti da disegnare
     
        /*Disegna il piano stradale color sabbia.-----------------------*/
     
        glColor4f(0.79f, 0.75f, 0.35f, 0.0f); 
        //glNormal3f(0.0f, 1.0f, 0.0f);
        //glScalef(xscale, yscale, zscale);
        glVertexPointer(3, GL_FLOAT, 0, plane);
        glEnableClientState(GL_VERTEX_ARRAY);
        glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
       other instructions

  6. #6
    any help? Nothing to do...

    When I use "glutBitmapString(GLUT_BITMAP_8_BY_13, 5, 5, "Test");" the program start but i didn't see anything... like the porgram is freeze...

  7. #7
    Hope you will work out it soon.

  8. #8
    i need your help please!

    eym

  9. #9
    up!!!!!!!!!!!!!!!

  10. #10
    Quote Originally Posted by cobrahc
    The method glutBitmapString disable the use of the light, vertex and normal..

    After you call the method, you have to enable the light and everything else... in my case, i had to set 'again' the normal and vertex...

    glVertexPointer(3, GL_FLOAT, 0, Vertex);
    glNormalPointer(GL_FLOAT, 0, Normal);
    glEnableClientState(GL_VERTEX_ARRAY);
    glEnableClientState(GL_NORMAL_ARRAY);

    Im not good with english and others may tell you more about that.. and also you may try google it.

    []

    Wendel B Silva


    ps: theres 2 ways to draw something in the screen... in my case the glutBitmapString is fastest than glutTrueTypeString

    Please show me some of your code!

    thanks,
    Eym

Page 1 of 2 12 LastLast

Similar Threads

  1. UG, Vincent, There is a way to create text?
    By Eymerich in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 04-02-2008, 02:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •