Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Text and GUI Rotation (https://forums.graalonline.com/forums/showthread.php?t=134264044)

oo_jazz_oo 07-31-2011 10:52 PM

Text and GUI Rotation
 
When rotating text via showtext(), and using GUI controls, the behavior is...very strange.

This script
PHP Code:

new GuiMLTextCtrl("GuiText_Test") {
  
profile GuiBlueMLTextProfile;
  
  
100;
  
550;
  
  
text "<center><font size=16 color=white><b>This is a test</b></font></center>";


Produces this:
http://i.imgur.com/KaYxf.png

If you add
PHP Code:

rotation 1.575

The result is this; a scrambled mess of letters.
http://i.imgur.com/uCZ0N.png

The same happens when using rotation with showtext().
Is there some way to fix this, and rotate text without it looking like a complete mess?

DustyPorViva 07-31-2011 10:59 PM

LOL. lol

ffcmike 07-31-2011 11:03 PM

Possibly by setting rotation center?

PHP Code:

useowncenter true;
rotationcenter "x,y"

I doubt it though.

oo_jazz_oo 08-01-2011 12:35 AM

Quote:

Originally Posted by ffcmike (Post 1660991)
Possibly by setting rotation center?

PHP Code:

useowncenter true;
rotationcenter "x,y"

I doubt it though.

Still the same. :p

Playing around with it more, there seem to be a lot of things wrong with it...
If you have a rotation of .3 thru 1.4, the text just doesn't display. Same with some other numbers as well...

oo_jazz_oo 08-09-2011 10:47 PM

http://media.tumblr.com/tumblr_lav8jwxI6N1qbitum.gif
Blarghargharlargh.

Oh, why thank you Nigel for that bump.

Also, does Stefan ever look over the tech support forums? Or is there no point in bumping this thread? Because if nothing will get done, I might as well just start pming him and let this thread drop back to the middle of the page.

ffcmike 08-09-2011 10:51 PM

Quote:

Originally Posted by oo_jazz_oo (Post 1662748)
Also, does Stefan ever look over the tech support forums?

Seems to be a lottery.

oo_jazz_oo 09-08-2011 10:03 AM

http://images4.wikia.nocookie.net/__...weekslater.jpg

This is actually quite frustrating....I just wanted to display sideways text. :( Is that so hard to ask for...

Crow 09-08-2011 11:17 AM

Quote:

Originally Posted by oo_jazz_oo (Post 1667434)
http://images4.wikia.nocookie.net/__...weekslater.jpg

This is actually quite frustrating....I just wanted to display sideways text. :( Is that so hard to ask for...

It is on Graal. Even CSS can do it!

Tolnaftate2004 09-08-2011 10:17 PM

I posted about this 4 years ago. It does not seem to be a high priority.

Admins 09-09-2011 12:29 AM

Will try to fix it for DirectX9, it's working fine in OpenGL.

Crow 09-09-2011 12:31 AM

Quote:

Originally Posted by Stefan (Post 1667501)
Will try to fix it for DirectX9, it's working fine in OpenGL.

Why not remove DirectX support all together and use OpenGL for the windows version as well? DirectX seems to cause lots of trouble.

oo_jazz_oo 09-09-2011 01:01 AM

Quote:

Originally Posted by Stefan (Post 1667501)
Will try to fix it for DirectX9, it's working fine in OpenGL.

I thought the v6 client was using openGL. :oo:

It would probably be better to just use openGL...Graal seems to run better with it.

DustyPorViva 09-09-2011 01:04 AM

Has OpenGL support been improved? I dunno about anyone else but whenever I tried OpenGL with Graal it ran horribly. And I'm talking about over about 4-5 different PCs I've had over the years.

ffcmike 09-09-2011 01:21 AM

Quote:

Originally Posted by DustyPorViva (Post 1667514)
Has OpenGL support been improved? I dunno about anyone else but whenever I tried OpenGL with Graal it ran horribly. And I'm talking about over about 4-5 different PCs I've had over the years.

This was also true for me prior to V6, but I find the new version to be much faster for displays with OpenGL whereas DirectX seems to be slower than V5.

I'm not an expert on how this stuff works but idling in a level filled with 25 nickname displaying NPCs, checking through task manager I find V6 + OpenGL to be taking half as much CPU as V5 + DirectX, weirdly V6 + DirectX is about 3 times as much as V6 + OpenGL.

fowlplay4 09-09-2011 02:42 AM

There should be an option in F3 to change between DirectX and OpenGL (for Windows obv).

DustyPorViva 09-09-2011 02:47 AM

Quote:

Originally Posted by fowlplay4 (Post 1667523)
There should be an option in F3 to change between DirectX and OpenGL (for Windows obv).

Easily possible given that there's functions to force the change :/

cbk1994 09-09-2011 03:18 AM

Quote:

Originally Posted by DustyPorViva (Post 1667514)
Has OpenGL support been improved? I dunno about anyone else but whenever I tried OpenGL with Graal it ran horribly. And I'm talking about over about 4-5 different PCs I've had over the years.

Same experience here with many PCs.

Mark Sir Link 09-09-2011 06:38 AM

Quote:

Originally Posted by DustyPorViva (Post 1667526)
Easily possible given that there's functions to force the change :/

don't think they actually do anything

DustyPorViva 09-09-2011 06:51 AM

Quote:

Originally Posted by Mark Sir Link (Post 1667547)
don't think they actually do anything

Last time I tried them they worked fine.

Mark Sir Link 09-09-2011 07:14 AM

I gave them a shot to try making it easier for a player to swap the other day and it did nothing for the player or myself. You mean switchtoopengl() right?

Crow 09-09-2011 12:47 PM

I've tried the mode switching functions before; on v5 they didn't do ****, and on v6 they just destroy the main window for me, leaving the playerlist open (but unresponsive).

Mark Sir Link 09-09-2011 01:48 PM

when I tried them tuesday, they just did nothing at all as far as I can tell. Was throwing them in weaponfired and then having player.chat set to "isopengl", constantly returned 0.

ended up having to have the player add it to command line for short cut


All times are GMT +2. The time now is 05:19 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.