layeredimage to keep cloths and expressions consistant over several poses and cam angles
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.
-
felsenstern
- Regular
- Posts: 62
- Joined: Tue Jul 11, 2017 2:13 am
- Contact:
layeredimage to keep cloths and expressions consistant over several poses and cam angles
Hi,
how can I use layeredimage to define a set of expressions and clothings for a body with several poses and camera settings so that cloths, expressions and other details would stay consistant?
so the show command would look like
show sven camB relaxed casual neutral think1
show sven camC relaxed casual neutral think1
show sven camD sitting casual neutral think1
so for sven camB relaxed body
'casual' would load the image 'images/sven/relaxed_casual_camB'
while in the next scene sven camC
the same 'casual' attribute would load a different image 'images/sven/relaxed_casual_camC'
and so on.
how can I use layeredimage to define a set of expressions and clothings for a body with several poses and camera settings so that cloths, expressions and other details would stay consistant?
so the show command would look like
show sven camB relaxed casual neutral think1
show sven camC relaxed casual neutral think1
show sven camD sitting casual neutral think1
so for sven camB relaxed body
'casual' would load the image 'images/sven/relaxed_casual_camB'
while in the next scene sven camC
the same 'casual' attribute would load a different image 'images/sven/relaxed_casual_camC'
and so on.
---
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it
Re: layeredimage to keep cloths and expressions consistant over several poses and cam angles
As attributes are not hierarchical, you cannot use the same set of attributes for a different pose.
That's mean ren'py doesn't use the first attribute to discriminate the second and so on.
It work more like a list.
sven [camB, sitting, casual, neutral, relaxed, neutral, camD] and so on.
As such lists are unordered, Renpy simply check if any compliant picture exist, but an element are not father or children of others.
It's a structural limit and you can't bypass it. That's also written in the LayeredImage docs.
That's mean ren'py doesn't use the first attribute to discriminate the second and so on.
It work more like a list.
sven [camB, sitting, casual, neutral, relaxed, neutral, camD] and so on.
As such lists are unordered, Renpy simply check if any compliant picture exist, but an element are not father or children of others.
It's a structural limit and you can't bypass it. That's also written in the LayeredImage docs.
Last edited by gas on Fri Nov 20, 2020 6:32 pm, edited 1 time in total.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.
10 ? "RENPY"
20 GOTO 10
RUN
10 ? "RENPY"
20 GOTO 10
RUN
-
felsenstern
- Regular
- Posts: 62
- Joined: Tue Jul 11, 2017 2:13 am
- Contact:
Re: layeredimage to keep cloths and expressions consistant over several poses and cam angles
Is there another way to assemble (layer) a character image. How did people layer images before layeredimage function was made?
---
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it
Re: layeredimage to keep cloths and expressions consistant over several poses and cam angles
It was made by Composite and A LOT of code and/or the use of ConditionSwitch for each single layer, that suck out performance like a leech.
That why LayeredImage was introduced.
Is way more easy to define a different image for each pose and add attribute variations by pose, than harming the performance. How many poses do you have? 300?!
That why LayeredImage was introduced.
Is way more easy to define a different image for each pose and add attribute variations by pose, than harming the performance. How many poses do you have? 300?!
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.
10 ? "RENPY"
20 GOTO 10
RUN
10 ? "RENPY"
20 GOTO 10
RUN
-
felsenstern
- Regular
- Posts: 62
- Joined: Tue Jul 11, 2017 2:13 am
- Contact:
Re: layeredimage to keep cloths and expressions consistant over several poses and cam angles
In my original game I used several thousand pictures to have every expression on every pose with every cam setting and every outfit option. I used imagemagick to compose all possible picture combinations and a native (non-renpy) python script to generate image definitions and the show commands with the right picture names after selecting pose, cam setting, outfit and expression in remark lines.
But I found a middle course that is good enough to get into the next round. I really hope the limitations of layeredimage will be lifted one day.
Thanks for the information!!!
But I found a middle course that is good enough to get into the next round. I really hope the limitations of layeredimage will be lifted one day.
Thanks for the information!!!
---
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it
Who is online
Users browsing this forum: No registered users