Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (VoroneTZ, 7th_zorro), 1,332 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
level geomety shaders #257317
03/22/09 16:22
03/22/09 16:22
Joined: Jul 2007
Posts: 31
D
Dazz Offline OP
Newbie
Dazz  Offline OP
Newbie
D

Joined: Jul 2007
Posts: 31
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?

Re: level geomety shaders [Re: Dazz] #257945
03/26/09 19:55
03/26/09 19:55
Joined: Jul 2007
Posts: 31
D
Dazz Offline OP
Newbie
Dazz  Offline OP
Newbie
D

Joined: Jul 2007
Posts: 31
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 ).

Re: level geomety shaders [Re: Dazz] #258136
03/27/09 21:58
03/27/09 21:58
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline
Member
XD1v0  Offline
Member

Joined: Jun 2008
Posts: 151
Ukraine
Can you post code of your script here?


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: level geomety shaders [Re: XD1v0] #258540
03/31/09 14:09
03/31/09 14:09
Joined: Jul 2007
Posts: 31
D
Dazz Offline OP
Newbie
Dazz  Offline OP
Newbie
D

Joined: Jul 2007
Posts: 31
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

Re: level geomety shaders [Re: Dazz] #258738
04/01/09 19:48
04/01/09 19:48
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
In the shader file, you have to change the TEXCOORD's for the lookup.

Look in the manual


xXxGuitar511
- Programmer
Re: level geomety shaders [Re: xXxGuitar511] #261056
04/15/09 13:36
04/15/09 13:36
Joined: Jul 2007
Posts: 31
D
Dazz Offline OP
Newbie
Dazz  Offline OP
Newbie
D

Joined: Jul 2007
Posts: 31
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.


Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1