Instanced Effect File

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Jumblemuddle

Instanced Effect File

Post 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.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Instanced Effect File

Post by Norbo »

You can grab the original InstancedEffect.fx code from the BEPUphysicsDemosContent project in the main source download.
Jumblemuddle

Re: Instanced Effect File

Post by Jumblemuddle »

Ok, thanks I thought I had looked through all the source project. Thanks :)
Jumblemuddle

Re: Instanced Effect File

Post 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?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Instanced Effect File

Post by Norbo »

Unknown! ;)
Jumblemuddle

Re: Instanced Effect File

Post 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!
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Instanced Effect File

Post 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.
Jumblemuddle

Re: Instanced Effect File

Post by Jumblemuddle »

Thanks! I'll look into those and try to get a rendering system together.
Post Reply