|
Author |
Messages |
loktar

Posts
:
8
Location
:
N/A
|
I am having this issue with all of my trees... I can see through all of the trunks. Is almost as if the alpha is never at 1. Any ideas on what could cause something like this? 
|
|
|
Swampdonkey


Posts
:
33
Location
:
N/A
|
Hmmm are these the trees out of the package? or have you used your own trunk skins to create a new tree? Also, does the trees from the demo code do this to you as well? We'll get to the bottom of this one way or another. :)
|
|
|
loktar

Posts
:
8
Location
:
N/A
|
They are the default trees, and the demo ones do not do this :\ I cant figure out what in my code would cause something like this however. I thought it was because I was using the Ashadow lib but I totally removed it and it still happens.
|
|
|
Swampdonkey


Posts
:
33
Location
:
N/A
|
Shouldn't be Ashadow causing this as I use Ashadow with the lib as well. Do you use ClearTextureFilters() any where in your code? You might also want to try setting the color depth to 32, if you can't then resave the trunk skins to 8-bit color. I'll keep keeping on this one, as it is I'm stumped. How large is the code? It might help having a sample thats causing this.
|
|
|
loktar

Posts
:
8
Location
:
N/A
|
Ok I did find ClearTextureFilters() in the TED map loader... Removed it from the TedPrivatefunctions, and now the trees look fine. Is there a way to reapply texture filters to the trees after they are loaded? Or any other ides how to fix this instead of me removing a whole section from the ted loader? Edit... Ok nailed it down finally. In TED's .epr file that holds all of the settings there was this line textureflags=.PNG,11 Which was applying that texture flag to any PNG loaded... so I can either remove that or per TED instructions specifically add the files after that with the flags I want them to have. Anyways issue solved and I really appreciate you taking a look at it. Great libs!
|
|
|
Swampdonkey


Posts
:
33
Location
:
N/A
|
Ahhh good news then. You can do it manually if you dont want to mess with TED's loader. IN the tree library find the section that loads the trunk texture and add this: Texturefilter "",1+8 Then after you finished loading the trees you can reapply the TED's filters.
Just a word of caution however, Cleartexturefilters() and windows vista dont work well.. That combo produces a mav.
This thread discusses it: http://www.blitzbasic.com/Community/posts.php?topic=75273 Anyways, im glad you found the command that was causing the problem, you had me searching and scratching my head. I just couldnt duplicate this problem.
|
|
|
|