Creating tiles

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Mark_Solo
Posts: 10
Joined: Sun Sep 25, 2005 6:30 pm

Creating tiles

Post by Mark_Solo »

Well maybe you can give me useful information on this trick:

what i need is to create a vector net, i mean, like a mesh but with movible vector forming like tiles, so i can fill them with some texture..

i need this to implement like a scenario in my program, and also i need to know how to implement that as a WYSIWYG editor, so i can put the textures i need in them.

Maybe this is somehitng easy for some of you, all help is welcom

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

Post by hybrid »

:? Err...
A mesh consists of vertices that can be connected in arbitrary ways. These connections are your vectors. Moving the vertices will change the vectors accordingly (or vice versa :wink: ). So simply take a mesh and update its vertices when changing the vectors. You'll just have to do some vector arithmetics to get from vectors to vertex positions.
The textures are automatically updated, but you can also change texture coordinates if necessary. A WYSIWYG editor which is capable of doing vertex changes is currently being developed by Niko, and another one by WhiteNoise. See the project forum and Niko's blog for info on these. But you can do it on your own, too, of course.
Post Reply