Results 1 to 2 of 2

Thread: gl4java procedural texture generation

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    new brunswick,nj,usa
    Posts
    1

    gl4java procedural texture generation

    hi
    im tying to implement simple 2d texture mapping using gl4java

    i am not using an image ,but want to create the texture in my code itself

    i noticed that the method
    glTexImage2D(,,,,,int[] pixels);
    it reads the texture image as a 1 dimentional array
    how then can i input rgba value for each textel
    is there any format ??
    can anyone please help

    and one more important Q

    CAN we do 3D texture mapping in GL4Java on a windows NT platform (XP home to be more precise)

    thanks
    jamshed

  2. #2
    Member Newbie soda's Avatar
    Join Date
    May 2003
    Location
    -
    Posts
    40

    Re: gl4java procedural texture generation

    Hi,

    I don't know if you got an answer to your first question but creating your own texture is really easy :

    1> create your RGBA buffer
    2> bind your buffer to your texture
    3> use glCopySubImageTex to update the texture !

Similar Threads

  1. procedural generation offset calculation and movement
    By Labidusa in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 12-14-2017, 10:31 AM
  2. Procedural terrain generation
    By shamus88 in forum OpenGL: Basic Coding
    Replies: 11
    Last Post: 04-25-2009, 07:30 PM
  3. procedural texture
    By krol in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 04-04-2003, 01:55 AM
  4. procedural texture mapping?
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-16-2002, 05:31 AM
  5. Procedural Texture Problem
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-01-2000, 11:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean