Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TraderTom, Akow), 1,388 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 2 of 5 1 2 3 4 5
Re: level textures with bump mapping [Re: Josh_Arldt] #34471
10/10/04 12:19
10/10/04 12:19
Joined: Oct 2002
Posts: 815
NY USA
R
Red Ocktober Offline
Developer
Red Ocktober  Offline
Developer
R

Joined: Oct 2002
Posts: 815
NY USA
cooool....

--Mike

Re: level textures with bump mapping [Re: Red Ocktober] #34472
10/10/04 13:15
10/10/04 13:15
Joined: Sep 2003
Posts: 648
Switzerland
snake67 Offline
User
snake67  Offline
User

Joined: Sep 2003
Posts: 648
Switzerland
It does not work for me. I use this wdl script. The level texture in WED is named "floor1.bmp":

bmap detail_floor1, <floor1.tga>;

function init_detail_mapping
{
bmap_to_mipmap(mtl.skin1);
}

material floor1
{
event=init_detail_mapping;
skin1=detail_floor1;
effect=
"
matrix matWorldViewProj;
matrix matWorld;

texture mtlSkin1;
texture entSkin1;
texture entSkin2;
vector vecLight;

technique dot3map
{
pass p0
{
Texture[0] = <mtlSkin1>;
Texture[1] = <entSkin2>;
Texture[2] = <entSkin1>;
TextureFactor = 0xFFFFFFFF;

COLOROP[0] = DotProduct3;
COLORARG1[0] = Texture;
COLORARG2[0] = TFactor;
TexCoordIndex[0] = 1;

COLOROP[1] = Modulate;
COLORARG1[1] = Texture;
COLORARG2[1] = Current;
TexCoordIndex[1] = 0;

magFilter[2]=Linear;
minFilter[2]=Linear;
mipFilter[2]=Linear;
COLOROP[2] = AddSigned;
COLORARG1[2] = Texture;
COLORARG2[2] = Current;
TexCoordIndex[2] = 1;
}
}
";
}

Could someone give a link to a example detail or bumpmap tga file? I think mine is wrong...

Re: level textures with bump mapping [Re: snake67] #34473
10/10/04 13:22
10/10/04 13:22
Joined: Sep 2004
Posts: 1,214
Austin, Texas
Josh_Arldt Offline
Senior Developer
Josh_Arldt  Offline
Senior Developer

Joined: Sep 2004
Posts: 1,214
Austin, Texas
What version of gstudio do you have?
For level geometry bump-mapping to work you need to have A6.31.0, and dx9c installed.

Last edited by humansandbag; 10/10/04 13:23.
Re: level textures with bump mapping [Re: Josh_Arldt] #34474
10/10/04 16:47
10/10/04 16:47
Joined: Sep 2003
Posts: 648
Switzerland
snake67 Offline
User
snake67  Offline
User

Joined: Sep 2003
Posts: 648
Switzerland
Hi

Yes i have A6.31.0 and DX9.0c installed. My PC:
P4 2.4GHz 512RAM
GeF Ti4200
I think this should work...

Re: level textures with bump mapping [Re: snake67] #34475
10/10/04 19:00
10/10/04 19:00
Joined: Sep 2003
Posts: 648
Switzerland
snake67 Offline
User
snake67  Offline
User

Joined: Sep 2003
Posts: 648
Switzerland
I played around a bit and now it works! The mistake was:

since I use the new WED feature, giving a path for textures to compile a wad file automatically. The texture in that path is called "bumptest.bmp"

"material bumptest_bmp" instead of "material bumptest".

So for the dot we must give an underscore to work properly (is this not yet documented, conitec?).

Re: level textures with bump mapping [Re: snake67] #34476
10/10/04 23:31
10/10/04 23:31
Joined: Nov 2002
Posts: 288
Chicago, IL
Optigon Offline
Member
Optigon  Offline
Member

Joined: Nov 2002
Posts: 288
Chicago, IL
So let me get this straight, the texture itself doesn't have a greyscale bump channel? If not, then does the shader create the illusion of depth based on color values in the texture?

I've only used bump maps in pre-rendered work before. So I'm just trying to understand how this all works.

Jim


James Abraham 3D Artist / Animator http://www.optigon-cg.com
Re: level textures with bump mapping [Re: Optigon] #34477
10/11/04 02:21
10/11/04 02:21
Joined: Oct 2002
Posts: 815
NY USA
R
Red Ocktober Offline
Developer
Red Ocktober  Offline
Developer
R

Joined: Oct 2002
Posts: 815
NY USA
skin0 is the regular texture, and skin1 holds the normal map...

i think...

at least that's the way it works in 6.22 on models... gonna try 6.31 this evening (fingers crossed)

--Mike

Re: level textures with bump mapping [Re: Red Ocktober] #34478
10/11/04 02:53
10/11/04 02:53
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline
Expert
Rhuarc  Offline
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Here's some info for those that want to know a little more about the shader.

entSkin1 - Level Texture (no lighting in this texture)
entSkin2 - Level Lighting (this gets rendered over the texture using AddSigned)
mtlSkin1 - The normal map. You define this in the material as skin1

The normal map has to be created beforehand, the shader won't generate its own. If you want it to generate its own, you need to add the following function above the material:

Code:
function init_textureNormals()

{
bmap_to_normals(mtl.skin1,2);//convert the skin to a normal map
}


And add this into your material definition:
Code:
event = init_textureNormals;



In this case you MUST still define skin1, but doing it this way- you can simply set a bmap to the texture image, rather than a normal map for it. Keep in mind it is processed faster to use your own normal map than to create it in the engine.

EDIT: @Snake67- all you need to do is replace bmap_to_mipmap with the bmap_to_normals statement here and it should work .

-Rhuarc

Last edited by [Rhuarc]; 10/11/04 02:55.

I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Re: level textures with bump mapping [Re: Rhuarc] #34479
10/11/04 03:25
10/11/04 03:25
Joined: Jul 2004
Posts: 262
O
Otsego Offline
Member
Otsego  Offline
Member
O

Joined: Jul 2004
Posts: 262
Wow, this works fine .
But how can i use it on models? The old bumpmapping shader doesn't work anymore and i don't know how to get this new one to work on models. Can you tell me what i have to do?
Thank you

Re: level textures with bump mapping [Re: Otsego] #34480
10/11/04 04:05
10/11/04 04:05
Joined: Jan 2004
Posts: 620
Germany
TimeOut Offline
User
TimeOut  Offline
User

Joined: Jan 2004
Posts: 620
Germany
Look here :

link


Athlon 64 3700+ 2048 MB DDR PC400 Dual Corsair XFX Geforce 7800 GT A6 Commercial 6.4
Page 2 of 5 1 2 3 4 5

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