Goombert
|
|
Reply #15 Posted on: May 26, 2014, 02:25:05 am |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
Will do and how do I pass the second set of value (model view) ? ......you mean you weren't passing the second set to model view? Listen, when I say the following. 0.6,0.6 and 0.4,0.4 I mean 0.6,0.6 goes on this line for the projection https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Graphics_Systems/OpenGL1/GLmatrix.cpp#L111And I mean 0.4,0.4 goes on this line for the model view matrix. https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Graphics_Systems/OpenGL1/GLmatrix.cpp#L128That is why I had you trying the opposites as well, you'll have to go back and retest all of them again. There is one other solution, and that is to round up all 2D vertices that are passed to the ModelStruct. That would make the rounding the same for everyone's graphics hardware, in GL3 it could be done in the vertex shader, this solution would also work for Direct3D. Probably better not to do in the vertex shader though, if we just do it when the vertex is added then it is done one time and one time only.
|
|
« Last Edit: May 26, 2014, 02:27:53 am by Robert B Colton »
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
Darkstar2
|
|
Reply #16 Posted on: May 26, 2014, 02:45:15 am |
|
|
Joined: Jan 2014
Posts: 1238
|
......you mean you weren't passing the second set to model view?
LOL FFS of course I passed the second value ! That was through the CPP file. Everything was done. I was talking about function, I asked how do I dynamically change those values inside game, you mentioned using d3d_projection, then I asked how do I pass the model view value, I thought it was obvious I meant through EDL/GML functions. I already know how to apply changes through the GLMatrix.cpp ! The reason I ask is should we never find a solution perhaps we can find the one set that works for you, and the one set that works for me, and I could make a script in my games with ability for a setting to be configured either internally or through a settings.ini of some sort where GPU=AMD or GPU=NVIDIA or whatever and have the game automatically change settings. I'm thinking ahead and try to think of workarounds, because I have a feeling this specific issue might be bigger than we think !
|
|
« Last Edit: May 26, 2014, 02:50:16 am by Darkstar2 »
|
Logged
|
|
|
|
Goombert
|
|
Reply #17 Posted on: May 26, 2014, 04:56:47 am |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
It's not bigger than we think, it's the fact Nvidia takes a vertex that is at (0.5, 0.5) and will draw it at 1,1 and AMD will draw it at 0,0
Also, you can't offset the model view matrix unless your handle transformations completely on your own, the model view matrix is the product of the model and view matrices respectively.
At any rate, just test those remaining values I gave you and let me know.
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
|
Goombert
|
|
Reply #19 Posted on: May 26, 2014, 05:22:24 am |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
Tried that already Harri, I get the following results, notice the 1px border on the left and top as a result of shifting my geometry because the black rectangle fades over the scrolling background. Harri if those final tests he does do not work, we won't have a set of values that works for both of us. What do you think about rounding up in the Vertex2D function of ModelStruct? That way we emulate the same consistent behavior, i'd prefer not to do it in the vertex shader also because we can't control which vertices are 2D that way.
|
|
« Last Edit: May 26, 2014, 05:24:24 am by Robert B Colton »
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
|
|
Darkstar2
|
|
Reply #22 Posted on: May 26, 2014, 02:12:24 pm |
|
|
Joined: Jan 2014
Posts: 1238
|
Ok what mess. Since I have been extremely busy for quite some time I kinda neglected updating stuff on my PC. Didn't have the need to. Anyhow now I am up to date on the NVIDIA drivers, they are the latest official WHQL. Robert, are your AMD graphics card drivers up to date as well ? -------------------- After updating lots have changed, I will re-run those tests again Now I see those flickering lines too !!!!! Not only that but bad text & flickering lines. Am I to assume by this that they fixed the rounding issue ? Guess we shall find out Will re-run tests, I will start with 0.375 / 0.375 (update: Nope no go) @Harri: model view only 0.375 does not work for me either. Flickering lines (scroll) bad text. So far I tried many and all have bad text and bad scroll, will try the set above. Pissed off I thought recent drivers would solve it. Why the bloody hell don't I have any issues running any other 2D or 3D game...... ?
|
|
« Last Edit: May 26, 2014, 02:49:02 pm by Darkstar2 »
|
Logged
|
|
|
|
Darkstar2
|
|
Reply #23 Posted on: May 26, 2014, 03:25:41 pm |
|
|
Joined: Jan 2014
Posts: 1238
|
Read previous posts for the shit update.
Nothing works !
0.00,0.00 and 0.25,0.25 pile of dung all around. Scroll bad text bad border bad
0.25,0.25 and 0.25,0.25 (original settings) pile of dung all around. Scroll bad text bad border bad
0.25,0.25 and 0.125,0.125 pile of dung all around. Scroll bad text bad border bad
0.125,0.125 and 0.25,0.25 pile of dung all around. Scroll bad text bad border bad
0.375,0.375 and 0.375,0.375 pile of dung all around. Scroll bad text bad border bad
0.125,0.125 and 0.375,0.375 pile of dung all around. Scroll bad text bad border bad
0.25,0.25 and 0.375,0.375 pile of dung all around. Scroll bad text bad border bad
0.375,0.375 and 0.25,0.25 pile of dung all around. Scroll bad text bad border bad
0.375,0.375 and 0.125,0.125` pile of dung all around. Scroll bad text bad border bad
0.000,0.000 and 0.000,0.000 pile of dung all around. Scroll bad text bad border bad
(Seems nothing has any effect everything is identical)
Same shit, full screen, window mode, all resolutions, OGL1,OGL3 and even DX9 !!!!
Everything has gone to complete utter shite!
All I did was update my driver, and yes I did a clean install. and yes I rebuild all each time. Seems no matter what numbers I use they all have the same look, I don't see any difference between all of the above.
What in fuck just happened here ?
--- UPDATE:
Instead of going back and forth editing and rebuilding (time consuming) I wrote a script that I plugged into the game, allowing me in real-time to tweak settings with keyboard and view the changes live. Not a single settings work, be it full screen, window, scroll is always bad. I swept the entire range using the script.
So it's no bloody use, I don't know what else to do and I am pissed at this.
|
|
« Last Edit: May 26, 2014, 04:13:57 pm by Darkstar2 »
|
Logged
|
|
|
|
Goombert
|
|
Reply #24 Posted on: May 26, 2014, 05:16:58 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
Uhm, yah, my drivers are up to date, I just bought this computer. Second, I don't think updating your drivers should have had any effect on floating point rounding, that's something that is somewhat built into the graphics card. At any rate, try not offsetting at all, and try 0.5,0.5. And also, I told you. I don't know how Unity3D solves this either. You can also try rounding up or down x and y on the following line. Also try rounding up or down and offsetting by 0.5,0.5 https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Graphics_Systems/OpenGL1/GLModelStruct.h#L260
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
Darkstar2
|
|
Reply #25 Posted on: May 26, 2014, 06:14:42 pm |
|
|
Joined: Jan 2014
Posts: 1238
|
Uhm, yah, my drivers are up to date, I just bought this computer. Second, I don't think updating your drivers should have had any effect on floating point rounding, that's something that is somewhat built into the graphics card.
Prior to updating my drivers, I did not have the scrolling glitch on any offsets. Since updating my drivers, I see the scrolling glitch on ALL offsets, and text glitch on ALL offsets as well. I suspect there is more to it, must be something in ENIGMA. I am currently investigating this now as I tried making a new project and using tiled background scrolling and did not see the scroll glitch on ANY offset. I think this is in relation to some function not working right within ENIGMA and in the game code. Regarding the text glitch, that still remains. With my older drivers text displayed fine with many tested offsets. With new drivers, ALL offsets glitch, I tried every possible increment range between 0.000 and 1.000, no go. At any rate, try not offsetting at all, and try 0.5,0.5. And also, I told you. I don't know how Unity3D solves this either.
As I mentioned already, I tried ALL possible ranges, from 0.000 to 1.000 in every increment, any possible combination. I suspect where the scrolling bug is coming from, but regarding text don't know. I have lots to work on and test for now. You can also try rounding up or down x and y on the following line. Also try rounding up or down and offsetting by 0.5,0.5 https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Graphics_Systems/OpenGL1/GLModelStruct.h#L260
Will do.
|
|
« Last Edit: May 26, 2014, 06:20:30 pm by Darkstar2 »
|
Logged
|
|
|
|
Goombert
|
|
Reply #26 Posted on: May 26, 2014, 06:31:07 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
Yes of course it is an ENIGMA bug when you've encountered it in Studio as well. It's not, it's an OpenGL and Direct3D issue, the same issue occurs in Unity3D if you try to use regular textures for 2D, only UnityGUI and certain extensions account for half pixel, otherwise you have to account for it yourself. See for yourself. https://www.google.com/#q=unity3d+half+pixelAt any rate, there was a real simple fix I told you to try that would almost certainly work. Round up or down x and y on the following line. Also try rounding up or down and offsetting by 0.5,0.5 and various values. This makes the rounding consistent on all hardware. https://github.com/enigma-dev/enigma-dev/blob/master/ENIGMAsystem/SHELL/Graphics_Systems/OpenGL1/GLModelStruct.h#L260
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
Darkstar2
|
|
Reply #27 Posted on: May 26, 2014, 07:05:52 pm |
|
|
Joined: Jan 2014
Posts: 1238
|
This has nothing to do with the blurry texture reported in unity. the problem I am experiencing is not blurriness.....but artifacting. When I refer to text display being bad I mean the letters themselves are fine, but there are tiny veritcal and horizontal lines around edges of the font. I really feel hopeless. I tried even defining fonts, I used many different kinds of fonts and sizes ranging from tiny to huge and see those artifacts !!! and what's more upsetting is the artifact is not consistent across a range of x,y but it is variable, depending on each letter in the font so this proves beyond doubt something deep in ENIGMA perhaps nothing to do with what we are trying to fix I use a script to change the offset within the game, it resolves it to where my 1111111 example is, but breaks the lines below it and if moving the position more artifacts come. it seems impossible to have a fix that will allow text to display fine regardless of its x,y coordinate. I'm certainly not reverting my gfx card drivers because I know the driver is fine. The new driver happen to coincidentally enhance or make more visible what was already broken in ENIGMA. You might be chasing the wrong problem. None of the suggestions worked.
|
|
« Last Edit: May 26, 2014, 07:19:28 pm by Darkstar2 »
|
Logged
|
|
|
|
|
Goombert
|
|
Reply #29 Posted on: May 26, 2014, 08:37:45 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
A screenshot would help, do you know why? Pictures speak a billion words. None of the suggestions worked. You didn't even add the round function where I told you to, this is the third time now. You might be chasing the wrong problem. I can only tell you what works on my hardware, I can't tell you what doesn't work on your hardware.
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
|