Posted By: Jerome8911
First useable Mirror for A6 Commercial - 02/08/05 22:57
Hi,
The first useable Mirror for A6 Commercial, but with a little Problem.
I know it isn't really a shader, but it was one before i modified it, so I hope there will be no problems.
But now the code:
Code:
To use it you need the renderview.dll from Matt Aufderheide, somewhere in the forum, and you need to create a sprite. This sprite must be the yourtex.tga.
This sprite is now the mirror.
The problem is difficult to desribe, and it's not possible to make a screenshot of it. I think the best would be to test it.
Perhaps somebody can fix the problem, but i see no possibility.
The first useable Mirror for A6 Commercial, but with a little Problem.
I know it isn't really a shader, but it was one before i modified it, so I hope there will be no problems.
But now the code:
Code:
var Video_mode = 7;
var video_depth = 32;
var video_screen = 1;
////////////////////////////////////////////////////////////////////////////////
entity glow_quad
{
type = <yourtex.tga>; //128*128 works best but can be any size
//this entity is always invisible..
}
////////////////////////////////////////////////////////////////////////////////
dllfunction render_backbuffer(entity);
function main()
{
dll_open("render_view.dll");
level_load("Shader_lvl1.wmb");
while(1) {
me=glow_quad;
temp.x = camera.x;
temp.y = camera.y;
temp.z = camera.z;
camera.x = -50;
camera.y = 181.000;
camera.z = -65;
camera.pan = -camera.pan;
wait(0.1);
render_backbuffer(me);
camera.x = temp.x;
camera.y = temp.y;
camera.z = temp.z;
camera.pan = -camera.pan;
wait(10);
}
}
To use it you need the renderview.dll from Matt Aufderheide, somewhere in the forum, and you need to create a sprite. This sprite must be the yourtex.tga.
This sprite is now the mirror.
The problem is difficult to desribe, and it's not possible to make a screenshot of it. I think the best would be to test it.
Perhaps somebody can fix the problem, but i see no possibility.