(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Tutorials > 3D Modeling Tutorials

3D Modeling Tutorials Tutorials regarding the creation, animating and editing of 3D models.
Read the Rules before posting.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12-09-2006, 12:22 PM   #1 (permalink)
 
olofmoleman's Avatar

It's a conspiracy...
 
Join Date: Dec 2004
Posts: 1,988

olofmoleman will become famous soon enough (117)olofmoleman will become famous soon enough (117)olofmoleman will become famous soon enough (117)

Respected User: This user has been given the respected user award. 

The Crystal Effect

In this tutorial I will tell you how to make the crystal effect used in Mc!'s Crystal Golem and my Crystal Dragon

Tools Needed
Warcraft 3 TFT (ROC also possible but I use a TFT ingame skin for this tutorial)
Notepad or Wordpad
War3Fileconverter
Warcraft3 Viewer or/and Magos' model editor
Vertex modifier (or another modeling program)

Knowledge Needed
basic model exporting knowledge
basic mdl editing knowledge
basic modeling knowledge

Getting started
First you need to find a model you want to make in to a crystal one
in this tutorial we'll use the frog model, because it has only one geoset and is a very simple model, but the technique works the same with every other model, it's just more work with more complex models

Note: remember to save your files regularly
crystutfrog01.jpg
First, extract the frog model from the Mpq file.
Then you use the file converter to convert the .mdx frog model in to an .mdl file.

Mdl Editing
Now, open the .mdl file, the first thing we do, is change the path of the skin so it uses the crystal texture.
This is what it looks like
Code:
Textures 1 {
 Bitmap {
  Image "units\Critters\Frog\FrogSkin.blp",
 }
}
Change it to
Code:
Textures 1 {
 Bitmap {
  Image "Textures\CrystalOpaque.blp",
 }
}
Now for the model to really look like crystal the textures, materials and geosets have to be copied and make them work propperly, since this model only has one texture, one material and one geoset, thats not going to be that difficult, with more textures, materials and geosets it's just the same, only more copieng work to do.

Copying the textures
Copy this and put it right below it
Code:
 Bitmap {
  Image "Textures\CrystalOpaque.blp",
 }
Then the texture part should look like this:
Code:
Textures 1 {
 Bitmap {
  Image "Textures\CrystalOpaque.blp",
 }
 Bitmap {
  Image "Textures\CrystalOpaque.blp",
 }
}
Copying the Materials
it's almost the same with the materials
copy this:
Code:
 Material {
  Layer {
   FilterMode None,
   static TextureID 0,
  }
 }
and put it below it like this:
Code:
Materials 1 {
 Material {
  Layer {
   FilterMode None,
   static TextureID 0,
  }
 }
 Material {
  Layer {
   FilterMode None,
   static TextureID 0,
  }
 }
}
once you've copied it, you need to change a few things in the code, change it to:
Code:
Materials 1 {
 Material {
  Layer {
   FilterMode None,
   static TextureID 0,
  }
 }
 Material {
  Layer {
   FilterMode Additive,
   static TextureID 1,
  }
 }
}
as you can see, I only changed the "FilterMode" and the "TextureID" on one material, I left the first material unchanged.

Copying the Geosets
By copying the geosets and changing what kind of material ID it should use you can create the overlaying transparent look that makes it look like crystal.
Since the geoset code is really long I'll only copy a small part in to this tutorial
the geoset begins with this:
Code:
Geoset {
 Vertices 157 {
  { -12.3964, 1.52395, 0.31411 },
  { -0.52003, 2.88477, 0.33941 },
  { -5.1976, 4.42178, 3.53995 },
  { -13.4577, 4.11941, 0.31442 },
  { -8.1316, 10.2445, 0.33869 },
  { -3.29927, -0.21647, 3.66749 },
  { -5.1976, 4.42178, 3.53995 },
  { -0.57432, 7.25025, 10.4476 },
  { 6.04609, 6.50425, 11.3752 },
and it ends with this:
Code:
  Matrices { 10, 11 },
  Matrices { 11 },
  Matrices { 12, 13 },
  Matrices { 12, 13, 14 },
  Matrices { 13, 14 },
  Matrices { 14 },
 }
 MinimumExtent { -28.2479, -14.3093, -9.09061 },
 MaximumExtent { 19.7491, 27.7945, 46.2399 },
 BoundsRadius 28.6633,
 Anim {
  MinimumExtent { -28.2479, -14.3093, -3.77587 },
  MaximumExtent { 19.7491, 15.0309, 46.2399 },
  BoundsRadius 26.3345,
 }
 Anim {
  MinimumExtent { -17.6841, -10.6745, -0.0313365 },
  MaximumExtent { 11.7315, 10.2365, 20.4019 },
  BoundsRadius 18.3231,
 }
 Anim {
  MinimumExtent { -19.204, -10.68, -9.09061 },
  MaximumExtent { 12.7842, 27.7945, 32.1506 },
  BoundsRadius 24.6313,
 }
 MaterialID 0,
 SelectionGroup 0,
}
It's a lot of numbers and stuff, but it's all needed, make sure you copy the whole geoset, then paste it directly below it so the first part of the second geoset and last part of the first geoset look like this:
Code:
 }
 Anim {
  MinimumExtent { -17.6841, -10.6745, -0.0313365 },
  MaximumExtent { 11.7315, 10.2365, 20.4019 },
  BoundsRadius 18.3231,
 }
 Anim {
  MinimumExtent { -19.204, -10.68, -9.09061 },
  MaximumExtent { 12.7842, 27.7945, 32.1506 },
  BoundsRadius 24.6313,
 }
 MaterialID 0,
 SelectionGroup 0,
}
Geoset {
 Vertices 157 {
  { -12.3964, 1.52395, 0.31411 },
  { -0.52003, 2.88477, 0.33941 },
  { -5.1976, 4.42178, 3.53995 },
  { -13.4577, 4.11941, 0.31442 },
  { -8.1316, 10.2445, 0.33869 },
  { -3.29927, -0.21647, 3.66749 },
  { -5.1976, 4.42178, 3.53995 },
  { -0.57432, 7.25025, 10.4476 },
  { 6.04609, 6
Now you go to the very bottom of the second geoset and change the "MaterialID" from 0 to 1. Like this:
Code:
 }
 MaterialID 1,
 SelectionGroup 0,
}
Now the mdl editing part is done, so if you convert the .mdl file back to .mdx, this is what it should look like:
crystutfrog03.jpg
(this is a screenie take with magos model editor, in the wc3 viewer it looks different)

Model editing in vertex modifier
One of the geosets has to be resized to get that overlapping transparent look.
Since this is a really simple model, this part is about the easiest, but with a complex model like the Crystal Dragon it's much harder.

Open the vertex modifer, and open the .mdl frog model. You'll get a popup window that asks you wich geoset you want to open, because only the second geoset has been modified (the materialID) we are going to open that one
crystutfrog04.jpg
there are two ways to make that crystal effect, you simply make one geoset bigger then the other (like Mc! did with his Golem), or you could make it bigger piece by piece (like I did with my Dragon), this takes much more time, but the result can be more detailed, and less messy, but the frog model it a really simple one, so it won't really matter if we just resize one geoset, once you have resized it a bit, save it and convert it back to .mdx
it should now look like this:
crystutfrog05.jpg
If it does, then you're finished!

Finishing up
Some times you have to tweak the model a little bit to make it look just right
there are also a few things you can do to change the look of the crystal effect a bit
You can brighten the transparent part by making it twosided
this is how you do that in the mdl file
Change this:
Code:
Materials 1 {
 Material {
  Layer {
   FilterMode None,
   static TextureID 0,
  }
 }
 Material {
  Layer {
   FilterMode Additive,
   static TextureID 1,
  }
 }
}
To this:
Code:
Materials 1 {
 Material {
  Layer {
   FilterMode None,
   static TextureID 0,
  }
 }
 Material {
  Layer {
   FilterMode Additive,
   TwoSided,
   static TextureID 1,
  }
 }
}
In the code I added "TwoSided,", that makes it twosided (duh), but the "T" and the "S" should be spelled with capitals, if you don't do this, it will not work. when you saved the .mdl file and converted it to .mdx you can see the differance if you compare them

Normal
Click image for larger version

Name:	CrysTutFrog05.jpg
Views:	1428
Size:	2.7 KB
ID:	1151

Twosided
crystutfrog06.jpg
the differance isn't that noticable, but with models where the layers overlap each other more you can see a great differance, my Crystal Dragon uses a twosided outside, and Mc!'s Crystal Golem doesn't
Here below you can see the examples

My Crystal Dragon
crystaldragonpreview.jpg
Mc!'s Crystal Golem
crystalgolem.jpg

Have fun with making your own crystal creatures!

And special thanks for Mc! for teaching me how to make this effect.
__________________
Olof Moleman AKA Lord Trilobite
Lord of the Paleozoic Sea...
http://osof.zeepost.nl

I DO NOT do requests, so don't pm about it!

Last edited by olofmoleman; 12-10-2006 at 11:21 AM.
olofmoleman is offline  
Old 12-09-2006, 01:45 PM   #2 (permalink)
Site & Art Director

Administrator
 
Join Date: Jan 2006
Posts: 1,821

Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)

PayPal Donor: This user has donated to The Hive. User of the Year: 2006 

Again, nice effect and well written tutorial

However, as much as I would like to apporve this, we have stated some rules which should be observed. I'm afraid you will have to attach the image files to your post, in order for this to be approved.
Archian is offline  
Old 12-09-2006, 03:52 PM   #3 (permalink)
 
camel's_hump's Avatar

Captain Planet
 
Join Date: Apr 2005
Posts: 1,039

camel's_hump is a glorious beacon of light (444)camel's_hump is a glorious beacon of light (444)camel's_hump is a glorious beacon of light (444)camel's_hump is a glorious beacon of light (444)camel's_hump is a glorious beacon of light (444)camel's_hump is a glorious beacon of light (444)

Texturing Competition #2 Winner: Nightelf Priestess 

I approve since there is nothing cooler than a crystal frog:P Just do as Archian says...
__________________

Check out WotTH Daily Updates Here!
camel's_hump is offline  
Old 12-09-2006, 03:58 PM   #4 (permalink)
 
olofmoleman's Avatar

It's a conspiracy...
 
Join Date: Dec 2004
Posts: 1,988

olofmoleman will become famous soon enough (117)olofmoleman will become famous soon enough (117)olofmoleman will become famous soon enough (117)

Respected User: This user has been given the respected user award. 

Done.

Though I can't seem to get the pics to show up as pics instead of links, wich ruins comparison pics
__________________
Olof Moleman AKA Lord Trilobite
Lord of the Paleozoic Sea...
http://osof.zeepost.nl

I DO NOT do requests, so don't pm about it!
olofmoleman is offline  
Old 12-09-2006, 04:02 PM   #5 (permalink)
 
camel's_hump's Avatar

Captain Planet
 
Join Date: Apr 2005
Posts: 1,039

camel's_hump is a glorious beacon of light (444)camel's_hump is a glorious beacon of light (444)camel's_hump is a glorious beacon of light (444)camel's_hump is a glorious beacon of light (444)camel's_hump is a glorious beacon of light (444)camel's_hump is a glorious beacon of light (444)

Texturing Competition #2 Winner: Nightelf Priestess 

You can keep the pictures where they were in your post, you just have to attach some pictures also. Also I believe there is a way to link stuff in your post to a different part of your post. I don't remember though, and sadly I cannot move this thread, I have to wait for an admin:P
__________________

Check out WotTH Daily Updates Here!
camel's_hump is offline  
Old 12-10-2006, 01:54 AM   #6 (permalink)
Site & Art Director

Administrator
 
Join Date: Jan 2006
Posts: 1,821

Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)

PayPal Donor: This user has donated to The Hive. User of the Year: 2006 

Quote:
Originally Posted by olofmoleman View Post
Done.

Though I can't seem to get the pics to show up as pics instead of links, wich ruins comparison pics
Thanks
However, you could use the Attachments (post editor) and use the [ATTACH]ID?[/ATTACH] for the images.
Anyway we know of the issue you speak of, and it will be fixed :)
Archian is offline  
Old 12-10-2006, 11:22 AM   #7 (permalink)
 
olofmoleman's Avatar

It's a conspiracy...
 
Join Date: Dec 2004
Posts: 1,988

olofmoleman will become famous soon enough (117)olofmoleman will become famous soon enough (117)olofmoleman will become famous soon enough (117)

Respected User: This user has been given the respected user award. 

There, I fixed all the images now.
__________________
Olof Moleman AKA Lord Trilobite
Lord of the Paleozoic Sea...
http://osof.zeepost.nl

I DO NOT do requests, so don't pm about it!
olofmoleman is offline  
Old 12-10-2006, 11:39 AM   #8 (permalink)
Site & Art Director

Administrator
 
Join Date: Jan 2006
Posts: 1,821

Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)

PayPal Donor: This user has donated to The Hive. User of the Year: 2006 

Good

Approved
Archian is offline  
Old 12-10-2006, 07:30 PM   #9 (permalink)
Community Moderator
 
brad.dude03's Avatar

Songs for the Deaf
 
Join Date: Mar 2006
Posts: 9,112

brad.dude03 is a splendid one to behold (893)brad.dude03 is a splendid one to behold (893)brad.dude03 is a splendid one to behold (893)brad.dude03 is a splendid one to behold (893)brad.dude03 is a splendid one to behold (893)brad.dude03 is a splendid one to behold (893)

User of the Year: 2004 

Excellent tutorial, I look forward to making many crystsl creatures :) Yay for crystal frogs! Nothing cooler :P
__________________
brad.dude03 is offline  
Old 12-10-2006, 07:35 PM   #10 (permalink)
 
operator's Avatar

User
 
Join Date: Feb 2006
Posts: 1,734

operator is on a distinguished road (78)operator is on a distinguished road (78)


nicey nicey :)
__________________
This post is written by

~Operator
____
operator is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Effect for models olofmoleman "Graveyard" 3 12-29-2006 07:17 PM

All times are GMT. The time now is 05:43 PM.






Your link here 
Debt Consolidation | Loans | Loans | Bad Credit Mortgages | Remortgages
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle