Author Topic: A question about Portals  (Read 4107 times)

CloudFish

  • Guest
Re: A question about Portals
« Reply #10 on: April 26, 2012, 11:30:39 pm »
Open the .material in note pad, you'll see something like this;

material crystalMat
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         emissive 1 1 1
         texture_unit
         {
            env_map spherical
            texture crystalTex.jpg
         }
      }
   }
}
material crystalGlowMat
{
   technique
   {
      pass
      {
         scene_blend add
         depth_write off
         fog_override true
         texture_unit
         {
            texture crystalGlow.jpg
            tex_address_mode clamp
            wave_xform scale_x sine 0.9 0.5 0 0.1
            wave_xform scale_y sine 0.9 0.5 0 0.1
         }
      }
   }
}


Right? Well basically, you'll want to add whatever edited files in the same fashion. Like if you made the crystal red in gimp (In which case, you'd change the blueish colours in the two jpeg files) and saved them as crystalTexR.jpeg and crystalGlowR.jpeg, you'd add those files to your my_objects and then add these to the material file (for example of course).


material crystalMat
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         emissive 1 1 1
         texture_unit
         {
            env_map spherical
            texture crystalTexR.jpg
         }
      }
   }
}
material crystalGlowMat
{
   technique
   {
      pass
      {
         scene_blend add
         depth_write off
         fog_override true
         texture_unit
         {
            texture crystalGlowR.jpg
            tex_address_mode clamp
            wave_xform scale_x sine 0.9 0.5 0 0.1
            wave_xform scale_y sine 0.9 0.5 0 0.1
         }
      }
   }
}


Then in object maker, you'll need to enter the names of the files (Cap sensitive) into object maker after loading the default crystal, and then add them to a group called something like "SchaesObjects".

If that's confusing, again, let me know and I'll expound it.

Gryphon Azura

  • Guest
Re: A question about Portals
« Reply #11 on: April 26, 2012, 11:47:35 pm »
ok, im confused. I copied excatly in notepad what you showed me (replacing it with what i named it) and I went into object maker, loaded the default crystal like you said. please explain in detail what i do next, im lost.

CloudFish

  • Guest
Re: A question about Portals
« Reply #12 on: April 26, 2012, 11:51:17 pm »
Did you do it by selecting it from the Misc. group, or did you manually enter the mesh name?

You'll want to manually enter the mesh name, ( I think it's the second tab in object maker) and then type in your custom texture name into the box below where you typed in the mesh. Make sure to add the tags on the end, such as .mesh and .mat

Gryphon Azura

  • Guest
Re: A question about Portals
« Reply #13 on: April 26, 2012, 11:54:25 pm »
Its still blue, with no glow

CloudFish

  • Guest
Re: A question about Portals
« Reply #14 on: April 26, 2012, 11:58:34 pm »
material crystalRMat
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         emissive 1 1 1
         texture_unit
         {
            env_map spherical
            texture crystalTexR.jpg
         }
      }
   }
}
material crystalGlowRMat
{
   technique
   {
      pass
      {
         scene_blend add
         depth_write off
         fog_override true
         texture_unit
         {
            texture crystalGlowR.jpg
            tex_address_mode clamp
            wave_xform scale_x sine 0.9 0.5 0 0.1
            wave_xform scale_y sine 0.9 0.5 0 0.1
         }
      }
   }
}




I forgot to tell you to change the material line at the top. Use my basis examples.. Should work then.

Gryphon Azura

  • Guest
Re: A question about Portals
« Reply #15 on: April 27, 2012, 12:02:38 am »
Meh. still not working. I'll try to work it out later

CloudFish

  • Guest
Re: A question about Portals
« Reply #16 on: April 27, 2012, 12:06:30 am »
I'll go try to find you a tutorial that's better than me. I'll edit this post when I find it.

CloudFish

  • Guest
Re: A question about Portals
« Reply #17 on: April 27, 2012, 07:02:40 pm »
Or you could just use Glave's meshes, since she's already got 'em done.

http://www.mediafire.com/?d66o7dp1drxai64 <-Glave's rubies and junk.

Gryphon Azura

  • Guest
Re: A question about Portals
« Reply #18 on: April 28, 2012, 05:17:14 pm »
I did, but whatever i do it wont take the material when i press add new the material switches to crystalMat???

CloudFish

  • Guest
Re: A question about Portals
« Reply #19 on: April 28, 2012, 05:25:39 pm »
Using Glave's?