Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: error on load, no shading in maya 7.0

  1. #1

    error on load, no shading in maya 7.0

    I have Maya 7.0 and installed the ColladaMaya Plugin 0.90, together with the Cg Toolkit 1.5 beta, like the instructions say.

    However, when I load any of the testsuite's files, the console shows the following error message:

    --------------

    file -f -typ "COLLADA importer" -o "C:/Dokumente und Einstellungen/count/Desktop/testsuite/test3.dae";addRecentFile("C:/Dokumente und Einstellungen/count/Desktop/testsuite/test3.dae", "COLLADA importer");
    // Reloaded vertex/fragment program from file: C:/Dokumente und Einstellungen/count/Desktop/testsuite/shaders/BumpReflect.cgfx
    // Error: CG ERROR : The profile is not supported. //
    // Error: //
    // cgfxShaderNode::cgErrorCallBack
    // Error: CG ERROR : The profile is not supported. //
    // Error: //
    // Error: CG ERROR : The profile is not supported. //
    // Error: //
    // cgfxShaderNode::cgErrorCallBack
    // Error: CG ERROR : The profile is not supported. //
    // Error: //

    --------------

    when I switch to smooth or flat shading now, the objects only appear black.

    Any clues?

    Cheers,

    Uwe

  2. #2
    Junior Member
    Join Date
    Dec 2005
    Posts
    2

    Re: error on load, no shading in maya 7.0

    Quote Originally Posted by bobby_newmark

    file -f -typ "COLLADA importer" -o "C:/Dokumente und Einstellungen/count/Desktop/testsuite/test3.dae";addRecentFile("C:/Dokumente und Einstellungen/count/Desktop/testsuite/test3.dae", "COLLADA importer");
    // Reloaded vertex/fragment program from file: C:/Dokumente und Einstellungen/count/Desktop/testsuite/shaders/BumpReflect.cgfx
    // Error: CG ERROR : The profile is not supported. //
    // Error: //
    // cgfxShaderNode::cgErrorCallBack
    // Error: CG ERROR : The profile is not supported. //
    // Error: //
    // Error: CG ERROR : The profile is not supported. //
    // Error: //
    // cgfxShaderNode::cgErrorCallBack
    // Error: CG ERROR : The profile is not supported. //
    // Error: //

    --------------

    when I switch to smooth or flat shading now, the objects only appear black.
    It is a typical error about using ColladaFX shader when the CgFXShader plug-in is loaded. It is a problem that ColladaFX and CgFX shaders cannot work side-by-side. So please make sure the CgFX mll is not loaded before I can find a fix.

    About black rendering, I think that is a bug when shader failed to connect effect parameters to the program in some CgFX files. Trying to debug it now.

    I have tested the default BumpReflect.cgfx in Maya presets without error. Could you please paste the .cgfx file here if you are not using the default file?

    zhang

  3. #3
    I didn't modify any files, simply loaded test3.dae, which loads the BumpReflect.cgfx file. I'm relatively new to all this, maybe I made a mistake. After disabling the cgfx plugin the error messages disappeared, as you said, however, the black shading problem still persists.

    Here is what I did (which isn't much really):

    I installed maya 7.0 from scratch, and copied the plug-in (v0.90) and it's scripts into their directories. The plugin seems to load fine in maya.

    Then I loaded the samples, that's about it. Also didn't change any settings in maya that I'm aware of. I'm using the newest nvidia drivers now (84.21); my graphics board is a gforce 6600GT (which supports SM3.0, so there shouldn't be a problem from there either).

    Any clues? If you need more info (screenshots etc.) I'll be happy help!

  4. #4
    ... or can it be that the files in the testsuite/ directory in the 0.90 plugin distribution are out of date and don't work with 0.90?

    Cheers,

    Uwe

  5. #5
    Junior Member
    Join Date
    Apr 2006
    Posts
    2
    I have tested the testsuite and i encounter no problem. Shaders are render in real time.

    I have follow the install instructions has you discribe it, so can't see a simple issue.

    Good luck to find why it doesn't work.

  6. #6
    Senior Member
    Join Date
    Jul 2004
    Location
    Santa Clara
    Posts
    356

    Re: error on load, no shading in maya 7.0

    Quote Originally Posted by zhang
    It is a typical error about using ColladaFX shader when the CgFXShader plug-in is loaded. It is a problem that ColladaFX and CgFX shaders cannot work side-by-side. So please make sure the CgFX mll is not loaded before I can find a fix.
    Did you test for this issue?
    You are not loading cgFX.mll are you ?

    Also, we had some problem in the past of Maya installing an older version of cg in the path.

    What you have to do is to see if by any chance Maya has installed its own copy of cg.dll, and is using this copy, instead of the cg 1.5 beta installation (that you need to get from nVidia and install) You can check the 'PATH' environement variable and see if the first cg.dll that will be loaded by Maya is the right one..

  7. #7
    alright, first of all sorry for not checking back earlier, but I haven't been around for the last week or so.

    However, I checked for the cg.dll issue, and yes, Maya kept loading the wrong dll. I fixed that (see below, but Maya still doesn't display collada files properly:

    Now it's loading cg.dll v1.50,0604,036 (version that prcview - from www.prcview.com - spills out), which is the one I took from the beta SDK. I simply overwrote cg.dll, cgGL.dll and cgc.exe that I found in Maya's bin directory with the version from the beta SDK.

    I also made sure that cgfxShader.mll is not loaded.

    I also found that the 'hardware texturing' display option lets stuff appear green rather than black, but that doesn't help either...

    Any other clues? I'm a coder, not a maya artist, could I have overlooked any display options (I switched the display option to 'smooth shade all', that should do the trick, shouldn't it?)

    Cheers,

    Uwe

  8. #8
    Junior Member
    Join Date
    Dec 2005
    Posts
    2
    Quote Originally Posted by bobby_newmark
    alright, first of all sorry for not checking back earlier, but I haven't been around for the last week or so.

    However, I checked for the cg.dll issue, and yes, Maya kept loading the wrong dll. I fixed that (see below, but Maya still doesn't display collada files properly:

    Now it's loading cg.dll v1.50,0604,036 (version that prcview - from www.prcview.com - spills out), which is the one I took from the beta SDK. I simply overwrote cg.dll, cgGL.dll and cgc.exe that I found in Maya's bin directory with the version from the beta SDK.

    I also made sure that cgfxShader.mll is not loaded.

    I also found that the 'hardware texturing' display option lets stuff appear green rather than black, but that doesn't help either...

    Any other clues? I'm a coder, not a maya artist, could I have overlooked any display options (I switched the display option to 'smooth shade all', that should do the trick, shouldn't it?)

    Cheers,

    Uwe
    Strang. I try to re-produce the problem on my side but get no luck.

    To display textures, select "Smooth Shade All" and "Hardware Texturing". By default, press '6' is OK.

    I think "stuff appear green" means the Cg/CgFX source failed to load and compile, then only default vertex color is returned. Any error log or command feedback in Script Editor this time?

    zhang

  9. #9
    Senior Member
    Join Date
    Jul 2004
    Location
    Santa Clara
    Posts
    356
    The test files included in the ColladaMaya package are wrong.
    Feeling Software will fix those files in the next release of the plugin.
    Please test with the files included in the COLLADA-DOM distribution.

  10. #10
    Well, I'm getting concerned now:

    I installed the new 2.00 ColladaMaya on my box today. I tried the new test cases included in the distribution: same trouble as before.

    Then I downloaded the collada DOM distribution from http://prdownloads.sourceforge.net/coll ... patch3.zip

    and loaded all the samples from samples/data. Again, the same picture, but I noticed that only models that use colladaFX have loading problems, everything else works fine (however, collada without FX is only half as sexy..)

    Oh, and I'm getting no error messages on load or display. And neither the viewport nor the material display seem to render the material correctly (all green or black)

    Any further clues? Is there anything else I can do/test to provide you guys with further infos?

    Cheers,

    Uwe

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •