x


3ds max / Maya / Lightwave / etc exporting CgFX

This is a 3rd party software question i'd highly appreciate if you could answer.

How to export CgFX from 3ds Max / Maya / Lightwave / etc, for further conversion into ShaderLab?

more ▼

asked Dec 16 '09 at 12:32 AM

kingIZZZY gravatar image

kingIZZZY
11 1 1 2

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

By default, DirectX shaders, including CGFX files, are saved in \maps\fx\ in the 3ds Max program directory.

more ▼

answered Oct 29 '10 at 05:46 PM

soulzero gravatar image

soulzero
702 3 5 24

(comments are locked)
10|3000 characters needed characters left

You can cut and paste the bulk of the Cg code from the CgFX file to a ShaderLabs file, because ShaderLabs supports Cg, but you still have to rewrite the top-level constructs of how to handle passes, renderstates, fallbacks, and semantics.

more ▼

answered Dec 16 '09 at 07:30 AM

Lance Sun gravatar image

Lance Sun
1k 12 16 41

Lance Sun:

Thanks, but actually what I was asking was about generating the CgFX code to begin with. I'm looking for the "Export CgFX" button in these DCC tools. After texturing and adding lots of special materials and effects to my model, how do I get my hands on the CgFX shader code behind it.

(For clarification, I ended off explaining why I need this, the answer being because - once I figure out how to generate the CgFX code - I'm gonna convert it to ShaderLab, as you explained).

Dec 17 '09 at 06:47 AM kingIZZZY

I don't know about the others, but Max has a comes with a couple of shaders you can use. (StandardFX.fx)

Dec 17 '09 at 11:19 AM Lance Sun
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x406
x91

asked: Dec 16 '09 at 12:32 AM

Seen: 2049 times

Last Updated: Dec 16 '09 at 12:32 AM