Author Topic: Version updates!  (Read 177820 times)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Version updates!
« Reply #255 on: July 15, 2011, 10:51:23 pm »
I am looking for what is wrong, because when I did simple test, additional color is working...
this is code of screens (uploaded image is actual texture):
Code: [Select]
fb.blit(pad, 0, 0, x, y, 128, 128, 128, 128, 50, FrameBuffer.OPAQUE_BLITTING, addColor);

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #256 on: July 15, 2011, 10:58:22 pm »
If that is the code that blits it, i would say that neither screen shot is correct because neither texture is blitted opaque. Are you clearing the frame buffer with additional alpha or something?

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Version updates!
« Reply #257 on: July 15, 2011, 11:05:44 pm »
I can not find where is problem in addColor... just fb.claer();

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #258 on: July 15, 2011, 11:11:34 pm »
Sorry, i need some test case to get the problem with opaque/non-opaque/whatever stuff...

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Version updates!
« Reply #259 on: July 15, 2011, 11:20:41 pm »
I tried set to transValue whatever and it is without any effect, so maybe this is issue :)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #260 on: July 15, 2011, 11:34:46 pm »
It works fine when using additive blending (which my test cases did) but seems to fail when additive is set to false...i'll look at it.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #261 on: July 16, 2011, 12:04:11 am »
Should be fixed now...please re-download the zip and try again.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Version updates!
« Reply #262 on: July 16, 2011, 12:15:19 am »
addColor and transparency work now, thanks :)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Version updates!
« Reply #263 on: July 16, 2011, 01:50:54 pm »
Became a miracle and render to texture works (maybe newer firmware?...). But why boxes rendered more times? and fb.blit(...) does not works when is rendered and drawed world, without works, but in bad dimensions. I used "Config.autoMaintainAspectRatio = false" and "Config.renderTargetsAsSubImages = false"

« Last Edit: July 16, 2011, 01:55:41 pm by Thomas. »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #264 on: July 16, 2011, 11:41:21 pm »
No idea. Maybe you are seeing the last render result blitted into the new one there? Maybe it doesn't work correctly even if it looks like it at first glance...just don't use this feature! It's too flaky and doesn't work on all devices (as you've already noticed multiple times). So....DON'T DO IT! And about blitting into the render target, the docs for setRenderTarget(..) state: "While possible, it's not recommended to blit into a render target."...just follow that advice.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #265 on: July 21, 2011, 11:44:48 pm »
New alpha here: http://www.jpct.de/download/net/jpct-ae_124_alpha.zip

This one adds: Option to enable AA via an AAConfigChooser in util as well as two fixes concerning sharing compiled data for animated objects.

Offline nico_r_a

  • byte
  • *
  • Posts: 48
    • View Profile
Re: Version updates!
« Reply #266 on: August 01, 2011, 02:36:28 pm »
i don't arrive to launch the application "helloshader" on the emulator pc

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Version updates!
« Reply #267 on: August 01, 2011, 02:55:27 pm »
emulator does not support ogl 2.0

Offline nico_r_a

  • byte
  • *
  • Posts: 48
    • View Profile
Re: Version updates!
« Reply #268 on: August 01, 2011, 03:02:01 pm »
how could i do to see the helloshader so? because i don't have a tablet
« Last Edit: August 01, 2011, 03:04:29 pm by nico_r_a »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #269 on: August 01, 2011, 09:18:33 pm »
You don't need a tablet, but a real phone would help. If that isn't available, you can see a video on Youtube: http://www.youtube.com/watch?v=5Zgn1OCDIus