Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (ChrstphFr, AndrewAMD, dr_panther), 865 guests, and 4 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
Shader problem/ Need new shader? #267929
05/26/09 21:19
05/26/09 21:19
Joined: Feb 2005
Posts: 1,785
Jesusland
Towelie Offline OP
Serious User
Towelie  Offline OP
Serious User

Joined: Feb 2005
Posts: 1,785
Jesusland
Im tyring to place a shader on some blocks. So, I do as the manual tells me, and am using the material collection that came with a7. However, it gives me this:


The shadows are all sorts of messed up. Also, the shaders make me unable to crate shadows, even these are level blocks. I searched the forums for new shaders but couldnt find anything- any direction would be appreciated. Would I need to pay someone to write a new bump map shader for me?


Jimmy died, today, he blew his brains out into the bay, in the state of mind, its my own private suicide. A stitch in time saves nine... what the hell does that mean?!?
Re: Shader problem/ Need new shader? [Re: Towelie] #267934
05/26/09 22:25
05/26/09 22:25
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
It's using the wrong texture coordinates (TEXCOORDn). Level geometry uses different texcoord registers than models do (look in the manual)...


xXxGuitar511
- Programmer
Re: Shader problem/ Need new shader? [Re: xXxGuitar511] #267947
05/26/09 23:54
05/26/09 23:54
Joined: Feb 2005
Posts: 1,785
Jesusland
Towelie Offline OP
Serious User
Towelie  Offline OP
Serious User

Joined: Feb 2005
Posts: 1,785
Jesusland
So how would I fix this? I just looked in the manual and could only find the definition of texture coordinates.


Jimmy died, today, he blew his brains out into the bay, in the state of mind, its my own private suicide. A stitch in time saves nine... what the hell does that mean?!?
Re: Shader problem/ Need new shader? [Re: Towelie] #267955
05/27/09 00:57
05/27/09 00:57
Joined: Apr 2008
Posts: 235
TEXCOORD3
Foxfire Offline
Member
Foxfire  Offline
Member

Joined: Apr 2008
Posts: 235
TEXCOORD3
pass in the 2nd texture coordinates from the application to the vertex shader and then to the pixel shader.

create a new input semantic - in float2 [name] : TEXCOORD1;

this will give you the correct light map texture coordinates where as using the TEXCOORD0 (app to vertex) will give you the coordinates for entSkin1.

-Mike-


http://www.groundtacticsgame.com/
Alienware m17x R Custom laptop
specs:
Intel Core 2 Extreme Quad CPU Q9300
2x Nvidia 280GTX 2GB vram
6GB ddr3 memory@ 1333Mhz
512GB SSD
1200p 17' screen
runs Crysis Warhead on max settings at 1200p at 90 fps

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