irrEdit feature request

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
coldo
Posts: 8
Joined: Wed Dec 06, 2006 9:38 pm

irrEdit feature request

Post by coldo »

I would like to see that objects can be aligned to user-defined grid.
Not just positions, but also corners (pos + width, pos + height,...)
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

uhh like what gui?


make a duel for loop for a grid

Code: Select all

void Guice::drawgrid()
{
    if (grid == true)
    {
		s32 GresX = ResX / GridSize;
		s32 GresY = ResY / GridSize;

        for ( s32 x = 0; x < GresX; x++ )
        {
			driver->draw2DRectangle(SColor(255,90,90,90),rect<s32>(x*GridSize-1,0,x*GridSize,ResY));
//		driver->draw2DLine(position2d<s32>(x*GridSize-1,0), position2d<s32>(x*GridSize,ResY),SColor(255,90,90,90));
        }

		for ( s32 y = 0; y < GresY; y++ )
        {
        	driver->draw2DRectangle(SColor(255,90,90,90),rect<s32>(0,y*GridSize-1,ResX,y*GridSize));
//		driver->draw2DLine(position2d<s32>(0,y*GridSize-1), position2d<s32>(ResX,y*GridSize),SColor(255,90,90,90));
        }
    }
}
Then run it using

drawgrid();

after you draw the "scene" and before the gui.

ResX and ResY is equal to the screen resolution.

GridSize is the amount of spacing between lines if 10x10 GridSize equals 10.


To position gui on alignment simply set it's coordinates to the position of desired spacing... 10 20 30.

There is a lot of talk about gui alignment and resolution\scaling read more forum. try howto and snippets.. or the help section.
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

I think coldo was talking about irrEdit.
Thanks for posintg, good idea. If you can't wait, you can do something like that using the built in scripting language, altough you won't be able to draw the grid.
dmitrii
Posts: 27
Joined: Wed Aug 30, 2006 11:52 am
Location: Kiev, Ukraine
Contact:

Post by dmitrii »

need a plugin system
some features like copy-past all type of obects and manage UserData

and also need IrrEdit source code :))
Image
Image
Only Opera Image
JPulham
Posts: 320
Joined: Sat Nov 19, 2005 12:06 pm

Post by JPulham »

The user data and a 'UserData scene node' callback needs completion.
That way collision and physics can be applied easily to .irr files.

Maybe a 'relative path name' should be implemented as well.
i.e. texture path or having all files in ../content etc
pushpork
drarem
Posts: 81
Joined: Mon Mar 06, 2006 4:40 am
Contact:

Post by drarem »

- what coldo said.. a snap-to type function where you can 'snap' the meshes to each other and perhaps a grid too.

Also, somehow being able to select and transform more than just one object at a time.

Thanks for your consideration.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Already listed on my TODO list :)
Post Reply