Hmm. It could be that there’s a bug on OSX with multisample antialiasing.
I believe drwr already fixed this bug some time ago (before 1.6.0 even), according to this thread.
Could some other OSX user perhaps confirm if MSAA is working?
It means the bug where the cartoon outlines are not matching the model and the glow sample only shows the legs was my fault - caused by a tiny typo. I’ve already fixed it on CVS.
ah ok. So it’s fixed on CVS but not the build on the download page right? Not that it matters much either way, just want to keep it all straight in my mind.
So, I tried running this under VM ware, unfortunately it only does multisample of 1, which is (I think) useless for this test.
If anybody could run the cartoon shader with AA on and tell me if they get better results between the two runs (especially on the mac) that would be amazingly cool.
You’re right, there’s a semi-bug there.
The problem is that the FilterManager renders the scene into a buffer texture. This has no multisamples by default. However, my card doesn’t support buffers with multisamples (or at least the buffer creation code returns None), so it simply won’t work in that case.
So, that didn’t fix it, but I’m using the advanced cartoon shading which doesn’t have the filters. But even on the other one the filters thing didn’t fix it.
Sorry, I don’t think I should write when I’m that tired.
I’m using the advanced cartoon shaders, so there is not a self.filters object. I tried it on the basic cartoon shaders test app and it also did not fix it.
I also had a windows user try to run this and he did not see the AA effect. So my guess is that I somehow need to AA the output of the shaders at each step? But when I try to do the following on what I think is the output of the inkShader it doesn’t help.
Sorry this took so long, and it sounds like this is no longer information you need to know, but for reference the following code does show antialiasing on OSX:
#antialiasing instructions from
#https://discourse.panda3d.org/viewtopic.php?t=1559
#also try fsaa 3/4 of the way down
from pandac.PandaModules import loadPrcFileData
loadPrcFileData("", "framebuffer-multisample 1")
import direct.directbase.DirectStart
from pandac.PandaModules import AntialiasAttrib
render.setAntialias(AntialiasAttrib.MMultisample, 1)
#Load the first environment model
environ = loader.loadModel("models/environment")
environ.reparentTo(render)
environ.setScale(0.25,0.25,0.25)
environ.setPos(-8,42,0)
#Run the tutorial
run()