Error with Mac APP

Previous topic - Next topic

MrTAToad

Just have to wait and see now whether it can be done

Kyo

Quote from: MrTAToad on 2014-Aug-28
Just have to wait and see now whether it can be done

Sure you are right! I'll wait!  :nw:

But for problem with command audio, someone else had my problem?

Schranz0r

GL_LINEAR stratch pixels on resizing, thats "texturebleeding".
GL_NEAREST resize pixel by pixel, no "bleeding"

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Kyo

Quote from: Schranz0r on 2014-Aug-28
GL_LINEAR stratch pixels on resizing, thats "texturebleeding".
GL_NEAREST resize pixel by pixel, no "bleeding"
ah ok ok sorry!  :good:

Kyo

Ok Kitty_Hello he replied me:

Code (glbasic) Select
I use glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);

But if I change the code:

Code (glbasic) Select

IMPORT "C" void __stdcall glTexParameterf(unsigned int flag0, unsigned int flag1, unsigned int flag2);
GLOBAL GL_CLAMP_TO_EDGE%                                   = 0x812F
GLOBAL GL_TEXTURE_2D%                                      = 0x0DE1
GLOBAL GL_TEXTURE_WRAP_S%                                  = 0x2802
GLOBAL GL_TEXTURE_WRAP_T%                                  = 0x2803

etc etc

STARTPOLY num
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);

etc etc


in windows does not seem to work (on Mac I have not tried it yet)...
I'm doing something wrong?

Kitty Hello

Chech the args. One is a float!

Gesendet von meinem GT-N7100 mit Tapatalk


Kyo

Code (glbasic) Select

IMPORT "C" void __stdcall glTexParameterf(unsigned int flag0, unsigned int flag1, float flag2);
GLOBAL GL_CLAMP_TO_EDGE%                                   = 0x812F
GLOBAL GL_TEXTURE_2D%                                      = 0x0DE1
GLOBAL GL_TEXTURE_WRAP_S#                                  = 0x2802
GLOBAL GL_TEXTURE_WRAP_T#                                  = 0x2803


Work fine on pc, now i test on Mac!
Wait for my reply :D

MrTAToad

Will do ?  Are you using it in STARTPOLY though - which is the cause of the original problem ?

Kyo

#38
Quote from: MrTAToad on 2014-Aug-29
Will do ?  Are you using it in STARTPOLY though - which is the cause of the original problem ?

No, don't worK on a Mac .... -_-

Code (glbasic) Select

STARTPOLY num
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);



I see now this:
Code (glbasic) Select
*NEW* Current Version:  12.308

I need to update GL_B for work the code?

------------------------------
Don't work! .... Don't work! .... Don't work! ....   :whip:

Kyo

I test the new ver. 12.308 on Mac and the Audio errors are the same:
1) if ISMUSICPLAYING() = TRUE then STOPMUSIC  the music dosn't stop!
2) MUSICVOLUME  don't work!
3) PLAYSOUND(num%, pan#, volume#) with WAV don't work!

and glTexParameterf don't work!

Angry ....  :rant:

Kyo

#40
Another question, how to set Landscape on iOS (i use iPod 4th gen)
I test with:
- SETSCREEN 960,640,TRUE (and False
- SETSCREEN 9999,9998,TRUE (and FALSE)
and i test with resolution from Option -> Resolution  (On Gl_B IDE Menu)

But the game run i portrait ... WHY?

Other info:
i use xcode 5.1 and ipod 4th gen with ios 6.0.1

MrTAToad

Cant help with that unfortunately.  I think there were only a couple of changes made - and none were to do with Mac's...

Kitty Hello

On iOS use SETORIENTATION for landscape.

Gesendet von meinem GT-N7100 mit Tapatalk


spacefractal

#43
look like its a real bug with sdl.

im do understand now why you want true with SMOOTHSHADING TRUE extractly this one (even its some sort of cheating). Howover you might require to avoid tiles here or do some sort of workaround on the edges by redraw edges with SMOOTHSHADING FALSE to hide the borderline.

Im have only tested on Windows here to checkout the isssue, but can seen why its might not work on MacOSx. Im can only thinks this is pretty much a real bug.

Im have a similar issue, where vSYNC does nothing at all. Im want this one to on.

So

Code (glbasic) Select

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);// Changed \\
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);// Changed \\


inside a POLYGON should have worked really, but fails on the ENDPOLY on that system for some reason (is the above supported on MAC?). SO im thinks this should should been moved to the bug thread, property with a renamed topic.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Kyo

Ok, I opened a ticket in Bug section but since I can not waste more time I'll try to redo the Background with texture PX2.

I honestly I am not happy!