Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, Quad), 903 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: NormalMap - 2D or 3D [Re: Matt_Aufderheide] #58757
11/12/05 15:24
11/12/05 15:24
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
The shader code I was using in this example is this one:

Code:
//  Basic Dot3 Bumpmapping.  
//
// Calulates diffuse lighting from Sun and Level Light
//
// Needs: A6.31 Comm+ DX9c vertexshader.1.1
//
// Todo: Lighting improvements
//
// Eric Hendrickson-Lambert (Steempipe)
//
// 3/28/05: Made changes for DX9 A6



So it may be a little out of date...

I tried another shader previously to this older one,
Code:

/**************************************************************/

// HLSL NormalMapping Shader

// -------------------------

// By: Daniel "Rhuarc" Niezgocki

// Requires: []VS 1.1

// []PS 1.4

// Skin1: Texture

// Skin2: Normal Map

//

// Usage: Free to use, credit is nice, but not required.

/**************************************************************/



..but despite my Radeon Pro 9800 being PS 2.0 (I think thats correct ) I got a completely black model on my screen. Maybe you could help me out here, and point me in the right direction? Would be much appreciated.

Now that I have clarified the method it would be nice to put it into practise


The Art of Conversation is dead : Discuss
Re: NormalMap - 2D or 3D [Re: indiGLOW] #58758
11/20/05 06:38
11/20/05 06:38
Joined: Nov 2003
Posts: 677
There
Julius Offline
Developer
Julius  Offline
Developer

Joined: Nov 2003
Posts: 677
There
i remember reading somewhere that Nvidia and ATI processors use normal maps differently, with one of the axises being inverted if u were to use a Nvidia-tested normal map on an ATI machine, and vice versa. i could be wrong.
and even if i AM right, it still shouldnt make ur model black. sorry, i can't help you.

julius

EDIT: whoops! matt already pointed out the differences.

Last edited by Julius; 11/20/05 22:47.

flabadabadab.
Re: NormalMap - 2D or 3D [Re: Julius] #58759
11/20/05 12:52
11/20/05 12:52
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline OP
Serious User
indiGLOW  Offline OP
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
My experience when getting a black model, is that the shader does not work with the card, but is not...bad code, simply that it doesn't run on that card.

I say this as running shaders that work on my Radeon, on a Nvidia Mx400 recently produced the same results. I suspect that the bump code I used that is producing black is doing something that my card doesn't like, even if its a PS.2.0


The Art of Conversation is dead : Discuss
Page 2 of 2 1 2

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