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
Creating tiles
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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 ). 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.
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 ). 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.