Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 666 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 6 1 2 3 4 5 6
Re: Gamestudio 7.10.1 public beta [Re: MaxF] #216441
07/17/08 05:12
07/17/08 05:12
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
@jcl : Yes, my model already have diffuse map and normal map stored
in skin 1 and skin 2 respectively. My test level is very simple as
follow :

Code:
//
// BansheeTest.c
//
#define PRAGMA_PATH "%EXE_DIR%\templates\images";
//
#include <acknex.h>
#include <default.c>
#include "mtlFX.c";

void main()
{
	video_mode = 8;
	video_depth = 32;
	
	level_load("bansheeTest.wmb");
}



And I've assigned the action "fx_bump" to my model "banshee.mdl"
in WED. Please tell me if there are any further steps that I need
to do in order to show the bumpmapping effect. I can send you the
test level if necessary.

Thank you.

Re: Gamestudio 7.10.1 public beta [Re: vlau] #216481
07/17/08 09:24
07/17/08 09:24
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
The first thing to do with any such problem is trying to find the reason. You are not helpless when your project does not work, but have many possibilities to find out what's wrong.

If a shader does not work, first check the shader in the shader viewer. Then you'll see if the problem is related to your PC or your model.

If it's your model, check if the second skin is really not assigned to any triangle. If it is, the engine assumes that this skin is just another color texture and no normal map. Another possibility is that your normal map contains wrong content.

If the bumpmapping shaders don't work at all on your PC, check the video driver. Problems of this kind can be caused by installing a driver for a wrong card, or vice versa.

Re: Gamestudio 7.10.1 public beta [Re: jcl] #216541
07/17/08 14:04
07/17/08 14:04
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
I've copied my model to the shadertest folder, rename it
to marine.mdl and run shaderTest.c, my model show up
perfectly with different shader settings.

Maybe there are some codes missing in mtlFX.c

Re: Gamestudio 7.10.1 public beta [Re: vlau] #216548
07/17/08 14:30
07/17/08 14:30
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
bump.fx works here, which values have you set for vecskill41?



Re: Gamestudio 7.10.1 public beta [Re: Spirit] #216649
07/18/08 04:10
07/18/08 04:10
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
I didn't set any value to vecskill41, all I have to do
is shown on the above post.

Re: Gamestudio 7.10.1 public beta [Re: vlau] #216661
07/18/08 08:30
07/18/08 08:30
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Ah, this explains it then. I had overlooked that you just assigned the fx_bump action, but without setting the two variables it requires (skill41 and skill42).

The way to set the bump shader is:

action set_bump()
{
my.skill41 = floatv(50);
my.skill42 = floatv(50);
fx_bump();
....
}

The values affect the shader ambient and diffuse component. You can play with the values in the shader viewer. They are the sliders below the shader selector in 0..100 range.

Re: Gamestudio 7.10.1 public beta [Re: jcl] #216760
07/18/08 17:16
07/18/08 17:16
Joined: Jul 2002
Posts: 1,364
Minbar
M
MaxF Offline
Serious User
MaxF  Offline
Serious User
M

Joined: Jul 2002
Posts: 1,364
Minbar
why is this not coded into fx_bump action

action fx_bump()
{
my.material = mtl_bump;
}


is this stated in the manual


Last edited by MaxF; 07/18/08 17:19.

Re: Gamestudio 7.10.1 public beta [Re: MaxF] #216839
07/19/08 03:41
07/19/08 03:41
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
@jcl : Thank you, that work perfectly!

I'm agree with MaxF, why not hard code in mtlFX.c, or at least,
describe the usage of the above codes both in the fx_bump action
and the manual.

Re: Gamestudio 7.10.1 public beta [Re: vlau] #217139
07/21/08 15:58
07/21/08 15:58
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
@JCL: You said that with the new update, a compiled version of the shader viewer will be available for the public. I'm still waiting for this. Please upload it soon!

Thanks!

Dark_Samurai


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: Gamestudio 7.10.1 public beta [Re: Dark_samurai] #218348
07/28/08 08:13
07/28/08 08:13
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
You're right, I promised that. I'll put the shader viewer together as an executable and upload it today or tomorrow to the AU demo section.

-Vlau: the default values will be hard coded in the action for the next update.

Page 4 of 6 1 2 3 4 5 6

Moderated by  Matt_Coles 

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