16-04-12, 10:27 | #21 | |
Member
Joined: Sep 2007
Posts: 1,684
|
Quote:
ctrl+right click still works because it has nothing to do with the OpenGL texture displayed. When each polygon of the mesh is drawn it is given a name which in this case is the id number of the texture in the list. When you ctrl+right click on a polygon the name of the polygon is retrieved and so the texture can be selected on the bitmap. To create the OpenGL textures, TurboPascal loads the image data into one big bitmap (all the pages) and then uses the texture record info to cut a texture bitmap from that big bitmap. If this texture bitmap does not have both height and depth a factor of 2, it is stretched to fit a 64 x 64 bitmap. This texture bitmap is then converted to an OpenGL texture. When an OpenGL texture is created you identify it by giving it a unique number. The number used in StrPix is the the texture id so that the OpenGL texture id matches the polygon name. In OpenGL, before a textured polygon is drawn, you nominate the OpenGL texture number and name to use. In your case the names are correct but the OpenGL textures have not been created/numbered properly for some reason. Last edited by sapper; 16-04-12 at 10:31. |
|
16-04-12, 13:49 | #22 |
Member
Joined: Apr 2009
Posts: 4,571
|
|
02-11-14, 12:35 | #23 |
Inactive
Joined: Jul 2010
Posts: 139
|
I got problem. I export textures, edit that in photoshop saved as bmp. try Import but i go Stream read error.... what's wrong ?? Help please...
|
02-11-14, 12:38 | #24 |
Moderator
Joined: Jul 2003
Posts: 33,359
|
Are you sure you saved in the correct BMP format? (uncompressed 24 bit)
|
02-11-14, 13:31 | #25 |
Inactive
Joined: Jul 2010
Posts: 139
|
100 % sure. I try with other objects but this same error...
|
02-11-14, 13:47 | #26 |
Member
Joined: Apr 2010
Posts: 806
|
^Try to save your textures as BMP in Paint.
|
02-11-14, 14:13 | #27 |
Inactive
Joined: Jul 2010
Posts: 139
|
|
03-11-14, 10:57 | #28 | |
Member
Joined: Sep 2007
Posts: 1,684
|
Quote:
StrPix (Delphi) assumes this size information is correct and tries to read past the end of the file. The new version of StrPix will allow adding textures from .psd and .pdd PhotoShop files but I will also fix this problem with importing Photoshop bitmaps. EDIT: Above info about size information seems to be wrong. I got the info from old Delphi forum. The size is correct so maybe it is the extra 2 bytes that PhotoShop adds that is the problem. Last edited by sapper; 04-11-14 at 00:19. |
|
03-11-14, 17:55 | #29 | |
Member
Joined: Jul 2006
Posts: 380
|
Quote:
- File format: Windows - Depth: 24 - Flip Row order: cheked. By default flip row order is unchecked, and strpix3 cant read bmp saved in that way. |
|
03-11-14, 18:41 | #30 |
Inactive
Joined: Jul 2010
Posts: 139
|
I figure it out everythings work awesome now thanks again
|
Thread Tools | |
|
|