..:: PCSX2 Forums ::..

Full Version: GSdx
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563
(03-30-2015, 10:30 AM)gregory Wrote: [ -> ]Upscaling generates a lots of accuracy issue (so far, input texture too small / input primitive too small / wrong window offset). My hack increases the size of the sprite without increase the mapped texture size. Texture will be a little stretched. I'm afraid it will be horrible for small spirit.

Anyway, if you can generate me a gs dump of Ar tonelico, I will give it a look.

good fix. i don't see the math tho. how's that working? upscale "projection". no doubt... it's not stretched. or horrible. it's might the corrected behaviour. still... rewriting you could just add upscale_multi-1 to the rightmost edges to fill the gaps. or correct the coordinate space. that's for 2d plain upscaled integer math tho for the target resolution. it's not running thru that projection.
(03-30-2015, 02:10 PM)mirh Wrote: [ -> ]m_userhacks_RemoveHoleBetweenSprite=1 instead of the option Gregory previously mentioned

Sure about that? In the code it is called:
Code:
m_userhacks_align_sprite_X = !!theApp.GetConfig("UserHacks_align_sprite_X", 0);
(03-30-2015, 06:21 PM)willkuer Wrote: [ -> ]Sure about that? In the code it is called:
Code:
m_userhacks_align_sprite_X = !!theApp.GetConfig("UserHacks_align_sprite_X", 0);
The fact is that in the patch gregory sent me the other day it was called in the other way
Of course if I had to recompile the plugins today I would use that code with those names
(03-30-2015, 10:30 AM)gregory Wrote: [ -> ]Upscaling generates a lots of accuracy issue (so far, input texture too small / input primitive too small / wrong window offset). My hack increases the size of the sprite without increase the mapped texture size. Texture will be a little stretched. I'm afraid it will be horrible for small spirit.

Anyway, if you can generate me a gs dump of Ar tonelico, I will give it a look.

Okay. I will make a GS dump here in a few.

Two of the hacks in GSdx HW hacks CLAIM to help, but they really don't, especially not for AT2.

Thing is, AT and AT2 upscales so poorly anyway I always just run it at native. Still, it's worth a look, I think some other Gust game might benefit too.
Okay here are dumps, also screenshots.

Ar tonelico: Melody of Elemia:
GS dump: https://www.dropbox.com/s/qnkedfd48kwosj...mp.7z?dl=0

You can see on the faces on the portraits that the inner part(which changes to animate the face) is completely unaligned. Nothing helps. Not TC offset, not Sprite, and not Wild Arms Hack(both the HW hacks say they WILL help). Neither does completely turning off texture filtering. Only going to native resolution helps. Also parts of the background and stuff have lines as well. Also in AT1, the sprites in battle have small black lines, but the HW hacks DO fix those.
Screenshot: [Image: at.jpg]

Ar tonelico II: Melody of Metafalica:
GS dump: https://www.dropbox.com/s/88cch9dkif49v8...mp.7z?dl=0

In AT2 it's just the face area of the portraits. It's the same problem as AT1. Also with the backgrounds.
Screenshot: [Image: at2.jpg]
Thanks. I will give a look at those files.

m_userhacks_RemoveHoleBetweenSprite was a previous workaround that target only ace combat.

The new version is more general, less safe but it seems to work on various issues.

Potentially texture streching can be improved but
1/ it will cost on CPU perf
2/ It will restore black line on FMV

Scaling bug in short:
1/ colin have a wrong offset of the context so it draw from [-0.5 ; 63.5[ (the correct behavior will be [0 ; 64[ (so it miss a couple of pixels)
2/ mana khemia FMV: super sampling of n times a 16 texels texture requires at least a textures of 17 texels (maybe force clamping the texture could help but hard to says because they use atlas of texture)
3/ ace combat has hole between primitives [0 ; 63.5 [ + [64 ; 127.5[ <= it miss [63.5 ; 64 [ (hence a couple of pixels)
FWIW the opening FMV of Ar tonelico 1 has lines in it too. Maybe the same as Mana Khemia.
@Gregory

Do you happen to know what causes the bad shadows in the Jak games?
(03-31-2015, 09:20 PM)Nobbs66 Wrote: [ -> ]@Gregory

Do you happen to know what causes the bad shadows in the Jak games?

shadow volumes with missing depth stencil op

[Image: shadow-vol04.gif]
Honestly I don't know. But try the openGL renderer. It handles better DATE (destination alpha testing) often use for shadowing.


So I look a bit at AT1, only the face. I found at least 1 issue with upscaling but I suspect more.

Upscaling is an anti-aliasing effect so it "blurs" the rendering that means it breaks pixel accurate rendering.

Please look at the iput texture of the game. As you can the hairs are rendered without the face. The game uses special alpha value to avoid overlapping of future rendering.
So let's consider alpha values on a X-axis
input textures: 1 1 1 1 0 0 0 0 0 1 1 1 1
native render: 1 1 1 1 0 0 0 0 0 1 1 1 1 (sharp rendering)
scale render: 1 1 1 1 0.5 0 0 0 0.5 1 1 1 1 (egde is blurred)

Next draw will only replace the 0 alpha pixels. So edges between face and hairs will sucks.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563