Author Topic: How do you make transparent objects??  (Read 2209 times)

Offline ChunkyMonkey94

  • Curious Wanderer
  • *
  • Posts: 37
  • Floof-O-Meter: 1
    • View Profile
How do you make transparent objects??
« on: June 25, 2012, 08:47:11 pm »
I've been looking for the code that will make objects transparent but can't find it anywhere.
Can someone help out please?
(=
FREE MESHES & COMMISSIONS
------------------------------------
Check out my DA account where I have free
mesh you can use for your maps and where
I'm also accepting mesh and item commissions:
http://chunkymonkey94.deviantart.com

Offline Wolf}

  • Finest Floof
  • ***
  • Posts: 660
  • Floof-O-Meter: 12
  • Trust No One. If you want your secrets Safe.
    • View Profile
Re: How do you make transparent objects??
« Reply #1 on: June 25, 2012, 11:28:36 pm »
Well I don't know how fix your problem but I can help you find the solution. So you go to the Form menu (By clicking on Form) and in the seach box near  Show new replies to your posts and Show unread posts since last vist. There will be a seach box. Type in How to make Tansparent Objects and scroll through the list and there might be one that tells you how to make Tansparent Objects. I hope I helped a little.

"I Believe I can Fly!"

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: How do you make transparent objects??
« Reply #2 on: June 26, 2012, 12:03:00 am »
Im sure some of the Feralheart material files have the right code ;)

Try some of these.

Grass material file

Code: [Select]
material [material name]
{
transparency_casts_shadows off
receive_shadows off
technique
{
pass
{
//lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 128

texture_unit
{
texture [image].png
}
}
}
}

Acacia tree material file

Code: [Select]
material [material name]
{
transparency_casts_shadows off
receive_shadows off
technique
{
pass
{
ambient 0.75 0.75 0.75 1
diffuse 0.05 0.05 0.05 1
cull_hardware none
cull_software none

alpha_rejection greater_equal 128

texture_unit
{
texture [image].png
}
}
}
}

This one also works and probably works the best for me. It came out of the sky.material file, i dont understand why i would randomly decide to use a code from there though ^^

Code: [Select]
material [material name]
{
receive_shadows off
technique 1
{
pass
{
lighting off
depth_write off
scene_blend alpha_blend
fog_override true

fragment_program_ref Cloud_PS
{
param_named_auto colorMod1 custom 1
}
texture_unit
{
texture [image].png
tex_coord_set 0
tex_address_mode clamp
}

}
}
technique 2
{
pass
{
lighting off
depth_write off
scene_blend alpha_blend
fog_override true

texture_unit
{
texture [image].png
tex_coord_set 0
tex_address_mode clamp
colour_op_ex source1 src_manual src_manual 1 0 0 1
}
}
}
}
Will be inactive due to work and exams.

Offline ChunkyMonkey94

  • Curious Wanderer
  • *
  • Posts: 37
  • Floof-O-Meter: 1
    • View Profile
Re: How do you make transparent objects??
« Reply #3 on: June 26, 2012, 02:20:34 pm »
Thanks for the help! =D
FREE MESHES & COMMISSIONS
------------------------------------
Check out my DA account where I have free
mesh you can use for your maps and where
I'm also accepting mesh and item commissions:
http://chunkymonkey94.deviantart.com

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: How do you make transparent objects??
« Reply #4 on: June 27, 2012, 01:12:39 am »
Your welcome :)
Will be inactive due to work and exams.