Feral Heart

Help & Guidance => Game Help => Topic started by: ChunkyMonkey94 on June 25, 2012, 08:47:11 pm

Title: How do you make transparent objects??
Post by: ChunkyMonkey94 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?
(=
Title: Re: How do you make transparent objects??
Post by: Wolf} 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.
Title: Re: How do you make transparent objects??
Post by: Ingredient 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
}
}
}
}
Title: Re: How do you make transparent objects??
Post by: ChunkyMonkey94 on June 26, 2012, 02:20:34 pm
Thanks for the help! =D
Title: Re: How do you make transparent objects??
Post by: Ingredient on June 27, 2012, 01:12:39 am
Your welcome :)