Main Menu

Version 1.17 has been released!

Started by EgonOlsen, November 26, 2008, 08:29:18 PM

Previous topic - Next topic

EgonOlsen

This version uses (and includes) LWJGL 2.0. If you are stuck with LWJGL 1.x for whatever reasons, you are also stuck with jPCT 1.16. If you haven't updated your LWJGL version some a while, maybe now it's a good time to give 2.0 a try.

Anyway, here are the other changes: http://www.jpct.net/changes.html
Most notable are the alpha support for the software renderer and the reduced memory foot print

Have fun!

Melssj5

What about the getTargets method in the CollisionListener?
Nada por ahora

EgonOlsen

In CollisionEvent...it's in. I think i forgot to document that change. I'll add it...

Melssj5

btw: ITS THERE A WAY TO JOIN TWO TEXTURES (ONE ABOVE ANOTHER) INTO ONE USING THE BLACK COLOR AS THE TRANSPARENT OR SOMETHING, i REMEMBER THAT SOME TIME AGO I ASKED FOR THAT, AND YOU TOLD ME THAT YOU WILL ADD IT.

IT WAS ABOUT THE 1.14 RELEASE! i GUESS.
Nada por ahora

EgonOlsen

Yes, there's an add-method() in texture. Is that what you mean?

Melssj5

MMM IT SEEMS THAT YES, IT IS, BUT DOES THAT METHOD ADDS THE COLORS FROM A SECOND ONE TO THE FIRST ONE? ISNT THERE A WAY IN WHICH COLOR ARE REPLACED AND NOT ADDED? wHAT DOES THE WEIGTH ARGUMENT MEANS?
Nada por ahora

EgonOlsen

The second texture's pixel colors will by multiplied with that weight, then added. I.e. 100+0.5*100 gives a resulting color of 150. If the weight is negative, like 100*-0.5*100, the second texture's color will be subtracted.

There is no other way then adding with this method (hence the name...). If you need more complex operations on the textures, you'll be better off with some image manipulation library. You can always create a Texture from an image.

BTW: Why are you writing in capital letters?

Melssj5

I AM SCREAMING  >:( JAJAJAJAJAJAJA

i AM WORKING WITH DATABASES AT WORK SO i AM USING ONLY CAPITAL LETTERS!
Nada por ahora

EgonOlsen

Ahh...the good old "write all your selects in capital letters"? I never understood the sense in that, but i know that a lot of people are doing it that way. I find it harder to read... ???

Melssj5

Its becausse I am using DataIntegrator for ETL tasks too and we adopted a writting way in capital letters.
Nada por ahora

AGP

Thanks a lot, buddy, I appreciate your efforts. Now, for that Math class... : )

Ben

Egon,

Congratulations on the new version  ;D

I have downloaded and would like to experiment. Can you give more details about the new "alpha support for software renderer". More specifically, which classes/methods are involved and what are the actual effects?

Anyway thanks for continuing to develop and support jPCT.

Ben.

EgonOlsen

Support for alpha channels in textures was in jPCT for the hardware renderers only. Now, the software renderer supports it too. There are no new methods or classes for this, just the Texture constructor that takes a boolean flag that signals that the loader should take the textures alpha channel into account. JPG and GIF can't have an alpha channel, but PNG supports it. With such a channel, you have much more control about transparency than before. An example can be found here: http://www.speedydragon.de/item?id=28771#t=4. The green glow effect uses the alpha channel.