{Instructional}Getting .Models into LoG

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

{Instructional}Getting .Models into LoG

Post by msyblade »

I saw a thread nearby with this question, and it occured to me that it is a fairly common one. Getting new models in LoG is not difficult, but there are a few things you need to know about it. I've only used blender, but 3dmax does fine for many of our friends here.

1. These tutorials were invaluable to me while learning blender. The guy is talented, descriptive, and he has an overlay that shows every command input for that quick trick he just did that you WANT TO KNOW HOW TO DO! I learned how to Rig a model for animation in half a night with this guy.
http://www.youtube.com/playlist?list=PL13FCE5A9EF9026CE
Edit: Remma reminded me that skuggasvein not only has a blender tutorial, but one where he imports an LoG object, manipulates it, then puts it back in LoG. You WANT to see this!
viewtopic.php?f=14&t=4043

And 2. John Wordsworth is a demi-god. He made for us, the ultimate super nifty, handy dandy, Grimrock Model Toolkit (GMT). You will need this for converting your files, and to fix a couple of common errors before exporting.
viewtopic.php?f=14&t=3325&hilit=Grimrock+Model+Toolkit

Blender: Always finalize any model by switching from "object" mode to "Edit" mode,then select the "Mesh" menu near the bottom, find "Vertices" and select "Remove doubles".Generally try to export as an .obj file, they are quite compatible with GMT's "Assimp importer", which will keep all of your nodes intact. do not worry about proper scaling here, GMT handles it superbly. In fact, you may find it a useful strategy to balloon the model in blender for detail work, and scale it in GMT, where you can get frames of reference for the object.

GMT: Here it is simple, but there are a few things you need to make sure and do here before exporting.
This is where you will apply your textures also. If you need multiple textures, select the proper node in the right hand drop down menu.
Texturing tips
1. Top Menu bar "Tools", then Find/Replace material. If there are multiple nodes, the order they appear in will match the nodes dropdown menu starting at node 3. meaning 1st, second, third in find/replace; would equal 3,4,5 in nodes menu. The selected node will highlight in red to help you out. Also, goto "settings" here under "tools" to point GMT to your Asset Pack, and your custom textures folder, then "reload materials library". This will populate your available textures menu.
Edit: For custom textures, you must make an LoG object script in your "materials.lua" file for GMT to find it and populate with it. ALSO, very important: Your texture must be in the correct ".dds" format, but be referred to as ".tga" in the materials.lua. So while you are using "lampshade.dds" for the texture, in the lua definition you will refer to it as "lampshade.tga". No time to explain or make sense of it, just accept it and follow suit. It will work!

Translating/Scaling
On the bottom right are input boxes for moving, rotating, and changing the size of the model. You will usually want to select Node 2:Main Object if using the assimp importer. You will know because the entire model will highlight red. Translations are done by a scale of 3= One Tile in the dungeon. The 3 boxes represent the Axis's (Axi?) in 3d space. So if you input a 1 in the middle box (Y axis) and click translate, your object will move a third of a square up. -1 and it will move down. You need these if you need to say, rotate a throne and push it back against the wall. Scaling is done as 1 = 100%, not of the original size, but of the current size. So no matter how much youve manipulated it, .5 will always be half the current size, and 2 will always be double current size.

Random tips (More to add on everyones suggestions!)
-You can goto the "Scene" tab and see your object in a square dungeon room.
-You can use the node transform dialogue to stretch/compress your object from any angle. Although I always forget the exact process, Ive done it 4 or 5 times and still just go in and get my hands dirty till i re-figure it out. (For instance, wanting to make that throne a bit wider.)


Tidying up
Once you have your object textured, and positioned, you need to remember to do these things every time, before exporting.

-"Model" menu: "Recalculate Normals" and "Recalculate Tangents". Often after exporting, when you look at your object in game, the vertices are completely wrong. The object looks like a massive warphole made of miscolered spikes. You need to go back into GMT and recalculate the Norms and Tangents, then it will be fine.

-Saving. Another common issue is that when "saving as", it will not save as a .model file, even if the correct type is selected. For this reason I always manually type the .model into the filename. Meaning, instead of clicking "Save as" and naming it Throne, then clicking save, I name it Throne.model, then save.

Ill add to this as more things occur to me, and please, any and all suggestions/tips are welcome, Ill add them to the main post!

Hope it's helpful to some of you guys!
Last edited by msyblade on Fri Jul 19, 2013 5:30 am, edited 3 times in total.
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Ryeath_Greystalk
Posts: 366
Joined: Tue Jan 15, 2013 3:26 am
Location: Oregon

Re: {Instructional}Getting .Models into LoG

Post by Ryeath_Greystalk »

Awesome post. I sense a spot in the superthread for this.

For someone with zero experience with modeling (i.e. me) should I just download blender and start playing with or is there a preferred path to follow, such as learn on particular skill fitst before another?
User avatar
Komag
Posts: 3656
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: {Instructional}Getting .Models into LoG

Post by Komag »

msyblade wrote:John Wordsworth is a demi-god
quoted for super-truth :D

(superthreaded!)
Finished Dungeons - complete mods to play
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: {Instructional}Getting .Models into LoG

Post by JohnWordsworth »

*Blushes* :oops: Very kind. Although, everything here is the product of the great community as a whole - so much friendliness and energy is key to all of the wonderful community creations here.

Still haven't got FBX import working though... I'm hoping I'll have my own animated models to import for my sci-fi mod soon which will give me the kick I need to finish it!

I know I said this on Skype, but great post and great idea Msyblade. We forget that not everyone has been importing 3D models into Grimrock for the last 6 months and there is actually a bit of a learning curve to getting it right the first time.
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
Conchron
Posts: 137
Joined: Mon Dec 31, 2012 1:20 am
Location: Sweden

Re: {Instructional}Getting .Models into LoG

Post by Conchron »

<3 <3 <3 I've needed this for a long time. It's great to find it all in one place. :mrgreen:
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: {Instructional}Getting .Models into LoG

Post by msyblade »

@Ryeath: My advice would be to download blender and play with it. It is a massive program (control-wise), and likely will make NO sense to you, initially. I was completely at a loss when i first booted it up. But after watching the first 3 tutorials, with blender open in the background (literally watch 15 seconds of Vid, pause, alt/tab, play with blender, alt/tab, rewind the video 15 seconds, cause I obviously missed something), and before long I caught on and was messing up models by the dozens :)
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
User avatar
Isaac
Posts: 3182
Joined: Fri Mar 02, 2012 10:02 pm

Re: {Instructional}Getting .Models into LoG

Post by Isaac »

Ryeath_Greystalk wrote:Awesome post. I sense a spot in the superthread for this.

For someone with zero experience with modeling (i.e. me) should I just download blender and start playing with or is there a preferred path to follow, such as learn on particular skill fitst before another?
Get Blender and start learning it ~it's a fantastic application; includes a video compositor and it's own game engine. It can certainly be used to create original game models, but also for UI & slideshow scenes for one's mods.

It might be a good idea to wait out the bugs in Blender 2.67b, and perhaps install 2.66

[Or there is the 2.49b version that is the modder's choice for games like FO3 & Oblivion]

I use them both, but prefer 2.49b for all but a few of the new tools in 2.6x.

Most would recommend the 2.6x versions.

**However... the Cycles renderer in 2.6x is becoming a very compelling feature.
User avatar
Mal85
Posts: 103
Joined: Fri Nov 16, 2012 10:56 am

Re: {Instructional}Getting .Models into LoG

Post by Mal85 »

Yup super thread material here, very nice. Can't even describe how useful this would have been to me a few months ago when I was trying to figure all this out through trial and error. Thumbs up!
User avatar
remma
Posts: 36
Joined: Mon Apr 15, 2013 11:03 pm
Location: Newcastle upon Tyne, England

Re: {Instructional}Getting .Models into LoG

Post by remma »

Awesome post, many thanks!

Any chance of one for the anim editor?
Ryeath_Greystalk
Posts: 366
Joined: Tue Jan 15, 2013 3:26 am
Location: Oregon

Re: {Instructional}Getting .Models into LoG

Post by Ryeath_Greystalk »

So far I've learned about the basic moves (rotate, scale and translate) and extrude. I've managed to make a space age looking chair out of a cube.

Image
Post Reply