Issue with Effect file in MonoGame

Hello everybody,

I am trying to port the XNA 4.0 particle 3d sample over to MonoGame (http://xbox.create.msdn.com/en-US/education/catalog/sample/particle_3d) Now I try to build the ParticleEffect.fx file with the MonoGame Content Processor, but get an error: Additional information: Effects\ParticleEffect.fx(187,28) : Unexpected token ‘,’ found. Expected Identifier

which is exactly this line it it s failing at:

return tex2D(Sampler, input.TextureCoordinate) * input.Color;

Thanks,
Christian

Additional information: Effects\ParticleEffect.fx(187,28) : Unexpected token ‘,’ found. Expected Identifier

The error is you cannot name a sampler Sampler or sampler. You should check out the rest of the effect writing tips in the docs:

http://www.monogame.net/documentation/?page=Custom_Effects

Thanks a ton, Tom. I did not even know that documentation existed there (shame on me). I always look at github. From quick browsing does this also mean the content pipeline is now stable and I can ditch the XNA content pipeline?

It is getting very close. We use it on several game ports with few workarounds. It may be great for you… it may not. You just have to test it and see.

And if you do run into an issue report it to GitHub so we can address it. We can’t fix issues we’re not aware of.

1 Like

What about fbx import? I use multitrack animation. Is this in? Too bad the weekend has already passed. Might try it tomorrow still though. I am excited. Finally ditching VC# 2010

We can import most FBX files just fine. Animation is hit and miss… still some bugs in that part.