Author Topic: With transparency texture becomes much darker... How can I improve this?  (Read 3232 times)

Offline entis

  • byte
  • *
  • Posts: 32
    • View Profile
Hi,

While using sw renderer in jpct I get the following effect...



How can I make my texture be as bright as without transparency (without using additional lights)?

Thanks.


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: With transparency texture becomes much darker... How can I improve this?
« Reply #1 on: February 12, 2008, 02:36:31 pm »
"Without" is darker in your pic. Shouldn't it be the other way round judging from the topic? I'm confused... ???

Offline entis

  • byte
  • *
  • Posts: 32
    • View Profile
Re: With transparency texture becomes much darker... How can I improve this?
« Reply #2 on: February 12, 2008, 02:58:02 pm »
No 'without' shouldn't be darker actually... Just there are two green regions on my underlying texture (darker and lighter)... like grass on the football field... Just one screenshot (that is without transparency) I took when I was on the darker region of the underlying texture and another one (that is with transparency) I took when I was on the lighter region of the underlying texture... Just assume that the brigthness of the underlying textures are the same on the both parts... I'm wondering why with transparency my WHITE line is GREY and at the same time without transparency it's WHITE...

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: With transparency texture becomes much darker... How can I improve this?
« Reply #3 on: February 12, 2008, 03:22:42 pm »
That is most likely caused by the way the pixels are blended. What is your transparency setting (i.e. the value you are using in setTransparency(<int>)). You may try to use the additive transparency mode, that the 1.16 beta offers (a link to it can be found in this thread: http://www.jpct.net/forum2/index.php/topic,1014.0.html).

Offline entis

  • byte
  • *
  • Posts: 32
    • View Profile
Re: With transparency texture becomes much darker... How can I improve this?
« Reply #4 on: February 12, 2008, 03:30:27 pm »
Thanks for your fast feedback... Does it work for sw renderer also?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: With transparency texture becomes much darker... How can I improve this?
« Reply #5 on: February 12, 2008, 04:01:29 pm »
In the 1.16 beta: yes. In the official 1.15: no.