Anybody familiar with how unity textures work
Hey, I am an iOS developer. I had an idea for a kind of MMO companion app for a game for a bit of fun, but my limited knowledge of how 3d files is hindering me. So I wanted to make an iOS app that would show a live 3d render of your game character. So i would call an API and get JSON links to say several 3d files representing gear you are wearing and then somehow I would render the char and gear onto the screen and you can just pan it and stuff, maybe then id extend it to a wardrobe kinda thing. So I guess what I am saying is how do you like put all the different files together? If thats correct. Any insight would be great. Thanks
About this post
- Posted
- Archived
- Score
- 0 · 100% up
- Kind
- Text
- ID
- bn0dnp
11 comments
If you're on iOS, you could use SceneKit to do this (if you want a vastly lighter-weight solution compared to Unity). You can import models and textures into a SCNNode and render it that way. The SCNNode handles "combining" the different parts. There are plenty of SceneKit tutorials around that would help.
Ah very nice, this sounds great, thanks
Because I can do that as well
Ah well I have like 7 years iOS development experience so hopefully I’ll be able to figure it out :D
Can you blame me? Brotha needs to eat!
This sounds like a cool idea, however your question of "how do files work" is a little vague. Here's what I would suggest.
Pop open unity and find some free 3D character asset. Pick that apart. Look at how it works. Once you have some.kind of basic idea, YouTube some tutorials on importing from Blender. You aren't trying to actually do this, but you'll probably want to know how a solid model gets rigged and textured. UV Unwrapping is a part of that process that you'll want to know about as well.
You may have some issues actually sourcing the models to display unless the game in question makes them easily available through some kind of API.
Sorry what I meant was like each piece of armour has it’s own file and a character model with like settings for how someone laid it out, like putting all that together
Im a 3D artist. If you are willing to pay I can help you with this
In what way would I need help from a 3d artist? I have all the model files already, I was just unsure how they fit together to display a character?
Hmm... So do you have a base (naked) character model then equipment models i.e. hats? If so, you'll probably want to look into rigging. It's mostly for animation but in this case you'll want to attach the models to specific 'bones' so for a hat it would be a point at the top of the head. As for reading from files, there are plenty of tutorials for that. Have a Google of using the Unity resources folder and accessing items by filename from that folder.
If I understand what you’re asking correctly, you be better off following one of the free “starting a 3D game” unity tutorials.
Textures are usually a component of a material, and that material is applied to a mesh, and then that mesh is rendered.
It’s a bit more complicated than that because there are also shaders, and all the various components of the shaders (albedo, normal maps, emission, etc) but for your application you probably only need to understand what materials generally are, and how they’re applied to meshes.