Results 1 to 6 of 6

Thread: [vb6] Vertex

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734

    Resolved [vb6] Vertex

    If I just wanted a square, with a 512x512 texture, using a Trianglestrip would the following be appropriate?

    VB Code:
    1. ''CreateVertex ( x, y, z, tU, tV )
    2. terrain(0) = CreateVertex(-10, 0, 10, 0, 0)
    3. terrain(1) = CreateVertex(10, 0, 10, 1, 0)
    4. terrain(2) = CreateVertex(-10, 0, -10, 0, 1)
    5. terrain(3) = CreateVertex(10, 0, -10, 1, 1)

    It renders as a square but the weird thing is that when I render it by itself with nothing else going on in the scene it applies the texture correctly, but as soon as I add the skybox it screws up again, or anything for that matter... I put a ship off screen and it started doing it again.
    Last edited by dsheller; Nov 29th, 2004 at 04:08 AM.


    "X-mas is 24.Desember you English morons.." - NoteMe

Posting Permissions

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



Click Here to Expand Forum to Full Width