icon & transparency

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
filsduloup
Regular
Posts: 65
Joined: Thu Aug 28, 2008 3:00 pm
Projects: Alchimical Girl -Homuncule-
Location: France
Contact:

icon & transparency

#1 Post by filsduloup »

i have a probleme with my icon in my project

i use this config.window_icon = "ringout.png" before config.window_title = u"Pro Lesring Ring Out", it"s ok but my icon appears without transparency!

My image is 48x48 and png.

I try different format and I desperate to find a solution to this problem!

User avatar
Midnighticequeen
Veteran
Posts: 292
Joined: Fri Apr 04, 2008 4:04 pm
Completed: Bunni and Kitty, Sweethearts, Tiesa's Tales
Projects: Wish
Organization: Ice Queen Games
itch: icequeenstudios
Contact:

Re: icon & transparency

#2 Post by Midnighticequeen »

Try converting it to gif format, it should work

filsduloup
Regular
Posts: 65
Joined: Thu Aug 28, 2008 3:00 pm
Projects: Alchimical Girl -Homuncule-
Location: France
Contact:

Re: icon & transparency

#3 Post by filsduloup »

i have converted my picture on gif, but that dont work !

Snifff !

User avatar
Midnighticequeen
Veteran
Posts: 292
Joined: Fri Apr 04, 2008 4:04 pm
Completed: Bunni and Kitty, Sweethearts, Tiesa's Tales
Projects: Wish
Organization: Ice Queen Games
itch: icequeenstudios
Contact:

Re: icon & transparency

#4 Post by Midnighticequeen »

Wow, that should have worked, maybe you should ask PyTom about it.

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: icon & transparency

#5 Post by PyTom »

Unfortunately, I don't have a good answer to this. The only thing I can tell you is to fiddle with the icon until it works.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

delta
Epitome of Generic
Posts: 525
Joined: Sat Dec 22, 2007 12:59 pm
Projects: yes
Contact:

Re: icon & transparency

#6 Post by delta »

Could be an SDL problem. I've encountered something similar, not with Ren'Py, but with ONScripter (which is an SDL application as well). Sadly, I never managed to really fix it, but try around with different icon sizes (e.g. 32x32, 16x16), various encoding methods (PMG-24, PNG-8 with various pallette sizes). None of them looked perfect, but I settled for the one that was broken the least.

My current Ren'Py game icon (which works perfectly) is 32x32, PNG-24 with alpha. I attached it, you can test whether it works for you.
Attachments
icon.png
icon.png (4.29 KiB) Viewed 1472 times
The rest is left as an exercise for the reader.

filsduloup
Regular
Posts: 65
Joined: Thu Aug 28, 2008 3:00 pm
Projects: Alchimical Girl -Homuncule-
Location: France
Contact:

Re: icon & transparency

#7 Post by filsduloup »

your picture is ok !

But when i change the format et the size of my picture the transparancy is not ! i have alpha canal !

Delta i open your image(heart) and my image, i have erase your image and copy and past my image in your picture my image and that functionne ! the programme dont recognize the transparancy of my image !

thanks all for you help !

and don't foget i am a renpy kamen rider of eroge ! :)

herenvardo
Veteran
Posts: 359
Joined: Sat Feb 25, 2006 11:09 am
Location: Sant Cugat del Vallès (Barcelona, Spain)
Contact:

Re: icon & transparency

#8 Post by herenvardo »

Which program are you using to handle your images?
If possible, you should try to check the format details (format, pixel size, color depth, etc) of both files (delta's and yours) and see what is different among them; that way you should be able to find out what makes the difference between a file working and not working ;)
I have failed to meet my deadlines so many times I'm not announcing my projects anymore. Whatever I'm working on, it'll be released when it is ready :P

filsduloup
Regular
Posts: 65
Joined: Thu Aug 28, 2008 3:00 pm
Projects: Alchimical Girl -Homuncule-
Location: France
Contact:

Re: icon & transparency

#9 Post by filsduloup »

For my image i have used the gimp !

My original image was a ico (48x48) i converted her in png (32X32) format !

Just the tranparancy of my image dont work, but the transparancy of delta's heart !
but i have ramplacé the heart of delta by my icon and that work.

Is it because I converted my image icon or is there more kind of transparency, I can not say !??? :?:

EvilDragon
Veteran
Posts: 284
Joined: Fri Dec 28, 2007 5:47 am
Location: Where the Dragons rule!
Contact:

Re: icon & transparency

#10 Post by EvilDragon »

You said you have alpha channel on the image. I don't know if your icon file has several layers, but if it has, then "merge layers" and you will have it all on one plane. Then try saving the icon.
Angels of paradise, angels of sacrifice
Please let me be under your wings...

Post Reply

Who is online

Users browsing this forum: No registered users