Post anything here that does not fall into the other topic categories.

upside down assets lol.

upside down assets lol.

Postby lordalmighty1 » 20 Nov 2015, 11:41

so, I have got some more assets from unity store... they look ok but every last 1 out of the couple of hundred I just got are upsidedown in skyline lol.. is there any way to turn them all the right way up please like in a big group to save me time and effort. as it is now the only way to do it is 1 at a time, and make a preset after turning them the right way up.. not the best tbh :(.. lol.
User avatar
lordalmighty1
Skyline Moderator
Skyline Moderator
 
Posts: 442
Joined: 02 Jan 2014, 12:13
Location: uk
Skill: Great creative
Skill: Level Designer

Re: upside down assets lol.

Postby SolarPortal » 20 Nov 2015, 12:48

I don't think there is a batch rotate method like we have made for the scaling of meshes. This can be done and shouldn't take too much work.

My process would be: import into mesh editor inside skyline, rotate and save, then make a preset. :) repeat.. but it will take a bit of work.

I will add this request to the main list :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: upside down assets lol.

Postby Shando » 20 Nov 2015, 13:03

There must be a way to do this using MeshMagick's command line:

Code: Select all
MeshMagick.exe transform -rotate=0/0/0/0 model.mesh


where "rotate=angle/x/y/z"

Regards

Shando

PS: I'm not great at Command Line stuff, but using something like this command in a bat file should work:

Code: Select all
FOR /F ["options"] %variable IN (filenameset) DO command [command-parameters]


Check this http://www.robvanderwoude.com/ntfor.php and this http://ss64.com/nt/forfiles.html for more info
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: upside down assets lol.

Postby lordalmighty1 » 20 Nov 2015, 13:26

yeah, I have been doing that solar m8 :( 1 folder done 12 togo though lol.. so slow :(

at least I can drag the model once rotated from the hierarchy to the asset library to make a preset quicker :) nice feature that is lol.. saves me some time at least :).


sorry shando, thanks for trying to help but all that is beyond my skills and way over my head lol.
User avatar
lordalmighty1
Skyline Moderator
Skyline Moderator
 
Posts: 442
Joined: 02 Jan 2014, 12:13
Location: uk
Skill: Great creative
Skill: Level Designer

Re: upside down assets lol.

Postby SolarPortal » 20 Nov 2015, 13:49

It would take some time! ;)

The batch file is a good idea. I will write one up for la1 today :) Thanks for the input Shando. :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: upside down assets lol.

Postby Shando » 20 Nov 2015, 14:09

Hi Again,

OK, so just carried out a simple test using this code in a ".bat" file:

Code: Select all
forfiles /p e:\testdir /m *.mesh /c "cmd /c meshmagick.exe transform -rotate=180/1/0/0 @file"


and it seemed to work :)

To create the ".bat" file, open a text editor, paste the above code into a new file and save with a ".bat" extension.

Just make sure that you place the ".bat" file, all the required ".mesh" files and the "MeshMagick.exe" and "OgreMain.dll" files in the same folder, then simply double-click the ".bat" file.

You will also need to change the folder location ("e:\testdir") in the above code.

As I said before, the rotate command is angle/x/y/z with x, y & z being the axes. I would suggest copying a few files and testing with those.

HTH

Regards

Shando

PS: I've attached my ".bat" file
Attachments
test.zip
(199 Bytes) Downloaded 430 times
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: upside down assets lol.

Postby SolarPortal » 20 Nov 2015, 14:12

Nice one Shando :D This will save la1 and me some time. thanks!
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: upside down assets lol.

Postby Shando » 20 Nov 2015, 14:14

No worries ;)

Just for completeness, the base code was from Stack Overflow:

http://stackoverflow.com/questions/14237548/batch-script-run-command-on-each-file-in-directory?rq=1
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: upside down assets lol.

Postby lordalmighty1 » 20 Nov 2015, 14:17

wow cool thanks solar m8 :D.. managed to grind through 3 folders out of 13 so far lol. would be awesome of you to get it out and working :)
would it take long?. been at it myself for a hour 1/2 or so now lol, though it is speeding up alittle. I don't really want to spend so much time just rotating/presetting them all haha. sorry m8!.


EDIT:- just read the above, seems I'm a slow typer lol :S..
thanks shando m8, I will attempt to do this :).
User avatar
lordalmighty1
Skyline Moderator
Skyline Moderator
 
Posts: 442
Joined: 02 Jan 2014, 12:13
Location: uk
Skill: Great creative
Skill: Level Designer


Return to Misc

Who is online

Users browsing this forum: No registered users and 6 guests

cron