Author Topic: Post-Processing  (Read 27474 times)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Post-Processing
« Reply #45 on: February 23, 2018, 10:57:27 am »
Patrice,

Whatever and wherever, but not in the ObjReader render proc and not while I'm hanging around. ;)

No, you are not going to split one and the same pure green color into components 60 times per second in each ObjReader frame. And you are not going to translate WCHAR's to char's in your zMsg that you could have declared and used as a char[] buffer from the very beginning, over and over again 60 times per second in each ObjReader frame.
« Last Edit: February 23, 2018, 08:21:47 pm by Michael Lobko-Lobanovsky »
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Post-Processing
« Reply #46 on: February 23, 2018, 02:22:11 pm »
I did it myself, because i want the digits to respect the theming of the skin.
However you will still be able to use the FRAPS one for your own purpose if you prefer.  8)
the png size would be exactly the same with a 32x32 digit cell.
« Last Edit: February 23, 2018, 02:27:29 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Post-Processing
« Reply #47 on: February 23, 2018, 05:46:46 pm »
Patrice,

My cells aren't 32x32, they're 16x26 but I need an exact POT grid size to avoid OpenGL+GDImage+Glu32+god knows what proxy else to resample my texture to keep it crisp and clear of multisampling. Hence extra translucent margins. (BTW what about my request for the enum?)

P.S. Your code is all right with my boxes; no CPU load detected.
« Last Edit: February 23, 2018, 08:22:59 pm by Michael Lobko-Lobanovsky »
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Post-Processing
« Reply #48 on: February 23, 2018, 06:02:58 pm »
GDImage is able to handle any kind of texture without resampling.

I shall tell you what enum to use, but let me have a look at my code first ;)

Personnaly i find ridiculous to maintain two distinct version of the same project, thus i shall use your FRAPS even if doesn't match my artistic taste  :-X
Patrice
(Always working with the latest Windows version available...)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Post-Processing
« Reply #49 on: February 23, 2018, 06:21:48 pm »
1 = Create square texture
2 = Stretch to memory bitmap
3 = Accept texture of any size
4 = MipMapping

With ObjReader we can safely ignore 1, 2, and use either 3 or 4.
But for your FRAPS, 3 is the good one to use (what you have done already).
« Last Edit: February 23, 2018, 06:24:36 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Post-Processing
« Reply #50 on: February 23, 2018, 06:27:19 pm »
Oh no no no Patrice!!!

You are the project lead and copyright owner, and your superior artistic taste is above and beyond any questioning!

It's just that I'm having the privilege to be able to recompile the binaries to my needs at my own option. They aren't going anywhere beyond my own monitors. And it is not difficult for me to revert my personalizations back to the official version before sending you my mods. :)

So v2.5 goes public with your gasoline station digits. :-X
« Last Edit: February 23, 2018, 08:24:21 pm by Michael Lobko-Lobanovsky »
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Post-Processing
« Reply #51 on: February 23, 2018, 06:59:44 pm »
My dear friend,

You are being very kind to praise my humble odd job so high. I have always said it is my pleasure to assist you in this project.

My sincere congratulations on the occasion of your birthday! In fact we have already neared the age when every birthday is actually a jubilee.

« Last Edit: February 23, 2018, 07:43:07 pm by Patrice Terrier »
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Post-Processing
« Reply #52 on: February 23, 2018, 08:13:31 pm »
It renders autorotated Millenium_Falcon absolutely beautifully @ 60FPS and a quarter of dual-core CPU load even on my AMD box.

Congratulations, partner! :D
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Post-Processing
« Reply #53 on: February 24, 2018, 09:47:55 am »
Mike

Thank you for the confirmation.

Here is the patch (binary + source) to be compatible with VS2010, and solve the mouse scrolling problem  ::)

...
« Last Edit: February 24, 2018, 09:51:54 am by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Post-Processing
« Reply #54 on: February 24, 2018, 01:13:55 pm »
Thanks Patrice,

Now it works fine for me. :)


Aha! Now you see that to rely on a C compiler to do something for you on default isn't very wise! Initialize your vars explicitly and you won't fall into that trap again! 8)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1982
    • zapsolution
Re: Post-Processing
« Reply #55 on: February 24, 2018, 01:58:20 pm »
Quote
Aha! Now you see that to rely on a C compiler to do something for you on default isn't very wise! Initialize your vars explicitly and you won't fall into that trap again!

Indeed the variables were assigned directly into the structure, but that is a NoNo with VS2010, thus i have to moved it in the LS panel control code creation, also had to change a couple of ansi deprecated string API to there _s (secured) version.  :)
« Last Edit: February 24, 2018, 02:00:20 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Post-Processing
« Reply #56 on: February 24, 2018, 02:18:01 pm »
It's quite a surprise for me that MS VC (2010) wouldn't throw an error and allowed you to compile the code at all!  :o
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)