Results 1 to 2 of 2

Thread: cgfx shader parameter lost in exported .dae?

  1. #1
    Tetz777
    Guest

    cgfx shader parameter lost in exported .dae?

    Using crosswalk(Crosswalk 5.1) and Softimage2011.
    crosswalk>export>COLLADA1.4.1(XSI extra data checked)
    I cannot find cgfx parameter in exported .dae.

    Output example.

    (Softimage_Mod_Tool_7.5 is good!)
    Code :
    			</profile_COMMON>
    			<extra type="import">
    				<technique profile="NV_import">
    					<import profile="cgfx" url="file:///C:\Program Files\Autodesk\Softimage 2011\Application\phenolib\cgfx\metal.cgfx"></import>
    				</technique>
    			</extra>
    		</effect>
    	</library_effects>
    	<library_materials>
    		<material id="Material" name="Material">
    			<instance_effect url="#Material_fx">
    				<technique_hint platform="CG" ref="Simple"></technique_hint>
    				<setparam ref="Script">
    					<float>0.800000</float>
    				</setparam>
    				<setparam ref="gLamp0DirPos">
    					<float4>-0.500000 2.000000 1.250000 1.000000
    					</float4>
    				</setparam>
    				<setparam ref="gLamp0Color">
    					<float3>1.000000 1.000000 1.000000
    					</float3>
    				</setparam>
    				<setparam ref="gLamp0Intensity">
    					<float>1.000000</float>
    				</setparam>
    				<setparam ref="gAmbiColor">
    					<float3>0.070000 0.070000 0.070000
    					</float3>
    				</setparam>
    				<setparam ref="gSurfaceColor">
    					<float3>1.000000 1.000000 1.000000
    					</float3>
    				</setparam>
    				<setparam ref="gSpecExpon">
    					<float>12.000000</float>
    				</setparam>
    				<setparam ref="gKd">
    					<float>0.100000</float>
    				</setparam>
    				<setparam ref="gKr">
    					<float>0.200000</float>
    				</setparam>
    				<setparam ref="gColorSampler_surface">
    					<surface type="2D">
    						<init_from>default_color_dds_img</init_from>
    					</surface>
    				</setparam>
    				<setparam ref="gColorSampler">
    					<sampler2D>
    						<source>gColorSampler_surface</source>
    					</sampler2D>
    				</setparam>
    				<setparam ref="gEnvSampler_surface">
    					<surface type="2D">
    						<init_from>default_reflection_dds_img</init_from>
    					</surface>
    				</setparam>
    				<setparam ref="gEnvSampler">
    					<samplerCUBE>
    						<source>gEnvSampler_surface</source>
    					</samplerCUBE>
    				</setparam>
    				<setparam ref="Name">
    					<string>CgFX</string>
    				</setparam>
    				<setparam ref="includepath">
    					<string></string>
    				</setparam>
    				<setparam ref="code2">
    					<string></string>
    				</setparam>
    				<setparam ref="nb_textures">
    					<string></string>
    				</setparam>
    				<setparam ref="refresh_flag">
    					<string></string>
    				</setparam>
    				<setparam ref="vc0">
    					<string>Texture_Projection</string>
    				</setparam>
    				<setparam ref="vc1">
    					<string>Tangents</string>
    				</setparam>
    				<setparam ref="vc2">
    					<string>Binormals</string>
    				</setparam>
    				<setparam ref="nb_vcs">
    					<string></string>
    				</setparam>
    				<setparam ref="showcgfxcode">
    					<bool>FALSE</bool>
    				</setparam>
    			</instance_effect>
    			<extra>
    				<technique profile="XSI">
    					<XSI_MaterialInfo></XSI_MaterialInfo>
    				</technique>
    			</extra>
    		</material>
    	</library_materials>

    (softimage2011 is bad)
    Code :
    			</profile_COMMON>
    		</effect>
    	</library_effects>
    	<library_materials>
    		<material id="Material" name="Material">
    			<instance_effect url="#Material_fx"></instance_effect>
    			<extra>
    				<technique profile="XSI">
    					<XSI_MaterialInfo></XSI_MaterialInfo>
    					<XSI_ShaderMultiPortConnection>
    						<xsi_param sid="parameter">"surface" </xsi_param>
    						<xsi_param sid="portname">"out"</xsi_param>
    					</XSI_ShaderMultiPortConnection>
    					<XSI_ShaderMultiPortConnection>
    						<xsi_param sid="parameter">"shadow" </xsi_param>
    						<xsi_param sid="portname">"out"</xsi_param>
    					</XSI_ShaderMultiPortConnection>
    					<XSI_ShaderMultiPortConnection>
    						<xsi_param sid="parameter">"photon" </xsi_param>
    						<xsi_param sid="portname">"out"</xsi_param>
    					</XSI_ShaderMultiPortConnection>
    					<XSI_ShaderMultiPortConnection>
    						<xsi_param sid="parameter">"realtime" </xsi_param>
    						<xsi_param sid="portname">"out"</xsi_param>
    					</XSI_ShaderMultiPortConnection>
    				</technique>
    			</extra>
    		</material>
    	</library_materials>

    http://softimage.wiki.softimage.com/xsi ... m#Rbn64055

    shading>Cg Profile Effects(yes?)

    softimage2011 New CGFX Parser bug?
    When does this bug be fixed?

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: cgfx shader parameter lost in exported .dae?

    You should report this bug to Autodesk through your support channel.

Posting Permissions

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