level geomety shaders

Posted By: Dazz

level geomety shaders - 03/22/09 16:22

Hi all,

I can't get them shaders to work for the level geometry. I'm using the default 3dgs shaders, and all I get is this:


For futher detail:



Just downloaded the Hires texture pack and the nm files don't seem to work.
What am I doing wrong?
Posted By: Dazz

Re: level geomety shaders - 03/26/09 19:55

Since there still is no answer, here are some screens with the same shader (mtl_specBump), but now on a model:

Left shows the model normally, where right shows the bumps only (both the way they should be smirk ).
Posted By: XD1v0

Re: level geomety shaders - 03/27/09 21:58

Can you post code of your script here?
Posted By: Dazz

Re: level geomety shaders - 03/31/09 14:09

Sure:

Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
#include <mtlFX.c>
#include <mtlView.c>
///////////////////////////////

function main()
{
	shadow_stencil = 2;
	stencil_blur(1);
	fps_max = 50; 
	video_window(NULL,NULL,0,"My New Game");
	level_load("test1.WMB");
	wait(4);
}

action cube()
{
   while(1)
   {
      my.pan += time_step;
      wait(1);
   }
}

action cube_normal()
{
   my.material = mtl_specBump;
    while(1)
   {
      my.pan += time_step;
      wait(1);
   }
}

action cube_glass()
{
   my.material = mtl_bumpGlass;
   mtl_setup(50,50,50,50);
    while(1)
   {
      my.pan += time_step;
      wait(1);
   }
}
action light()
{
	my.lightrange = 100; // don't illuminate the environment
  	my.red = 150;
  	my.green = 150;
  	my.blue = 150;
  	
}


All shaders are from mtlFX.c
Posted By: xXxGuitar511

Re: level geomety shaders - 04/01/09 19:48

In the shader file, you have to change the TEXCOORD's for the lookup.

Look in the manual
Posted By: Dazz

Re: level geomety shaders - 04/15/09 13:36

Originally Posted By: xXxGuitar511
In the shader file, you have to change the TEXCOORD's for the lookup.

Look in the manual


Thanks, but I found out that the level geometry shaders just didn't work on my Intel graphics chipset, but thanks anyway. It ran perfectly on my HD 3650.
© 2023 lite-C Forums