HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: quartz.d jagged resized icon  (Read 1489 times)

AWW_boss

  • General Accounts
  • *
  • Posts: 846
  • gdfgd
    • View Profile
quartz.d jagged resized icon
« on: Apr 23, 15, 12:55:19 AM »

Hi!

I have a 64x64 texture which gets applied to a smaller 50x50 GUIPanel. The result is that i get a jagged icon, much worse than it was before the quartz.d. I don't know if this is somehow related to a texture filter, but i tried setting it both true and false and it doesn't help.

This is how the icon looks now:
https://dl.dropboxusercontent.com/u/79625595/jagged2.png

and this is how it looked before the quartz.d update (note that this is pulled from an older video, but you'll get the point):
https://dl.dropboxusercontent.com/u/79625595/not_jagged2.png

Any idea how i fix this?
Logged

Prometheus2012

  • General Accounts
  • *
  • Posts: 651
    • View Profile
    • Exile-Online
Re: quartz.d jagged resized icon
« Reply #1 on: Apr 23, 15, 08:23:52 AM »

We are having a similar issue. Glows now seem to have a horrendous black pixelation around them that is fairly obvious. Maybe something to do with a change in alpha transparencies and how the engine handles them on both glows and GUI textures etc.

HE-HERB

  • HeroEngine
  • *****
  • Posts: 530
    • View Profile
    • HeroEngine
Re: quartz.d jagged resized icon
« Reply #2 on: Apr 23, 15, 09:28:17 AM »

Check the GUI control value for TextureFilter - change it to TRUE to filter / blend the image.

Cheers
Logged
herb marselas
graphics guy

AWW_boss

  • General Accounts
  • *
  • Posts: 846
  • gdfgd
    • View Profile
Re: quartz.d jagged resized icon
« Reply #3 on: Apr 23, 15, 10:07:07 AM »

It doesn't seem to work via the HSL, as i tried both true and false settings after createffromprototype and nothing changed. I need to doublecheck and confirm this though.
Logged

AWW_boss

  • General Accounts
  • *
  • Posts: 846
  • gdfgd
    • View Profile
Re: quartz.d jagged resized icon
« Reply #4 on: Apr 23, 15, 12:46:16 PM »

Repro steps:

1. place this 64x64 texture somewhere in your repo
https://dl.dropboxusercontent.com/u/79625595/MUD_vmenu_chat.dds

2.run this code (texture filter set to true, which is default)
  chatIconPanel as NodeRef of Class GUIPanel = createNodeFromPrototype("_panel")

  chatIconPanel.build = true
  chatIconPanel.dockMode = None
  chatIconPanel.texture = ("\tmp\MUD_vmenu_chat.dds")
  chatIconPanel.defaultStatePresentation.position.x = 0
  chatIconPanel.defaultStatePresentation.position.y = 0
  chatIconPanel.defaultStatePresentation.size.x = 64
  chatIconPanel.defaultStatePresentation.size.y = 64
  chatIconPanel.position.x = 100
  chatIconPanel.position.y = 100
  chatIconPanel.size.x = 50
  chatIconPanel.size.y = 50
 
  println(chatIconPanel.textureFilter)

You'll notice that the texture is jagged! <- this is the problem


3. run the same code, but add the line which is marked bold, which sets the texture filter to false:

  chatIconPanel as NodeRef of Class GUIPanel = createNodeFromPrototype("_panel")

  chatIconPanel.textureFilter = false

  chatIconPanel.build = true
  chatIconPanel.dockMode = None
  ...

You'll notice that the texture is still jagged and there is no difference! <- this is the problem
Logged

HE-HERB

  • HeroEngine
  • *****
  • Posts: 530
    • View Profile
    • HeroEngine
Re: quartz.d jagged resized icon
« Reply #5 on: Apr 23, 15, 01:33:30 PM »

Did you try turning it on and off a couple of times in succession?

True
False
True
False
True

I ask because maybe there's a state mismatch somewhere and values are incorrect and / or coalesced

Cheers
Logged
herb marselas
graphics guy

AWW_boss

  • General Accounts
  • *
  • Posts: 846
  • gdfgd
    • View Profile
Re: quartz.d jagged resized icon
« Reply #6 on: Apr 23, 15, 02:43:58 PM »

I'm not sure what you mean... something like this?

  chatIconPanel as NodeRef of Class GUIPanel = createNodeFromPrototype("_panel")
 
  chatIconPanel.textureFilter = false
  chatIconPanel.textureFilter = true
  chatIconPanel.textureFilter = false
  chatIconPanel.textureFilter = true
 
  chatIconPanel.build = true
  chatIconPanel.dockMode = None
  chatIconPanel.texture = ("\tmp\MUD_vmenu_chat.dds")
  chatIconPanel.defaultStatePresentation.position.x = 0
  chatIconPanel.defaultStatePresentation.position.y = 0
  chatIconPanel.defaultStatePresentation.size.x = 64
  chatIconPanel.defaultStatePresentation.size.y = 64
  chatIconPanel.position.x = 200
  chatIconPanel.position.y = 200
  chatIconPanel.size.x = 50
  chatIconPanel.size.y = 50

  chatIconPanel.textureFilter = false
  chatIconPanel.textureFilter = true
  chatIconPanel.textureFilter = false

  println(chatIconPanel.textureFilter)



I tried it and nothing happened...
Logged

HE-HERB

  • HeroEngine
  • *****
  • Posts: 530
    • View Profile
    • HeroEngine
Re: quartz.d jagged resized icon
« Reply #7 on: Apr 28, 15, 03:19:25 PM »

This will be fixed in the next update

Cheers
Logged
herb marselas
graphics guy