Jump to content


Shader issues


12 replies to this topic

#1 Madin

    Amateur

  • Member
  • 138 posts

Posted 16 March 2010 - 18:10

When I compile a unit that has used the ObjectGDI shader, it appears totally black in-game.
All other shaders are fine. The ObjectGDI shader displays correctly within Max.
Any ideas has to what could be wrong?

#2 Sgt. Rho

    Kerbal Rocket Scientist

  • Project Leader
  • 6870 posts
  • Projects: Scaring Jebediah.

Posted 16 March 2010 - 20:25

did you create a refference XML for all the textures?

#3 Madin

    Amateur

  • Member
  • 138 posts

Posted 17 March 2010 - 00:22

View PostSargeant Rho, on 16 Mar 2010, 20:25, said:

did you create a reference XML for all the textures?

Of course!
It is only the 'ObjectGDI' shader that has this problem.

#4 Golan

    <Charcoal tiles available>

  • Member Test
  • 3300 posts

Posted 18 March 2010 - 08:02

Say, did you actually modify the shader?
Now go out and procreate. IN THE NAME OF DOOM!

#5 Madin

    Amateur

  • Member
  • 138 posts

Posted 18 March 2010 - 16:25

View PostGolan, on 18 Mar 2010, 8:02, said:

Say, did you actually modify the shader?

I do not have the skill necessary to modify the shader.
What I find interesting is that I have reinstalled both the Max files and the C&C3 mod sdk, but I still have the same issue.
Obviously I have files that remain regardless of my Mod SDK reinstall, so I assume that it is 1 of those files that have an issue.
I'm not certain how the buildmod.bat compiles the shader information, if I have to replace the 'ObjectGDI.fxo' shader in #:\Program Files\Electronic Arts\Command & Conquer 3\MOD SDK\BuiltMods\mods\Shaders, what will I replace it with? I assume that this file gets reinstalled when I reinstalled the C&C3 mod SDK (but of course it can't, this is a folder that relies on mods that have been built with the build.mod.bat).

I have no idea how to fix this problem, I'll need the 'objectGDI' shader very soon!

#6 JJ

    Half dead member

  • Project Leader
  • 3294 posts
  • Projects: Real life things, personal RA3 mod

Posted 19 March 2010 - 02:49

Wait, you compiled another ObjectGDI.fx into your mod? Since that shader is already in-game, you do not need to compile it again.

#7 Madin

    Amateur

  • Member
  • 138 posts

Posted 20 March 2010 - 22:44

View PostJJ, on 19 Mar 2010, 2:49, said:

Wait, you compiled another ObjectGDI.fx into your mod? Since that shader is already in-game, you do not need to compile it again.

No I have not. Poor explanation on my part.
ObjectGDI does not work, any ideas why?

#8 Slye_Fox

    FOXTec Leader

  • Project Leader
  • 2351 posts
  • Projects: CnC: Condition Red, Sigma Invasion, Armoured Sky: Ethereal Dawn

Posted 20 March 2010 - 23:37

If you're not making a GDI unit, you don;t want to use that shader, it adds a gold hue to your model ingame.

There's a set of shaders called ObjectGeneric some where for C&C3.
Posted Image

#9 Madin

    Amateur

  • Member
  • 138 posts

Posted 21 March 2010 - 17:14

View PostSlye_Fox, on 20 Mar 2010, 23:37, said:

If you're not making a GDI unit, you don;t want to use that shader, it adds a gold hue to your model ingame.

There's a set of shaders called ObjectGeneric some where for C&C3.

I have the ObjectGeneric shaders and they work fine.
I was making a GDI unit which is why I wanted to use the ObjectGDI shader.

#10 Madin

    Amateur

  • Member
  • 138 posts

Posted 02 April 2010 - 21:14

So, I backed up my 'MOD SDK' folder, uninstalled the mod sdk, reinstalled it and then copied over the backed up 'ART' & 'Mods' folders into the new installation.
No joy.

So I assume that it must have something to do with the way Max is compiling the W3X files, so I overwrite the '3DSMax9_Plugins' , still no joy.

I guess I won't ever be using the Object GDI shader again.

#11 JJ

    Half dead member

  • Project Leader
  • 3294 posts
  • Projects: Real life things, personal RA3 mod

Posted 03 April 2010 - 05:18

Hmm, it displays fine in Max, you didn't build it into your mod, every other EA units with that shader is fine...

Might it be you did something wrong in the specular or normal maps?

#12 Golan

    <Charcoal tiles available>

  • Member Test
  • 3300 posts

Posted 03 April 2010 - 08:26

Max can't really mess up the shaders, if it export the settings incorrectly the game would simply crash.


BTW did you manually delete all remaining files after uninstalling the SDK? Manually added files like custom shaders won't get uninstalled.
Now go out and procreate. IN THE NAME OF DOOM!

#13 Madin

    Amateur

  • Member
  • 138 posts

Posted 03 April 2010 - 09:29

View PostGolan, on 3 Apr 2010, 9:26, said:

Max can't really mess up the shaders, if it export the settings incorrectly the game would simply crash.


BTW did you manually delete all remaining files after uninstalling the SDK? Manually added files like custom shaders won't get uninstalled.

Yes Golan, I deleted the the remaining 'MOD SDK' folder after the uninstall.

JJ,
It is very unlikely that I am making mistakes only for the 'OBJECTGDI' shader no? The same files used in the 'ObjectNod' shader will always work fine, no changes necessary.
A final test that I've just thought of is to export one of the GDI 'sample art' vehicles...



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users