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 » Tue Sep 30, 2008 2:14 pm

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
Tumblr: icequeenstudios
Contact:

Re: icon & transparency

#2 Post by Midnighticequeen » Tue Sep 30, 2008 5:45 pm

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 » Wed Oct 01, 2008 8:35 am

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
Tumblr: icequeenstudios
Contact:

Re: icon & transparency

#4 Post by Midnighticequeen » Wed Oct 01, 2008 12:18 pm

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

User avatar
PyTom
Ren'Py Creator
Posts: 15443
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 » Wed Oct 01, 2008 12:36 pm

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

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

Re: icon & transparency

#6 Post by delta » Wed Oct 01, 2008 2:43 pm

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 1082 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 » Wed Oct 01, 2008 3:26 pm

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 ! :)

User avatar
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 » Wed Oct 01, 2008 3:36 pm

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 » Thu Oct 02, 2008 2:14 pm

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 !??? :?:

User avatar
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 » Thu Oct 02, 2008 2:35 pm

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: Google [Bot]