Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Tex2D problem  (Read 355 times)
0 Members and 1 Guest are viewing this topic.
Offline yadaddy

JGO n00b
*

Posts: 11



« on: 2006-01-22 06:44:02 »

Hallo.

I am reffering to this code:
http://www.java-gaming.org/forums/index.php?topic=6286.0
answer by nnevatie.

I have modified the code for GL_TEXTURE_RECTANGLE_EXT to GL_TEXTURE_2D by
1. writing 2D instead of RECTANGLE_EXT and
2. do dimensions to 2^n and
3. modified texcoord to range [0,1]: just changed the 2 following ranges from vertex and texcoord.

Problem: He just draws me the clear color and not my correct picture.

I have a 300*300 window
I have rendered differently: 256*256 or 512*512 and combinations of them, none do work.

Is there a problem with CopyTexImage?
I used both: copytexsubimage and copyteximage. same problem: black screen when drawing the texture.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.164 seconds with 21 queries.