Author Topic: Transparent cursor texture?  (Read 5192 times)

Offline Nightstar

  • Familiar Grounds Dweller
  • **
  • Posts: 83
  • Floof-O-Meter: 5
  • ? Cause the stars are free ?
    • View Profile
Transparent cursor texture?
« on: May 05, 2016, 01:57:10 pm »
Hai it's me again xD
Feels like I'm asking too much, but I just started all that coding and designing and yeh.. x3
So this time I tried to make that big arrow, that shows up when you click somewhere for your char to run to, transparent.
I changed the file called cursorTex.jpg to a transparent .png file, and transliteratet the jpg to png in the media-materials-Cursor Folder.
As always, I failed and now that arrow is black.
Anyone knows how to make it transparent/invisible?

Signature by Cyrokin

Offline Hakumi

  • ✩ Just A Virtuous Smol ✩
  • Honored Hero
  • *****
  • Posts: 4,835
  • Country: 00
  • Floof-O-Meter: 130
  • A Smol & Helpful Floof ~
    • leanim3fr3akzoid
    • LeAnim3Fr3akzoid
    • View Profile
Re: Transparent cursor texture?
« Reply #1 on: May 05, 2016, 04:03:09 pm »
I tried looking this up to see if I could be mistaken on this but really little to nothing came up about this. I would assume that you would open the cursor ( edit with GIMP or whatever program you use ) and made sure that it was on a checkered background and erased the cursor before proceeding to save as a .PNG there might be a file that in the main folder that has the cursor saved and you might need to change it ( Could be wrong ). But if not you could always simply hide your cursor by pressing 'Tab' I think and then 'C' to open your chat window, 'V' to get your map up again, etc. etc.

Keep on traveling across this road called 'Life.'

Discord: Haku - Haku#74O7

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Transparent cursor texture?
« Reply #2 on: May 06, 2016, 09:34:25 pm »
Assuming the new cursorTex is a transparent .png, then add the line alpha_rejection greater_equal 128 above the texture_unit line.

Full new code:
Code: [Select]
material cursorMat
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
env_map spherical
texture cursorTex.png
}
}
}
}

Offline Shazadah

  • Dedicated Supporter
  • ***
  • Posts: 259
  • Country: us
  • Floof-O-Meter: 11
  • Call me NaruWolf
    • http://shay-wolf.deviantart.com
    • https://www.youtube.com/user/Mid
    • View Profile
Re: Transparent cursor texture?
« Reply #3 on: May 07, 2016, 04:32:59 am »
Just adding on to what Phloxen said, try this code if the one above doesn't work (I have a transparent cursor myself). It's just a couple of extra lines added, no big change:

Code: [Select]
material cursorMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
env_map spherical
texture cursorTex.png
}
}
}
}
[/color][/size][/size]

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Transparent cursor texture?
« Reply #4 on: May 07, 2016, 02:30:32 pm »
Already tested mine in-game. cx

The cull lines don't serve a purpose in transparency typically, they affect how faces are rendered.
Which, if you're trying to make all the faces disappear, aren't needed.

Offline Nightstar

  • Familiar Grounds Dweller
  • **
  • Posts: 83
  • Floof-O-Meter: 5
  • ? Cause the stars are free ?
    • View Profile
Re: Transparent cursor texture?
« Reply #5 on: May 10, 2016, 07:34:23 pm »
Thanks for those codes cx I tried them, but now it's white instead of black xD
And I gotta correct myself, I'm not trying to get the cursor transparent, but the big arrow that appears whenever you click somewhere with your cursor. I just thought it's the same because the texture files of that arrow are called cursorTex.
Is it even possible to make it transparent?

Signature by Cyrokin

Offline Hakumi

  • ✩ Just A Virtuous Smol ✩
  • Honored Hero
  • *****
  • Posts: 4,835
  • Country: 00
  • Floof-O-Meter: 130
  • A Smol & Helpful Floof ~
    • leanim3fr3akzoid
    • LeAnim3Fr3akzoid
    • View Profile
Re: Transparent cursor texture?
« Reply #6 on: May 10, 2016, 07:46:35 pm »
I don't think I have ever seen it done before so maybe there really isn't a way to make that arrow transparent in the game ( Could be wrong and maybe I didn't look harder or overlooked it ) but so far, nothing.

Keep on traveling across this road called 'Life.'

Discord: Haku - Haku#74O7

Offline Bloo.

  • Space-Child ✌
  • Elder Grey Pelt
  • ****
  • Posts: 2,658
  • Country: us
  • Floof-O-Meter: 192
  • nyoom
    • Bloopaloozer
    • Bloopalooza FH
    • aLittleProzium
    • Bloopalooza
    • View Profile
    • DeviantArt
Re: Transparent cursor texture?
« Reply #7 on: May 10, 2016, 08:34:36 pm »
What art program are you using? And perhaps try saving the file as .jpg rather than .png, like the original file.


You are amazing <3

Offline Nightstar

  • Familiar Grounds Dweller
  • **
  • Posts: 83
  • Floof-O-Meter: 5
  • ? Cause the stars are free ?
    • View Profile
Re: Transparent cursor texture?
« Reply #8 on: May 10, 2016, 09:25:38 pm »
Art program is gimp and paint tool as, I tried both. And I think if I save them as .jpg, it won't stay transparent..

Signature by Cyrokin

Offline PrettyReckless

  • Elder Grey Pelt
  • ****
  • Posts: 3,285
  • Country: england
  • Floof-O-Meter: 218
    • RecklessAce
    • View Profile
Re: Transparent cursor texture?
« Reply #9 on: May 10, 2016, 09:26:48 pm »
In order to save something you want to be transparent, it indeed does have to be .png
RETIRED.