Help & Guidance > Game Help

Preset Eye Code Not Working...

(1/2) > >>

Oddonelynx:

--- Code: ---material preset_8_eyeMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
lighting on
scene_blend alpha_blend
specular 0.5 0.5 0.5 1 128
cull_hardware none
cull_software none

texture_unit
{
texture testball.png
}
}
pass
{
alpha_rejection greater_equal 128
lighting on
scene_blend alpha_blend
texture_unit
{
env_map spherical
texture hor.png
}
}
}
--- End code ---
I can't seem to find what's wrong. Whenever I check in game, the eyes are completely white.

Saboomba:
For one thing, it looks like you don't have the right amount of end brackets. I entered your code into my own file, and it whited out both eyes and the tail. Adding more brackets fixed the right eye and tail, but I'm still experimenting with how to correct the left eye. I'll let you know if I find anything, but I suspect it's still an issue with the brackets.

Edit: My issue was mis-numbering my own coding. I fixed it. You just need to add one more bracket after each each file name (texture testball.png and texture hor.png)

Oddonelynx:

--- Quote from: Saboomba on February 26, 2022, 09:45:16 pm ---For one thing, it looks like you don't have the right amount of end brackets. I entered your code into my own file, and it whited out both eyes and the tail. Adding more brackets fixed the right eye and tail, but I'm still experimenting with how to correct the left eye. I'll let you know if I find anything, but I suspect it's still an issue with the brackets.

Edit: My issue was mis-numbering my own coding. I fixed it. You just need to add one more bracket after each each file name (texture testball.png and texture hor.png)

--- End quote ---
Nice. That worked! =)

Oddonelynx:
Bump, the problem is back and I can't seem to get the code to work anymore...

Saboomba:
send code again?

Navigation

[0] Message Index

[#] Next page

Go to full version