Question regarding Tile UV selection / building plugins.

9 views
Skip to first unread message

Matt Boudreaux

unread,
Feb 25, 2012, 9:08:46 PM2/25/12
to Tiled Map Editor
Hey all,

I was checking out the editor and I noticed there doesn't seem to be a
way to select the UVs for a tile within a tileset. This is
particularly a bit annoying when dealing with objects where you want
to have multiple enemies, items, of various sizes all in the same
texture. Adding a texture source rect to each tile definition seems
simple enough (currently it's seems like its just implied), but I'm a
bit unsure how to load the qtiled project into the QT IDE. Is there
some type of "project" file or such? Or is this feature already
available and I'm just being a total noob?

Stefan Beller

unread,
Feb 26, 2012, 3:57:08 AM2/26/12
to mape...@googlegroups.com, xmattpro...@gmail.com
Hi Matt,

in QTCreator you can open the *.pro files as projects.

What are UVs? (Maybe I am missing some shortcut here)

Regards

2012/2/26 Matt Boudreaux <xmattpro...@gmail.com>:

> --
> Tiled Map Editor mailing list
> mape...@googlegroups.com
> http://groups.google.com/group/mapeditor

Matt Boudreaux

unread,
Feb 26, 2012, 11:38:35 AM2/26/12
to Tiled Map Editor
Ah, I tried loading those files but it's complaining about not finding
a valid QT version. Now that I think about it, I only grabbed the IDE
and not the SDK - which would totally cause that. I'll do a full
install and try again.

UVs are just another name for texture coordinates. So, if I had 2
images in a single texture (one that was a quarter of the texture, the
other was half the size of the texture), the UVs would be (0, 0, .25, .
25) and (.50, .50, 1.0, 1.0) respectively. Right now the editor
assumes that all tiles are uniform within a tileset image. I'd like to
be able to change that.

On Feb 26, 2:57 am, Stefan Beller <stefanbel...@googlemail.com> wrote:
> Hi Matt,
>
> in QTCreator you can open the *.pro files as projects.
>
> What are UVs? (Maybe I am missing some shortcut here)
>
> Regards
>
> 2012/2/26 Matt Boudreaux <xmattprogramm...@gmail.com>:

Thorbjørn Lindeijer

unread,
Feb 26, 2012, 12:03:45 PM2/26/12
to mape...@googlegroups.com
On Sun, Feb 26, 2012 at 17:38, Matt Boudreaux
<xmattpro...@gmail.com> wrote:
> Ah, I tried loading those files but it's complaining about not finding
> a valid QT version. Now that I think about it, I only grabbed the IDE
> and not the SDK - which would totally cause that. I'll do a full
> install and try again.
>
> UVs are just another name for texture coordinates. So, if I had 2
> images in a single texture (one that was a quarter of the texture, the
> other was half the size of the texture), the UVs would be (0, 0, .25, .
> 25) and (.50, .50, 1.0, 1.0) respectively. Right now the editor
> assumes that all tiles are uniform within a tileset image. I'd like to
> be able to change that.

This is currently not supported, but support for it would be welcome of course.

One plan was to support texture Atlases, which could define where to
find each tile on the tileset image. Of course some unique mapping
would be nice so that adding/removing textures from the atlas doesn't
mess up the references to the others. It is also planned to support
tilesets with individual images of potentially different sizes, which
would be useful for people who don't pack things into Atlases or only
do it as a deployment step.

Best regards,
Bjørn

Matt Boudreaux

unread,
Feb 28, 2012, 3:47:33 PM2/28/12
to Tiled Map Editor
Yea, correct. This came out of me needing to use an atlas that has
various tiles of whatever size all within a single large texture.

My thinking is keeping the same interface, but each time a tile is
selected, a rect highlight appears on the texture (like it currently
functions), but is resizable/moveable. This means tiles now have to
store their X,Y, Height,Width offsets within the texture (and write
that out to the TMX format), but shouldn't be overtly nasty or
anything. Also dynamically adding new tiles to a tileset should be
simple as well (that may already be supported, I haven't played with
the tool too terribly much yet).

- Matt

On Feb 26, 11:03 am, Thorbjørn Lindeijer <thorbj...@lindeijer.nl>
wrote:
> On Sun, Feb 26, 2012 at 17:38, Matt Boudreaux
>
Reply all
Reply to author
Forward
0 new messages