Page 1 of 1

Graphical Bugs with 3d mask, help pls !

Posted: Sat Jul 27, 2013 4:56 am
by Lychee
The Good One:



The Bug:



The File:

https://www.dropbox.com/s/vs485jdc9g8i9tb/Headturn.zip

Hi all.

I think I have an interesting technic for a head rotation (x and y).
To do this I used a 3d object as a base and animated vectorial elements turning at the same time as the object.

The problem is that I use the 3d object as a mask to hide elements, and I think that's what generates me graphical bugs.
Is that AS9 is really able to use a 3d object as a mask or then I request too?

This problem is random, because sometime it works perfectly but most of the time its bug.
Please try my file and tell me if it works well for you when you make a render.
If its bug also at your home, I would be happy if you would have an alternative solution to work around my problem.

Thank you in advance

Kind regards

Re: Graphical Bugs with 3d mask, help pls !

Posted: Sat Jul 27, 2013 6:27 am
by heyvern
I tried rendering the file several times but could not reproduce the bug you showed. It is set up to render at a very high resolution, which shouldn't be a problem but might tax a low end processor. I am rendering with a quad macbook pro, so the render is pretty fast with all my processors cranking away. The bug appears to be very odd.

I think I'm on to something. It appears that the combination of sort by layer depth and masking of the mouth is behaving strangely. The frames in the bug video are only showing issues with the MOUTH layer. The masking stops working on those bad frames JUST for the mouth layer. The 3D mask layer is always working. I have no idea what is causing this and I just can't get a render that shows it. Every time I render the animation it comes out perfectly.

Before putting too much effort into fixing a problem, make sure you have the latest update to Anime Studio 9 which is 9.2.

Since I can only guess at the problem I can shoot out some ideas to test out.
I honestly don't think most of these ideas would effect the rendering in the bug I see but could be worth checking out.

You could try and use a different masking. Instead of show all and then clearing with a mask, try a hide all and then add to mask. Just a wild wild guess and long shot to try. You could also try something different with the mouth layer that doesn't use masking but I can't say for sure how to pull that off.

Another possibility is the script. This is another crazy wild guess. I looked at the script and it really really shouldn't have any effect on rendering, however I have seen some scripts that can possibly have an effect on the processing of each frame which can effect rendering.

-------

I don't actually believe that the problem is related to the 3D object or using it as a mask. However it may have to do with how Anime Studio is processing everything. You could try reducing the resolution of the output to see if the render size is effecting the processing required to render which causes the bug.

Another idea to reduce file overhead, you could use 1 3D object. I don't know a lot about Anime Studio and 3D objects. I don't use them at all. My guess is that having multiple 3D objects might put a strain on the processing and might be effecting the render. I was able to use the Head Form.obj for both the head AND the stroke. For the stroke I changed the 3D layer settings, unchecked the materials checkbox, checked "creases" and set it to 0 (this gives it the black stroke around the edge) to increase the stroke width I did some simple scaling and shifting of the 3D layer to match what the other Head Stroke.obj layer was doing. The result was pretty close and only required one 3D object instead of 2.

Like I said, don't know what's going on and I can't replicate the bug. I hope you can find a solution, this is a cool trick. I still think the whole thing is caused by some wierdness with order by depth and the mouth masking within that bone layer.

Re: Graphical Bugs with 3d mask, help pls !

Posted: Wed Jul 31, 2013 10:25 pm
by Lychee
Thanks Heyvern for the reply.

I have the last version of AS, the 9.2 and my computer is enough powerful i think (Core i7 2600K).
The file was tested by a friend of mine, he has a Mac like you and his rendering was clean, except when he test it on Windows via Bootcamp.
Me i am on PC, and we can now say that the issue come from windows version of Anime Studio.
But finnaly i think i know where is the problem, because when i uncheck extra-smooth images in the render option, the rendering worked very well.

I tested your solution to create the stroke around the head, i like the idea but not the final look, because It reacted as if I had activated the animated noise option. Maybe I did it wrong ?