[Solved]Can't assign transparency material to overlay

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
randomcode
Halfling
Posts: 53
Joined: Wed Nov 11, 2015 11:31 am
Location: People's Republic of China
x 5
Contact:

[Solved]Can't assign transparency material to overlay

Post by randomcode »

Hey, there, i wrote a material to assign a transparency material to overlay, but didn't work, my ogre version is 1.7.4, here is the material:

Code: Select all

material OverlayMat
{
	technique
	{
		pass
		{
			lighting off
			sene_blend one one_minus_dest_colour
			depth_check off
			texture_unit
			{
				texture overlay_transparency.png
			}
		}
	}
}
and ogre engine notice error:

Code: Select all

Compiler error: unknown error in UI.material(50): token "sene_blend" is not recognized
Last edited by randomcode on Sat Dec 09, 2017 1:55 pm, edited 1 time in total.
OpenMB(Open Source Mount&Blade Series)
https://github.com/cookgreen/OpenMB
User avatar
Kohedlo
Orc
Posts: 435
Joined: Fri Nov 27, 2009 3:34 pm
Location: Ukraine, Sumy
x 32
Contact:

Re: Can't assign transparency material to overlay

Post by Kohedlo »

looks OGRE Source for compiler expressions availabled.
c++ game developer.
current project: Imperial Game Engine 2.5
Image
User avatar
randomcode
Halfling
Posts: 53
Joined: Wed Nov 11, 2015 11:31 am
Location: People's Republic of China
x 5
Contact:

Re: Can't assign transparency material to overlay

Post by randomcode »

Kohedlo wrote: Fri Dec 08, 2017 6:15 pm looks OGRE Source for compiler expressions availabled.
I have solved this problem by removing Material from overlay, but tanks
OpenMB(Open Source Mount&Blade Series)
https://github.com/cookgreen/OpenMB
Post Reply