ray-cast / ray-mmd

🎨 The project is designed to create a physically-based rendering at mikumikudance.
https://twitter.com/Rui_cg
Other
1.71k stars 573 forks source link

Raycast runs fine in MMD but won't correctly render to picture. I get an error message and glitched image. #142

Open PromiseMeStars opened 1 year ago

PromiseMeStars commented 1 year ago

error

I truly don't understand the issue. It runs just fine in MMD but when I try to render the image I get an the error message shown here, sometimes multiple times, and the resulting image has weird glitches. The error message says I'm out of memory but I've got 16GB RAM in this computer & it runs fine in MMD, just can't render out...

Any help would be immensely appreciated!

57331Fury commented 1 year ago

Will it render as an AVI file, or do you get the same error?

PromiseMeStars commented 1 year ago

Both. I get the error, it renders a video with the same glitches, and then gives me the error again upon finishing recording. Like the picture I do get a result but it has those weird glitches.

I tried with a different model using different normalmaps for the Ray materials and it worked fine. I began to wonder if it's just the materials I used on those problem areas that have rendering issues, but I did manage to get this model to work once. Only one time, but it did. So I don't know if it's the specific materials or something else, if that one miracle time was a fluke, or what.

jstzwj commented 1 year ago

The "memory" refers to the dedicated GPU memory, your GPU may not have enough memory to load the texture "normalmap".

PromiseMeStars commented 1 year ago

But it loads the normalmap just fine. As I said, it runs perfectly in MMD. I can see the normalmap loaded onto those parts of the model. No lag, no issues. Works flawlessly. The only issue is when it tries to render a picture or video. Why does it have a problem there when it's already got all the stuff loaded and working fine?