Page 6 of 6

Re: CgFx support in OGRE

Posted: Mon Feb 22, 2010 4:02 pm
by xte
Assaf Raman wrote:What type of shaders do you need there? Bump map? Light map? What?
I'm far from being an expert in that area, and my task is to get as many features as possible.

We probably will not need very advanced stuff, but certainly bump maps, light maps, normal maps. I don't know that much about shader writing, so if I can avoid having to learn the ins and outs of cgfx and ogre shaders it would be quite nice.

I was a bit surprised at first to see that ogre couldn't load those files, and believe that this kind of tool would be very useful. (as well as a good material editor!).

Isn't your plugin designed for that kind of stuff? I'm feeling a bit powerless in front of that linker error at the moment. Sure it is simple, but I can't find a way to solve it.

Thanks

Re: CgFx support in OGRE

Posted: Tue Feb 23, 2010 9:18 am
by Assaf Raman
I think you are better off using the RTSS then CgFx if your needs are only bump map and such.
The team doesn't plan full CgFx support or any work on this plug-in in the near future, and I don't know about anyone else.
When I started the plugin I had smiler ideas to yours regarding CgFx - but in the end when you need only simple\common shaders - you better use a complete shader system then a "text shader" that doesn't know to adapt to different light\fog\other scene parameters.

Re: CgFx support in OGRE

Posted: Tue Feb 23, 2010 9:31 am
by xte
I managed to load a cgfx file with your code, but didn't realize your loader was not meant to be used directly.

I'll still test a bit what can be achieved with this and learn about the RTSS stuff. Not sure if we'll need only those maps, the required features are not clear to say the least, but the main goal is to preview in max what will be rendered in ogre.

Thanks!

Re: CgFx support in OGRE

Posted: Tue Feb 23, 2010 9:46 am
by Assaf Raman
I understand, I wish I had time to write up an better max exporter with a preview.

Re: CgFx support in OGRE

Posted: Wed Feb 24, 2010 12:13 am
by Pyritie
Damn, this is exactly what I wanted .__.

/me just found the PERFECT shader he needs but it's in cgfx

Re: CgFx support in OGRE

Posted: Wed Feb 24, 2010 1:24 am
by Assaf Raman
What does your shader do?

Re: CgFx support in OGRE

Posted: Wed Feb 24, 2010 2:33 am
by Pyritie

Re: CgFx support in OGRE

Posted: Wed Feb 24, 2010 2:52 am
by Assaf Raman
Interesting.

Re: CgFx support in OGRE

Posted: Wed Feb 24, 2010 3:06 am
by Pyritie
I can probably convert it over by hand though... it doesn't look too complicated

Re: CgFx support in OGRE

Posted: Wed Feb 24, 2010 5:26 am
by Assaf Raman
I am sure you can. :D

Re: CgFx support in OGRE

Posted: Mon Mar 08, 2010 8:05 pm
by Pyritie
Okay I converted it! :D

Where can I post it in case others want to use it?

Re: CgFx support in OGRE

Posted: Mon Mar 08, 2010 8:17 pm
by jacmoe

Re: CgFx support in OGRE

Posted: Mon Mar 08, 2010 8:42 pm
by Pyritie

Re: CgFx support in OGRE

Posted: Mon Mar 08, 2010 8:48 pm
by Assaf Raman
Nice work, thanks for the wiki page.
Image

Re: CgFx support in OGRE

Posted: Mon Mar 16, 2015 2:28 pm
by pkovacs86
Hi ALL,

I saw tons of threads related to cgFX or FX or ShaderFX MAX to OGRE.
Please help me because I want to use my shaders which are created in 3DSMAX ShaderFX...
Currently i would like to use my shaders in Ogre 1.8.1......

Could anyone give me some help about how to do that?
Actually i found that it is only possible by manually create *.material *.program *.cg,hlsl,glsl, etc
Is it true?Or are there any tool to save time?

Any help would be appreciated...

Regards,
Peter

Re: CgFx support in OGRE

Posted: Mon Mar 16, 2015 7:23 pm
by NotCamelCase
pkovacs86 wrote:Hi ALL,

I saw tons of threads related to cgFX or FX or ShaderFX MAX to OGRE.
Please help me because I want to use my shaders which are created in 3DSMAX ShaderFX...
Currently i would like to use my shaders in Ogre 1.8.1......

Could anyone give me some help about how to do that?
Actually i found that it is only possible by manually create *.material *.program *.cg,hlsl,glsl, etc
Is it true?Or are there any tool to save time?

Any help would be appreciated...

Regards,
Peter
RF
I don't know about Cgfx or ShaderFx but can just recommend, if not already, to check 3DSMAX exporters (previous versions as well), they let you create Materials/programs from within the modeller, maybe you'll figure out a way to convert them.