Texturing plane per vertex.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Electricity
Posts: 28
Joined: Sun Aug 03, 2008 10:10 am
Location: Denmark

Texturing plane per vertex.

Post by Electricity »

Anybody know Petroglyph's Map Editor?

If so you might have noticed that when you texture the terrain it looks like you apply a texture to a vertex of the plane and then they automatically blend.

Im trying to make the same effect but cant find any texture vertex functions...
Chaos vs. Cosmos
Electricity
Posts: 28
Joined: Sun Aug 03, 2008 10:10 am
Location: Denmark

Post by Electricity »

(bump)

I had to bump this topic to keep it from flowing over into page 2-3-6-98...
Chaos vs. Cosmos
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

:lol: It wasn't even halfway down the first page ;)

You might get help if you explain your problem better... Shows some screenshots of what you're trying to achieve, it sounds like terrain splatting possibly. If you search the forum for that you may find some solutions.
Image Image Image
Electricity
Posts: 28
Joined: Sun Aug 03, 2008 10:10 am
Location: Denmark

Post by Electricity »

Well what i really want is to be able to texture a plane/terrain node with multiple textures which will blend into each other :P
Chaos vs. Cosmos
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

And did the terrain splatting search help?
Image Image Image
Electricity
Posts: 28
Joined: Sun Aug 03, 2008 10:10 am
Location: Denmark

Post by Electricity »

Nope... I only found topics about terrain... No splatting...
Chaos vs. Cosmos
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

When i search for 'terrain AND splatting' the 7th, 8th and 9th results look fairly promising....
Image Image Image
Electricity
Posts: 28
Joined: Sun Aug 03, 2008 10:10 am
Location: Denmark

Post by Electricity »

Ok ill try writing it like you "terrain AND splatting" :P

Edit: Ok got no usefull results...
Irrlicht supports only 4 textures per mesh?
Anywayz i saw that i need a shader to have multiple textures..?
Chaos vs. Cosmos
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

What's wrong with the 7th, 8th and 9th ones? they do terrain splatting surely...
Image Image Image
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

JP, you are turning into one cruel SOB.

In other words, I am so into you right now.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Electricity
Posts: 28
Joined: Sun Aug 03, 2008 10:10 am
Location: Denmark

Post by Electricity »

@JP: They werent any help for me... Only 4 textures and the splatting was done with alpha masks.
Chaos vs. Cosmos
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

I'm pretty sure i've seen terrain splatting in irrlicht with more than 4 textures so you're probably not looking hard enough, try looking further down the page and into the next pages and so on!

Rogerborg... wanna cyber? :twisted:
Image Image Image
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

I am so hard right now.

EDIT: I would say something useful like "Blend between 4 textures based on the current vertex color e.g. tex1 * r, tex2 * g, etc, and that you can extend Irrlicht pretty easily to support 8 textures if you search the forum.", but that would ruin the moment.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Too far blindside.. that's just hugely inappropriate! :lol:
Image Image Image
Electricity
Posts: 28
Joined: Sun Aug 03, 2008 10:10 am
Location: Denmark

Post by Electricity »

@Blindside: What about an unlimited amount of textures?
Chaos vs. Cosmos
Post Reply