Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,787 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
A7 concave level texturcoordinates #136850
06/17/07 13:08
06/17/07 13:08
Joined: Jul 2005
Posts: 79
Bonn, Germany
KuleskoStudios Offline OP
Junior Member
KuleskoStudios  Offline OP
Junior Member

Joined: Jul 2005
Posts: 79
Bonn, Germany
Hello,
I try to use some shadercode on concave levelgeometry. But somehow it doesn't work propely. I use a slightly modified code from the contestwinning shadertutorial. The code I made works perfectly with convex blocks (well with a bad performance and some ugly looking parts but it DOES work).
Well here is a screenshot from a level without shader:


here I just tried to render the textures on the geometry:
you see, the textures are shows wrong

and here I rendered only the lightmap, which works fine, doesnt it.


my question is, how are the textures on concave geometry to be treated in general in order to produce a correct looking rendering? I used wrap in the sampler.
I also tried to use flatshaded concave geometry but with the same results.

Last edited by KuleskoStudios; 06/17/07 13:19.

KuleskoStudios - think differently
http://kstudios.de * Tutorials ~ Games ~ Downloads ~ Resources *

Demo: Erster Prototyp für die BlackBox Adventure Game Serie
Re: A7 concave level texturcoordinates [Re: KuleskoStudios] #136851
06/17/07 14:19
06/17/07 14:19
Joined: May 2003
Posts: 567
Spain, Canary Islands
Felixsg Offline
User
Felixsg  Offline
User

Joined: May 2003
Posts: 567
Spain, Canary Islands
why not post this in the beta forum
I think problably a bug

Re: A7 concave level texturcoordinates [Re: Felixsg] #136852
06/17/07 14:49
06/17/07 14:49
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Not a bug, shaders on Level geometry are Horrible. Textures will not be aligned, scaled, or rotated properly. It will also run VERY slow. I don't recommend it...


xXxGuitar511
- Programmer
Re: A7 concave level texturcoordinates [Re: xXxGuitar511] #136853
06/17/07 14:53
06/17/07 14:53
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
Maybe you are using the wrong texcoord for the texture?


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: A7 concave level texturcoordinates [Re: ChrisB] #136854
06/17/07 14:56
06/17/07 14:56
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Does level geometry use a different texture coord than TEXCOORD0 ?


xXxGuitar511
- Programmer
Re: A7 concave level texturcoordinates [Re: xXxGuitar511] #136855
06/17/07 15:01
06/17/07 15:01
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
The texture uses texcoord1 and the lightmap texcoord0


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: A7 concave level texturcoordinates [Re: ChrisB] #136856
06/17/07 15:03
06/17/07 15:03
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
...damn. Well that explains alot. I should have known, since the lightmap is on entSkin1, and diffuse on entSkin2... I think.

However, there is still the performance issue. GS sends the triangle (visible by f11 twice) individually, not as one mesh.


xXxGuitar511
- Programmer

Moderated by  Blink, Hummel, Superku 

Gamestudio download | 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