[fixed]Tangent woes 1.6 (1.52?)

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
PI
Posts: 176
Joined: Tue Oct 09, 2007 7:15 pm
Location: Hungary

[fixed]Tangent woes 1.6 (1.52?)

Post by PI »

First of all, thanks for the maintenance release!

Just one question:

"Normals handling fixed in createMeshWithTangents, existing normals are not always destroyed now."

Does it mean that I can have smoothed normals/tangents now? Currently (in 1.6) when I load up a model and create a mesh of it with tangents, even if I have smoothed the normals previously (angle weighted option screws it up totally!) and the geometry is also welded, it will generate flat surfaces (you can see the edges, not only the edges of the model). You can see this in the ParallaxMapping demo of Irrlicht as well.

Image:

Image

Cheers,
PI
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, that problem should be fixed now. I'm not sure if it's part of 1.5.2, though, but probably in 1.6.1
PI
Posts: 176
Joined: Tue Oct 09, 2007 7:15 pm
Location: Hungary

Post by PI »

Okay, thanks!
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

So now what are the semantics to use when doing normal mapping?
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
PI
Posts: 176
Joined: Tue Oct 09, 2007 7:15 pm
Location: Hungary

Post by PI »

What do you mean?
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

In shader programming, a semantic is the data you tell the graphics card to provide to the shader program. The semantics can be many, and they involve data you need to render, namely vertex Position, Normal, Tangent, Binormal, Weights, Bone Index... etc.

In the shader, you must declare what semantics are you going to use, (POSITION0 for the vertex position, NORMAL0 for the normal, TANGENT0 for the tangent data and so on)

So, what i am asking is what of these Semantics are now in effect, to use them in the shaders.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Mel wrote:So now what are the semantics to use when doing normal mapping?
It's the same as before, this topic is unrelated to which semantics are used (TEXCOORD1 and TEXCOORD2).
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Post Reply