CgFX, HLSL -how to use w. Ofusion? (Mental Mill) no shaderfx

hedphelym

09-11-2008 13:58:52

Hi,

I want to use the shaders i make in Mental Mill,
they export to:
CgFX, HLSL, and GLSL.

http://www.mentalimages.com/products/mental-mill.html

I do read the tutorials for shading programs that comes with Ofusion,
but i cannot seem to find a way to use the ones i export.

Is there no way of assigning the shaders to the objects in max?
and then preview it through the ofusion viewport?

Or do i have to do it through code in runtime?

(And please do not reply saying "Use ShaderFX")

Evak

09-11-2008 23:58:26

According to the main ogre forum threads someone at nvidia is working on a ogre export script/plugin for FX composer 2 that will export mental mill stuff directly to ogre.

And someone else is writing a .FX addon that will let you use fx files.

Don't really know of any easy way to use shaders if your not using shaderFX and ofusion pro. You just have to learn some basic programming, and get some help in working out a procedural method to convert shaders to something ogre understands from whatever shaders your tool makes.

I had some success with doing it by hand, but it would take an hour or so per material so I jumped right on shaderFX when it turned up.

hedphelym

10-11-2008 15:21:47

Issue is now solved,
and i feel a bit stupid.

It's just to use the normal DirectX material in max,
and apply the FX file.

I assumed this did not work, because earlier i used the ogremax exporter, and it did not work in that one.

But it works like a charm in ofusion.

Lioric

10-11-2008 15:42:55

Yes, .FX files are curently supported in oFusion, just use the DirectX material

(CgFX will be supported in next version)

Jackson3113

14-11-2008 01:28:11


And someone else is writing a .FX addon that will let you use fx files.


that should be good, who's doing that?