Page 1 of 1
Instanced Effect File
Posted: Tue Jun 11, 2013 10:46 pm
by Jumblemuddle
Where can I find the original InstancedEffect effect? I am trying to us monogame, but in order to use it I have to compile the effect using mgfx. There is only the xnb file included as far as I know.
Re: Instanced Effect File
Posted: Tue Jun 11, 2013 11:04 pm
by Norbo
You can grab the original InstancedEffect.fx code from the BEPUphysicsDemosContent project in the main
source download.
Re: Instanced Effect File
Posted: Wed Jun 12, 2013 12:47 am
by Jumblemuddle
Ok, thanks I thought I had looked through all the source project. Thanks

Re: Instanced Effect File
Posted: Wed Jun 12, 2013 3:10 am
by Jumblemuddle
I was able to compile the effect. Everything seemed to work, but when I try to load the "textureIndicesParameter" It returns null. I'm pretty sure it's an error specifically with that parameter, because all the others seem to load fine. What is it?
Re: Instanced Effect File
Posted: Wed Jun 12, 2013 4:00 am
by Norbo
Unknown!

Re: Instanced Effect File
Posted: Wed Jun 12, 2013 3:41 pm
by Jumblemuddle
Ok, thanks. Should I try and write my own model drawing system. If so can you point me to somewhere where I can find out how to interact with the engine? Thanks for your help!
Re: Instanced Effect File
Posted: Wed Jun 12, 2013 5:49 pm
by Norbo
Should I try and write my own model drawing system.
That's up to you. The BEPUphysicsDrawer is a decent debug visualizer, but it is miles away from being a proper graphics engine. If you want that sort of engine, then you'll definitely need your own. If you just want to draw the physical representation of objects for debugging (perhaps to see if things match up with your real renderer), then something like the BEPUphysicsDrawer would be a good idea.
If so can you point me to somewhere where I can find out how to interact with the engine? Thanks for your help!
The BEPUphysicsDemos are the largest single resource. The BEPUphysicsDrawer source itself would provide a few pointers. You could also check out some of the more constrained examples in the
documentation, like the
Getting Started demo.
Re: Instanced Effect File
Posted: Wed Jun 12, 2013 6:07 pm
by Jumblemuddle
Thanks! I'll look into those and try to get a rendering system together.