Search found 11 matches

by randallarrow
Sat Jan 26, 2019 7:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Composites and positional anchors
Replies: 1
Views: 1303

Re: Composites and positional anchors

I've had similar issues with rendering Composite objects. The transforms don't seem to do what I would expect them to do, and it's very hard to make things line up properly. I feel like I'm misunderstanding just what "anchor" means for a transform. Sorry I can't be more helpful though.
by randallarrow
Fri Jan 25, 2019 2:33 pm
Forum: Ren'Py Questions and Announcements
Topic: DynamicDisplayable updates too frequently, draws way too much CPU
Replies: 10
Views: 915

Re: DynamicDisplayable updates too frequently, draws way too much CPU

I can confirm that showing the displayable, taking a screenshot, and then cropping and adding transparency to that screenshot, allows me to generate usable PNG images, and furthermore that DynamicDisplayable doesn't draw excess CPU or hang the game when it uses only such images. This is at least a p...
by randallarrow
Thu Jan 24, 2019 2:49 am
Forum: Ren'Py Questions and Announcements
Topic: DynamicDisplayable updates too frequently, draws way too much CPU
Replies: 10
Views: 915

Re: DynamicDisplayable updates too frequently, draws way too much CPU

Is there a way to save a displayable as a PNG image? I know PIL can do that, but I'm not sure about Renpy's image handling system (which conflicts with PIL in many ways). So far the best I can think of is to show the displayable on screen and then take a screenshot.
by randallarrow
Wed Jan 23, 2019 10:46 pm
Forum: Ren'Py Questions and Announcements
Topic: DynamicDisplayable updates too frequently, draws way too much CPU
Replies: 10
Views: 915

Re: DynamicDisplayable updates too frequently, draws way too much CPU

Correction: The problem is NOT fixed. Reduced, but not fixed. I don't think DynamicDisplayable is the culprit after all. I think it's AlphaMask. Even when I generate images as static Image objects in an init: statement, sometimes displaying those images results in weird flickering artifacts and then...
by randallarrow
Wed Jan 23, 2019 9:25 pm
Forum: Ren'Py Questions and Announcements
Topic: DynamicDisplayable updates too frequently, draws way too much CPU
Replies: 10
Views: 915

Re: DynamicDisplayable updates too frequently, draws way too much CPU

Changing the update time of DynamicDisplayable largely fixed the problem. I knew there should be a simple way to do this; I feel silly now for not seeing it.
by randallarrow
Tue Jan 22, 2019 3:41 pm
Forum: Ren'Py Questions and Announcements
Topic: DynamicDisplayable updates too frequently, draws way too much CPU
Replies: 10
Views: 915

Re: DynamicDisplayable updates too frequently, draws way too much CPU

I think is what I was looking for: "Can't be sure without looking at your code, but you can tell the DynamicDisplayable to wait a certain amount of time before redrawing. You don't need to call renpy.time.sleep" I will try that first. In case that fails, can you explain this method a bit m...
by randallarrow
Mon Jan 21, 2019 11:53 pm
Forum: Ren'Py Questions and Announcements
Topic: DynamicDisplayable updates too frequently, draws way too much CPU
Replies: 10
Views: 915

Re: DynamicDisplayable updates too frequently, draws way too much CPU

It seems to really depend upon the AlphaMask in some way I can't quite understand. When it's just static PNG images that are being used in the Composite, everything behaves as it should. The problem with that is that there are so many possible combinations, even with each body part separated out int...
by randallarrow
Mon Jan 21, 2019 11:37 pm
Forum: Ren'Py Questions and Announcements
Topic: DynamicDisplayable updates too frequently, draws way too much CPU
Replies: 10
Views: 915

DynamicDisplayable updates too frequently, draws way too much CPU

So, what I'm trying to do may be a bit complicated to explain, though in principle it doesn't seem that weird to want to do. I want to have multiple characters, each with customizable attributes, who can change their emotions over the course of the game. So here's what I'm doing so far: Each charact...
by randallarrow
Sun Dec 02, 2018 7:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Why does Flatten cut off edges?
Replies: 1
Views: 268

Why does Flatten cut off edges?

I have some characters who are made up of overlapping composited images. I want to be able to display them with alpha transparency in some cases. This seems straightforward enough: Use Flatten() on the composite to combine it into a single texture. This is exactly what Flatten() is supposed to be fo...
by randallarrow
Fri Nov 23, 2018 2:36 am
Forum: Ren'Py Questions and Announcements
Topic: Align different parts of a composited image based on the value of a variable
Replies: 2
Views: 255

Align different parts of a composited image based on the value of a variable

This seems like such a simple thing, but I've not been able to get it to work. I have several different parts of a LiveComposite that I want to line up (and potentially, move around) based on the results of variables. These images are of different sizes and there are quite a few of them. For example...