Jump to content


Photo

How to create moving treads for CnC3?


  • Please log in to reply
9 replies to this topic

#1 PaZUr

PaZUr
  • Members
  • 6 posts

Posted 10 April 2008 - 08:55 AM

Hello everybody! I have a trouble of creating moving treads for my tank to insert it into CnC3 engine. I downloaded SampleArtPack and figured out that the developers used W3D but not DirectX Shader for treads. And i experience problems like 3dmax crash and so on...

So, would anybody advise me what shader i should use and what options for that material i must set? It would be perfect if you`ll provide some screenshots of 3dsmax`s "materials" window...
By the way i`m using 3dsmax 9 and the latest SDK release (and the patch 1.9 for CnC3)

Thanks for your audience!

Edited by PaZUr, 10 April 2008 - 09:20 AM.


#2 Slye_Fox

Slye_Fox

    ConRed Mod Leader

  • Hosted
  • 1,357 posts
  • Location:London, UK
  • Projects:Sigma Invasion, CnC: Condition Red, Armoured Sky: Ethereal Dawn
  •  The fluffy fox of Revora.

Posted 11 April 2008 - 01:42 AM

Well, it's obvious you've not read the C&C3 Tutorials

#3 PaZUr

PaZUr
  • Members
  • 6 posts

Posted 11 April 2008 - 07:48 AM

I read those tutorials, but is nowhere specified what shader it is necessary to use for animating tank's treads and what options for that shader i must set?

#4 Slye_Fox

Slye_Fox

    ConRed Mod Leader

  • Hosted
  • 1,357 posts
  • Location:London, UK
  • Projects:Sigma Invasion, CnC: Condition Red, Armoured Sky: Ethereal Dawn
  •  The fluffy fox of Revora.

Posted 11 April 2008 - 11:39 PM

Oh look;
A tutorial on treads that was linked to in the turorial section of CnC3.net

#5 Mighty BOB!

Mighty BOB!

    Deranged Weasel

  • Members
  • 419 posts
  • Location:California, USA

Posted 12 April 2008 - 12:35 AM

I already linked to that one on another forum. :/
WOL nick: migtybob

We are living in a post-common sense society.


#6 PaZUr

PaZUr
  • Members
  • 6 posts

Posted 12 April 2008 - 02:17 PM

This tutorial is written not absolutely correctly.
If you do not trust me you can try it itself in it to be convinced, simply try to repeat that that on this picture:
http://www.derelicts...al/chatut06.jpg

Try to choose though some image for a texture... At me 3DSMax immediately crash...

#7 Slye_Fox

Slye_Fox

    ConRed Mod Leader

  • Hosted
  • 1,357 posts
  • Location:London, UK
  • Projects:Sigma Invasion, CnC: Condition Red, Armoured Sky: Ethereal Dawn
  •  The fluffy fox of Revora.

Posted 12 April 2008 - 02:51 PM

Works fine for me.

Have you updated 3ds 7 (if that's what you're useing) to service pack one?
you also need to be useing DirectX graphics setting in 3ds aswell.

#8 Golan

Golan
  • Members
  • 120 posts
  •  Off-Duty

Posted 12 April 2008 - 04:14 PM

I use 3DSM 9 and am unable to use the W3D material as well. It either crashes or freezes.

Posted Image


#9 Gyssar

Gyssar
  • New Members
  • 4 posts

Posted 12 April 2008 - 08:36 PM

You can't use the W3D material in 3DS max 9, It'll keep on crashing no matter what you do (under vista anyway, haven't tested in XP).

Found a workaround for it though.

Here's what you can do:

1. Use the DirectX Shader material instead.

2. Assign the DefaultW3D.fx shader

3. Assign your maps (this bit is the only drawback, I still haven't found a way to assign any other texture types apart from diffuse for this shader, and I ain't too good at writing them).

4. Then scroll down to this bit:
Posted Image

5. Set the TexMapper0 parameter to 1

6. Then click on the colored area next to the UV0 Scl/Move

7. A window will open:
Posted Image

8. Move the Red, Green and Blue sliders to the far right and the alpha to the far left.

9. Here's the confusing bit: texture is limited to U transformations ONLY which are controlled by the blue channel (all other channels will merely stretch the texture along U/V coordinates), so all you have to do is move the Blue channel slider to get the needed animation speed. You will notice that when you change the value for the blue channel the color will actually turn yellow. Don't let this confuse you, the transformation is controlled by the BLUE channel. The brighter the yellow color, the faster the treads will move.

NOTE: the texture transforms at about half the speed in-game as it does in 3ds at default frame/time values.

Edit: Gah, sorry for the unnecessarily large pictures, attached the wrong screens...

Edited by Gyssar, 12 April 2008 - 08:43 PM.


#10 PaZUr

PaZUr
  • Members
  • 6 posts

Posted 13 April 2008 - 12:17 PM

2 Gyssar
Thank you!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users