Results 1 to 9 of 9

Thread: Material problem

  1. #1
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts

    Material problem

    Hi everyone,
    I have this problem:
    Click image for larger version. 

Name:	cod2mp-20130107-173940.png 
Views:	34 
Size:	702.5 KB 
ID:	102

    Cactuses are transparent and i dunno why. Currently I use these setting:
    Click image for larger version. 

Name:	material.png 
Views:	34 
Size:	17.2 KB 
ID:	103

    So have anyone any solution, how can i fix it?

    (sorry for the big pics, i didnt find option for resize)

  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    If I follow the problem correctly, you are saying the cactus are transparent? Then, in frambuffer operatrions, set the belndFunc to "replace". If you use "blend" it will activate alpha channels.

    BTW - In the picture, the cactus are NOT transparent. Far from it. When I first saw the picture, I thought you were going to say that the skin wasn't working right, and that it was just one "block". That would be a UV map problem for the model, and you would need to remake your UV map.

  3. The Following User Says Thank You to Tally For This Useful Post:

    kung foo man (7th January 2013)

  4. #3
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    ftw, i havent got uv map because its not a model I used only simple terrain patches. And the "replace" dont good for me, because of the cactus spikes. So the problem again: i can see through the textures and i dont know what settings should i use to fix it.

  5. #4
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by randall View Post
    ftw, i havent got uv map because its not a model I used only simple terrain patches. And the "replace" dont good for me, because of the cactus spikes. So the problem again: i can see through the textures and i dont know what settings should i use to fix it.
    As I said, you can see through it because you are using "blend", with a decal setting. This makes the texture transparent.

  6. The Following User Says Thank You to Tally For This Useful Post:

    kung foo man (7th January 2013)

  7. #5
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    Then how do i do it right?

  8. #6
    Private First Class php's Avatar
    Join Date
    Nov 2012
    Posts
    142
    Thanks
    28
    Thanked 116 Times in 59 Posts
    Did you save the .dds with alpha channels?

  9. The Following User Says Thank You to php For This Useful Post:

    kung foo man (7th January 2013)

  10. #7
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    Of course, but you can see the edges of the cactus.

  11. #8
    Private First Class php's Avatar
    Join Date
    Nov 2012
    Posts
    142
    Thanks
    28
    Thanked 116 Times in 59 Posts
    Quote Originally Posted by randall View Post
    Of course, but you can see the edges of the cactus.
    Then there's your problem.

    (I think you made the whole image with alpha channels instead of a small area [which you wanted].)
    Last edited by php; 7th January 2013 at 18:47.

  12. #9
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Xfire-log:

    [20:43] kung foo man: he needs alpha because the spikes
    [20:44] php: if he needs alpha
    [20:44] php: then he doesn't need to apply to everything
    [20:44] php: but only some parts
    [20:44] php: i think he just made
    [20:44] php: the whole image with alpha channels
    timescale 0.01

Posting Permissions

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