..:: PCSX2 Forums ::..
Register | Help | Log In |
Register PCSX2 Site Forums Member List Donate View Today's Posts Search

Current time: 06-20-2013, 01:56 AM Hello There, Guest! (Login — Register)

..:: PCSX2 Forums ::.. / Plugins / Plugin discussion and support v
« Previous 1 ... 15 16 17 18 19 145 Next »
/ Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)



User(s) browsing this thread: 1 Guest(s)

Pages (9): « Previous 1 ... 4 5 6 7 8 9 Next »
Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)
Author Message
miseru99 Offline
Translator
****

Posts: 1.852
Joined: Jun 2011
Location:
Reputation: 95
Post: #51
RE: Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)
Nice, another custom plugin xD, now to find some nice shaders while it compiles :3.

DBZ:BT2/3 hackfix showoff
Sparking - Budokai Tenkaichi 3(EU/US/JP) Trainer/Editor
---
ICO WS patcher
02-14-2012 09:26 PM
Find all posts by this user Quote this message in a reply
KrossX Offline
クロッスエクス
*****

Posts: 663
Joined: Jan 2012
Location: Argentina
Reputation: 35
Post: #52
RE: Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)
I think there are only two shaders available at the moment, just the fxaa and the overlay bloom. >_<

But if it gets implemented, it would be nice to have a shaders thread like Pete's OGL2 one. Full of ports from that thread too. XD

#EDIT2: Shader stuff moved to its own thread: HERE

[Image: nbKSK.jpg]
(This post was last modified: 02-15-2012 06:24 AM by KrossX.)
02-14-2012 09:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
miseru99 Offline
Translator
****

Posts: 1.852
Joined: Jun 2011
Location:
Reputation: 95
Post: #53
RE: Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)
:3 Yeah, maybe create a new thread for it, couse it's not really MK2/AT2 issue xD, works fine and just need pause/resume emulation to reset shader^_^. At least messing with FXAA is fast with it.

Edit: your overlay bloom gives nice warm colours<3

Hah;O looked over google for a guide for complete nabs and got this tutorial;O.

Now, for some comparism:
No shaders:
   


Your Overlay Bloom shader:
   



A bit sharpened version of OB thanks to that tutorial:
   

DBZ:BT2/3 hackfix showoff
Sparking - Budokai Tenkaichi 3(EU/US/JP) Trainer/Editor
---
ICO WS patcher
(This post was last modified: 02-15-2012 12:36 AM by miseru99.)
02-14-2012 09:39 PM
Find all posts by this user Quote this message in a reply
KrossX Offline
クロッスエクス
*****

Posts: 663
Joined: Jan 2012
Location: Argentina
Reputation: 35
Post: #54
RE: Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)
Back on topic...

Code:
GSTextureCache.cpp:585

    if(dst == NULL)
    {
        if(m_paltex && GSLocalMemory::m_psm[TEX0.PSM].pal > 0)
        {
            src->m_fmt = FMT_8;

            src->m_texture = m_renderer->m_dev->CreateTexture(tw, th, Get8bitFormat());
            src->m_palette = m_renderer->m_dev->CreateTexture(256, 1);
        }
        else
        {
            src->m_fmt = FMT_32;

            src->m_texture = m_renderer->m_dev->CreateTexture(tw, th);
        }

    }

Now that explains it. Everything goes to FMT_32 unless it's paletted and 8-bit textures are enabled. Dunno why I didn't see it before, since I was messing around a few lines below. XD

[Image: nbKSK.jpg]
02-15-2012 11:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rama Online
PCSX2 coder
******

Posts: 6.026
Joined: Nov 2008
Location: Germany
Reputation: 77
Post: #55
RE: Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)
Bloom looking great on this game.

I messed with CreateSource like that myself before. Good luck with that, lol.
02-15-2012 11:49 AM
Visit this user's website Find all posts by this user Quote this message in a reply
KrossX Offline
クロッスエクス
*****

Posts: 663
Joined: Jan 2012
Location: Argentina
Reputation: 35
Post: #56
RE: Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)
Needs this: http://blogs.msdn.com/b/shawnhar/archive...alpha.aspx
Now the big question is... how? XD




[Image: nbKSK.jpg]
(This post was last modified: 02-15-2012 09:51 PM by KrossX.)
02-15-2012 09:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
dralor Offline
Posting Freak
****

Posts: 812
Joined: Jan 2009
Location:
Reputation: 5
Post: #57
RE: Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)
Well if you read the posts from that era he basically gives you all the math fro converting things to that format and such. Just need to implement it. I might mess around with it this weekend but I'd say it's probably above my level as far as graphics programming is concerned.
02-16-2012 09:26 AM
Find all posts by this user Quote this message in a reply
KrossX Offline
クロッスエクス
*****

Posts: 663
Joined: Jan 2012
Location: Argentina
Reputation: 35
Post: #58
RE: Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)
I tried messing around with it but nothing good came out. I felt like I was in need of access to the software and not the hardware. =S

Anyhow, new version that shouldn't mess 8bit mode (patch included)
http://www.mediafire.com/?igd6orkr8d2zapk

#EDIT:
Tweaked the numbers a bit. Edges should be a weee little less abrupt.
http://www.mediafire.com/?2odycza2syaoo5i

#EDIT2: Interesting....

Normal (I think) http://i.imgur.com/OICIH.jpg || SW http://i.imgur.com/wV0uV.jpg
Test http://i.imgur.com/UOIXv.jpg

Basically, samples.rgb *= samples.a, do bilinear, final.rgb /= final.a;
Not bad, and the hair blends much better.

[Image: nbKSK.jpg]
(This post was last modified: 02-18-2012 04:09 AM by KrossX.)
02-17-2012 01:01 AM
Visit this user's website Find all posts by this user Quote this message in a reply
dralor Offline
Posting Freak
****

Posts: 812
Joined: Jan 2009
Location:
Reputation: 5
Post: #59
RE: Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)
Did you make sure you converted the texture to the correct format before changing the blend math? IF you don't precompute on the textures apparently it all goes wrong.

Also I think I see what is going on there by analyzing the pics in the new version. It looks like there are multple layers to the sprite and wherever there is a a layer overlap blending is causing an issue for some reason.
(This post was last modified: 02-18-2012 08:47 AM by dralor.)
02-18-2012 08:43 AM
Find all posts by this user Quote this message in a reply
KrossX Offline
クロッスエクス
*****

Posts: 663
Joined: Jan 2012
Location: Argentina
Reputation: 35
Post: #60
RE: Some kinda texture bug? (Ar Tonelico 2/Mana Khemia 2)
Convert the texture? I don't have access to the texture, neither I changed the blending math since that's up to the game itself. I only hacked up the before and after bilinear on the sampler shader, and that's only for 8bit mode (if enabled).

And it ain't an issue really, it's normal... a normal and common issue perhaps. Transparent sections are completely black, so it bleeds when filtered. Not much of a problem and gives a rather nice enough border, natively. But when upscaled and such, things get ugly. Just like the video says, but that's up to the game programmers and not the HW to fix it for them. =S

[Image: nbKSK.jpg]
(This post was last modified: 02-18-2012 09:01 AM by KrossX.)
02-18-2012 09:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Pages (9): « Previous 1 ... 4 5 6 7 8 9 Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread



Current time: 06-20-2013, 01:56 AM

Contact Us | PCSX2 | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication

Powered By MyBB, © 2002-2013 MyBB Group.
Theme created by IncadudeF and modified by bositman