This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
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 »
1336
Issues Help Desk / Re: Font rendering/text/sprites/scrol/EVERYTHING is broken ! (Hopeless, no solution)
« on: May 27, 2014, 03:48:18 am »Quote
1) Nothing wrong with my hardware. I never had this shit happen to me in any 2D game, 3D game, or whatever.All I know is, you updated drivers which exacerbated the behavior in ENIGMA and you did not appear to have tested Studio or Unity or anything else, or even an empty OpenGL application. This obviously doesn't affect other 3D games because half pixel alignment is not relevant to anything except an orthographic projection, and you obviously haven't experienced it in any other 2D game because whatever game it was uses proper half pixel alignment as suggested by Microsoft or others, which is what we are trying to do for ENIGMA.
Quote
2) It has NOTHING to do with blurriness, everything is sharp that is not the issue. The issue is the fucking pixel vertical line on scrolling that I did not use to have and text that is displayed wrong, NOT BLURRY, but rendered wrong. I already posted a screen shot in the past, you too, so it can't only be card related.I'm sorry, but I simply can not deduct what you mean by wrong, other than that you now have the vertical line for the scrolling backgrounds, I do not know what you mean by wrong in the context of text rendering. Which is very easy for you to take a picture of.
Quote
3) It's no use testing gl model view and d3d projection ortho no combination works. I tried all the combinations suggested even my own even sweeping through the entire possible range, no combination bloody works. If I find a setting that works in fullscreen it won't in windows and etc. having swept all the combinations.Ok, you told me that already, I wasn't telling you to test anymore combinations there, I was telling you test rounding in the ModelStruct.
Quote
what the fuck am I supposed to do with this ?No, I told you to round x and y before they are pushed into the vector using cmath or w/e. And if that didn't work, I told you to then try offsetting the ROUNDED value starting with a full half pixel (0.5,0.5)
more offsets as in x+=0.5f; y+=0.5f ?
Quote
You mean to tell me that everything works fine on your end without any need for offsets in the glmatrix ? I thought you said otherwise back when I reported it the first time.Yes, if I remove all offsets in everything, my graphics driver displays everything in OpenGL perfect whether in FS or windowed, I only have problems with Direct3D.
Quote
what if the problem is in the font rendering or sprite/background handling or deeper in the graphic system ?You're being dramatic, I gave you a solution as low-level in the engine as possible, rounding every 2D vertex to a full pixel.
Quote
If I have time I will make a video showing the display sweep throughThat is not necessary, I simply asked for a screenshot of how text rendering is behaving since you updated drivers.
Quote
vertices.push_back(x+0.5f); vertices.push_back(y+0.5f);Or you could try doing what it was that I actually suggested.
vertices.push_back(round(x)); vertices.push_back(round(y));
and...
vertices.push_back(round(x)+0.5f); vertices.push_back(round(y)+0.5f);
That also works for me and makes vertices round consistently on all hardware.
1337
Issues Help Desk / Re: Font rendering is broken again ! (has gone to SHIT!)
« on: May 26, 2014, 09:04:56 pm »
Did you round up or round down, and did you try additionally adding pixel offsets to the rounded values?
1338
Issues Help Desk / Re: Font rendering is broken again ! (has gone to SHIT!)
« on: May 26, 2014, 08:37:45 pm »
A screenshot would help, do you know why? Pictures speak a billion words.
Quote from: Darkstar2
None of the suggestions worked.You didn't even add the round function where I told you to, this is the third time now.
Quote from: Darkstar2
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.
1339
Issues Help Desk / Re: room_set functions not implemented in ENIGMA????
« on: May 26, 2014, 08:34:11 pm »
Yes, they work the same as GM8.1, you have to switch to another room and then back again.
1340
Issues Help Desk / Re: Font rendering is broken again ! (has gone to SHIT!)
« on: May 26, 2014, 06:31:07 pm »
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+pixel
At 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
See for yourself.
https://www.google.com/#q=unity3d+half+pixel
At 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
1341
Issues Help Desk / Re: Problems with multiple views
« on: May 26, 2014, 05:17:52 pm »
egofree, we call swap buffers in screen_refresh, which I believe is defined in bridges. Anyway, yes that is exactly what I said the problem was.
Quote from: RobertBColton
Probably something to do with not flipping the backbuffer, most likely an easy fix.By that I meant, of course, SwapBuffers() or screen_refresh() whatever the fuck you want to call it.
1342
Issues Help Desk / Re: Font rendering is broken again ! (has gone to SHIT!)
« on: May 26, 2014, 05:16:58 pm »
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
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
1343
Issues Help Desk / Re: instance_deactivate_region crashes the application
« on: May 26, 2014, 06:00:21 am »
From what I understand egofree, instance activation/deactivation was broke somewhat before I touched anything too, I'll take a look at it when I have time, I'm aware I need to work out some of the kinks in that.
1344
Issues Help Desk / Re: Font rendering is broken again ! (updated)
« on: May 26, 2014, 05:22:24 am »
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.
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.
1345
Issues Help Desk / Re: instance_deactivate_region crashes the application
« on: May 26, 2014, 04:57:32 am »
Is inheritance involved?
1346
Issues Help Desk / Re: Font rendering is broken again ! (updated)
« on: May 26, 2014, 04:56:47 am »
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.
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.
1347
Issues Help Desk / Re: Font rendering is broken again ! (updated)
« on: May 26, 2014, 02:25:05 am »Quote
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#L111
And 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#L128
That 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.
1348
Proposals / Re: Easy Cross-compiling?
« on: May 26, 2014, 01:29:39 am »
Because he is a resident troll
1349
Issues Help Desk / Re: Font rendering is broken again ! (updated)
« on: May 26, 2014, 01:28:53 am »
Uh yeah, just pass the offsets to d3d_set_projection ortho.
Anyway, I only have a few more that work for me.
0.175,0.175 and 0.175,0.175
0.275,0.275 and 0.175,0.175
0.175,0.175 and 0.275,0.275
0.6,0.6 and 0.4,0.4
0.4,0.4 and 0.6,0.6
Try themtomorrow. The only way this would not be an issue is we could use the one that works when not in fs and do real fullscreen then the display resolution would 1v1 with the game resolution and one of those would work in both cases.
Anyway, I only have a few more that work for me.
0.175,0.175 and 0.175,0.175
0.275,0.275 and 0.175,0.175
0.175,0.175 and 0.275,0.275
0.6,0.6 and 0.4,0.4
0.4,0.4 and 0.6,0.6
Try themtomorrow. The only way this would not be an issue is we could use the one that works when not in fs and do real fullscreen then the display resolution would 1v1 with the game resolution and one of those would work in both cases.
1350
Issues Help Desk / Re: Font rendering is broken again ! (updated)
« on: May 26, 2014, 12:55:14 am »
How the hell are you criticizing my card? Mine is the one that draws everything fine with no offset, yours is the one that can't round.
At any rate, we're still fucked, we need a magic number that works perfect for both of us.
Try this one.
0.125,0.125 and 0.125,0.125
At any rate, we're still fucked, we need a magic number that works perfect for both of us.
Try this one.
0.125,0.125 and 0.125,0.125
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 »