Need help with character pictures
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.
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.
- Din Redfire
- Newbie
- Posts: 22
- Joined: Mon Sep 09, 2013 4:48 pm
- Projects: Arcadia's Tales
- Contact:
Need help with character pictures
I did my first character's sprite for the visual novel. Problem is, I can't make the background transparent for my character. I'm using Sai and I tried to add the layer ''luminosity'' under all my other layers and use the ''luminosity to transparency'' but when I open my game, my character still have the white background behind her and it looks kind of ugly ^^' Does anyone have any advices, please?
-
- Newbie
- Posts: 21
- Joined: Sun Sep 01, 2013 1:51 am
- Contact:
Re: Need help with character pictures
Do you have the full (paid for) version of SAI?
I worked out the issue of transparent BGs not 24 hours ago thanks to the help of someone here, haha!
I would recommend using a program like Gimp (it's a free download) to give your sprite a transparent BG.
Sai is great for drawing (it's what I use most of the time) but doesn't work well with transparencies.
Hope this helps!
I worked out the issue of transparent BGs not 24 hours ago thanks to the help of someone here, haha!
I would recommend using a program like Gimp (it's a free download) to give your sprite a transparent BG.
Sai is great for drawing (it's what I use most of the time) but doesn't work well with transparencies.
Hope this helps!
- Green Glasses Girl
- Veteran
- Posts: 367
- Joined: Thu Jul 11, 2013 7:16 pm
- Projects: Cavaliers & Carnivals
- Tumblr: green-glasses
- Contact:
Re: Need help with character pictures
Uh, what are you saving your files as? .jpeg or .png? You'll want to delete any solid background layer you have and save as .png.
- Din Redfire
- Newbie
- Posts: 22
- Joined: Mon Sep 09, 2013 4:48 pm
- Projects: Arcadia's Tales
- Contact:
Re: Need help with character pictures
I don't have the full version unfortunately and I did save in png. I downloaded Gimp but I'm wondering how I should do it. Should I save my drawing in jpeg and open it on gimp to save it as png later?
Re: Need help with character pictures
Did you save the alpha channel too when you choose to save as png?
- Din Redfire
- Newbie
- Posts: 22
- Joined: Mon Sep 09, 2013 4:48 pm
- Projects: Arcadia's Tales
- Contact:
Re: Need help with character pictures
Is that an option for Sai? Didn't see anything like that.
Re: Need help with character pictures
When you try to save in SAI, it ask for RGB or ARGB right? The A means that it will save the alpha channel.
-
- Newbie
- Posts: 14
- Joined: Sat Sep 07, 2013 4:32 pm
- Projects: [currently unnamed]
- Location: Quilty, Clare
- Contact:
Re: Need help with character pictures
You can save your SAI file as a psd file and open it up in GIMP, that should give it a transparent background and then you can save it as a png with GIMP.
- Din Redfire
- Newbie
- Posts: 22
- Joined: Mon Sep 09, 2013 4:48 pm
- Projects: Arcadia's Tales
- Contact:
Re: Need help with character pictures
For me it didn't o.o' Well I'll give a try at saving as psd and I'll see if it works.Elmiwisa wrote:When you try to save in SAI, it ask for RGB or ARGB right? The A means that it will save the alpha channel.
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Need help with character pictures
What is te alpha channel used for?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
- Tempus
- Miko-Class Veteran
- Posts: 519
- Joined: Sat Feb 16, 2013 3:37 am
- Completed: Ladykiller in a Bind
- Projects: StoryDevs
- Tumblr: jakebowkett
- Deviantart: jakebowkett
- Github: jakebowkett
- Location: Australia
- Contact:
Re: Need help with character pictures
It defines which pixels are transparent or opaque (or somewhere in between) in an image.trooper6 wrote:What is te alpha channel used for?
Incidentally, some game engines use the alpha channel for other things. For example, Fallout 3 uses the alpha channels of normal maps to control the visibility of specular reflections.
- Din Redfire
- Newbie
- Posts: 22
- Joined: Mon Sep 09, 2013 4:48 pm
- Projects: Arcadia's Tales
- Contact:
Re: Need help with character pictures
Okay, turns out I can't turn my file into a psd because some spots of my coloring shows up when they're not supposed to in my final drawing (creating some stain-like spots all over my character, kind of hard to explain without a picture to show it) But I'm managing to erase the background around the character. It will just take more time... I just hope I'll find some new solutions for my next drawing or it's going to take lot of time for each sprites ^^'
Re: Need help with character pictures
If it become a last resort, Ren'Py have im.AlphaMask to impose a new alpha channel onto what your image already have. Which means that instead of a single image with alpha channel, you can make 2 JPEG, one is the image, and the other is to provide the alpha channel.
- Din Redfire
- Newbie
- Posts: 22
- Joined: Mon Sep 09, 2013 4:48 pm
- Projects: Arcadia's Tales
- Contact:
Re: Need help with character pictures
Do I need to download it or go into the options for that? Started using Ren'Py yesterday so I'm not familiar with it at all for now ^^'
Well even after erasing manually, I still have the same result -_- I still have the gimp format but now I really don't know what's wrong.
Well even after erasing manually, I still have the same result -_- I still have the gimp format but now I really don't know what's wrong.
Re: Need help with character pictures
No it is a function already in Ren'Py itself. I would suggest figuring out a way to do it using image editor rather than this, but oh well maybe you will get to learn something about Ren'Py with this too?Din Redfire wrote:Do I need to download it or go into the options for that? Started using Ren'Py yesterday so I'm not familiar with it at all for now ^^'
Ok, here is how you do it. Keep this character's image open in a window, and start a new image. Make sure this new image have the exact same dimension (in term of pixel) as the character's image. This new image will serve as the alpha mask for the character image. Our goal is to make the region in this new image corresponding to the character in the character's image to be red, and the remaining part to be black.
In this new image, fill it completely in red (that is the numerical value of the colour is #ff0000). Then go back to the character image, use fuzzy selection tool to select the white background area. Then copy and paste that region to the new image and make sure it fit completely inside. Now in the new image you should have something that looks like a red silhouette of the character with white background. We want the background to be back. Flatten it all into a single layer. Then Fill the white region to make it black. Save it in the project folder.
Now we can use alpha-mask:
Let's say you name this new image to be it "blue_eyes_guy_mask.jpg" and your character's image to be "blue_eyes_guy.jpg". Let's say you want the image in your game to be named "guy smile". Add in this code to the top of your file:
Code: Select all
image guy smile=im.AlphaMask("blue_eyes_guy.jpg","blue_eyes_guy_mask.jpg")
Code: Select all
show guy smile
As I said, it is very complicated. And you have to do it for each image. Last resort only.
Who is online
Users browsing this forum: No registered users