Amazing. Ive been a dev on 2d games for years and never used 3d models to create a sprite. Love this. Using a few more tweaks I created I have a great cartoon style 2d from full 3d thanks to you. Thank you.
@@IVANEZEDITIONS I know how with blender but blender won't accept the .mat files for materials from unity. I'm trying to avoid retexturing all the models and prefab I've been working with.
Okay, now for those who have black or white images of emptiness instead of 2D images. In my case, I was helped by increasing the 3D object (which we are capturing). Also try to set the default value on the camera. One of the possible reasons (if you import your 3D mesh from blender) is the rotation of the mesh. Try rotating your model under the camera and try, try and try again!
My need is to use this to put a snapshot of a 3d large amount of objects into a png and put that on a plane that I can rotate to my desired angle in the 3d project. The process goal here is to remove as many objects as possible.
I recently started learning blender to make models for a unity 2d game I plan to make. Thank you very much for taking the time to make this video, it will help so much.
That's awesome! I hope this video helps, but if you plan to use Unity for your 2D game (instead of something like SpriteKit), then you don't need to do what I do in the video because you most likely won't need to export 2D images of your 3D models for another engine/framework
Nice video bro, I have a similar question than the video tittle but not exactly the same. Do you know how I can made a 3D character looks like a 2D character? Is exist any post-process filter or something? That's because my character animations are so complicated to make sprites, like gun aiming to multiple angles while the player is walking/running/crouching and stuff. But I want to make it looks like 2D sprites because 3D looks strange in my scene.
Hi is there any updated method to do this or it's still the same? Also, can you specify what size you want for your model? Like what pixel size can be set? Example 512x512? Can you also capture just a single frame? Can you use it for taking pictures of non-animated 3D objects?
If you wanted to do an isometric 2D game, would just need to change the Black/White camera rotations in your script and then match them with the Scene camera?
That’s correct! You could use any angle to generate 2D sprites here, so as long as you’re consistent with your angles you should have compatible isometric sprites/animations from 3D models
I wonder if there's a way to import a 3D model to a game with the 2D renderer pipeline? I want a 3D model that dynamically moves in a 2D game, but I think because of the pipeline's lighting settings, all 3D objects appear as pure white...
You can, but you will have to go into the AnimationToPNG script and change the rotation from Vector3(90, 0, 0) to something like (0, 0, 0) for the white and black game objects (look at line 140). Before doing it in the script, you can figure out which rotation will be right for you by adjusting the main camera in your scene to find out where you want your camera to be positionally and rotationally, and where you want your game objects to be relative to the camera in your scene (and then ensuring that the script has the same position and rotation as the camera's in your scene)
I tested it out and it works great, but I have some questions. What is the best method of converting the animation to PNGs without the light influencing the model itself using your project?
That’s awesome! Hope this ends up helping. And you can remove/disable the light source object, although that might end up making the model look dark in the PNGs. You could instead try out different light source settings to give your model more consistency with its color for your game, but admittedly my process for manipulating light in this context is more of an art than a science (I usually change rotational of the directional light, you can also disable shadows and change the light color from being the default yellow to white to reduce influence)
Marko Mrkonjić I usually get that if I haven’t set the camera properties correctly after attaching the script to the game object (I.e. the camera doesn’t match exactly what the camera in your scene is set to). Are you capturing a game object from top down or another perspective?
Always remember to repent of your sins (sin is transgression of YAHUAH’S LAW: Genesis, Exodus, Leviticus, Numbers, & Deuteronomy) And Have Belief On YAHUSHA HAMASHYACH. HE Died and Rose Again On The Third Day So that you can be forgiven of your sins! HE Loves you! Come to HIM!🙂🙂🙂🙂🙂🙂🙂🙂
I want to use this with 2D but the output pictures are just black, how to fix this? My camera rotation set to (0,0,0) and the black and white cameras also set to (0,0,0)
Amazing. Ive been a dev on 2d games for years and never used 3d models to create a sprite. Love this. Using a few more tweaks I created I have a great cartoon style 2d from full 3d thanks to you. Thank you.
That’s awesome to know! I’m glad this was helpful. I’m also still finding myself considering new art styles with these tools
I've set display size to 64x64, now I can make pixel art animations with ease! Thanks for this tool, it really helped a lot!
Glad to hear it helped!
HI, i've gotten all the png in black color... do you Know what can be the issue? thx u so much!!
I keep getting all black PNGs as well and would love to know a fix for this
@@Bacatorious Do it with blender or Maya... it is the best and easy way to do this!! Best regards!!
@@IVANEZEDITIONS I know how with blender but blender won't accept the .mat files for materials from unity. I'm trying to avoid retexturing all the models and prefab I've been working with.
@@Bacatorious i'm not sure ... but blender has addons a lot... maybe one can help you with that... jast aks to google :-)
Okay, now for those who have black or white images of emptiness instead of 2D images. In my case, I was helped by increasing the 3D object (which we are capturing). Also try to set the default value on the camera. One of the possible reasons (if you import your 3D mesh from blender) is the rotation of the mesh. Try rotating your model under the camera and try, try and try again!
I only seem to get black images. Is there anything I could try to fix it?
My need is to use this to put a snapshot of a 3d large amount of objects into a png and put that on a plane that I can rotate to my desired angle in the 3d project. The process goal here is to remove as many objects as possible.
this is cool would be nice to do this programmatically without the need for unity so it can be fully automated
I recently started learning blender to make models for a unity 2d game I plan to make. Thank you very much for taking the time to make this video, it will help so much.
That's awesome! I hope this video helps, but if you plan to use Unity for your 2D game (instead of something like SpriteKit), then you don't need to do what I do in the video because you most likely won't need to export 2D images of your 3D models for another engine/framework
Nice video bro, I have a similar question than the video tittle but not exactly the same. Do you know how I can made a 3D character looks like a 2D character? Is exist any post-process filter or something? That's because my character animations are so complicated to make sprites, like gun aiming to multiple angles while the player is walking/running/crouching and stuff. But I want to make it looks like 2D sprites because 3D looks strange in my scene.
Hi is there any updated method to do this or it's still the same? Also, can you specify what size you want for your model? Like what pixel size can be set? Example 512x512? Can you also capture just a single frame? Can you use it for taking pictures of non-animated 3D objects?
cheers for this script big help to my project i had to change the vector3 rotation as im making a side scroller but good on you, thank you.
If you wanted to do an isometric 2D game, would just need to change the Black/White camera rotations in your script and then match them with the Scene camera?
That’s correct! You could use any angle to generate 2D sprites here, so as long as you’re consistent with your angles you should have compatible isometric sprites/animations from 3D models
I wonder if there's a way to import a 3D model to a game with the 2D renderer pipeline? I want a 3D model that dynamically moves in a 2D game, but I think because of the pipeline's lighting settings, all 3D objects appear as pure white...
I never knew that this was a thing
Thanks, btw
Can I change it so it captures the PNGs in a platformer position? It keeps going to the top.
You can, but you will have to go into the AnimationToPNG script and change the rotation from Vector3(90, 0, 0) to something like (0, 0, 0) for the white and black game objects (look at line 140). Before doing it in the script, you can figure out which rotation will be right for you by adjusting the main camera in your scene to find out where you want your camera to be positionally and rotationally, and where you want your game objects to be relative to the camera in your scene (and then ensuring that the script has the same position and rotation as the camera's in your scene)
Great video! I am glad you made such a tool! I am going to test it out!
I tested it out and it works great, but I have some questions. What is the best method of converting the animation to PNGs without the light influencing the model itself using your project?
That’s awesome! Hope this ends up helping. And you can remove/disable the light source object, although that might end up making the model look dark in the PNGs. You could instead try out different light source settings to give your model more consistency with its color for your game, but admittedly my process for manipulating light in this context is more of an art than a science (I usually change rotational of the directional light, you can also disable shadows and change the light color from being the default yellow to white to reduce influence)
Thanks for the tips! Much appreciated!
you r a god man
Tysm! Just what I needed. You should have more subscribers!
Woo! I’m glad this helped :)
Thank you so much for this. Priceless!!
Glad it helped!!
Mate i got black pngs with no sprites on them HALP
Marko Mrkonjić I usually get that if I haven’t set the camera properties correctly after attaching the script to the game object (I.e. the camera doesn’t match exactly what the camera in your scene is set to). Are you capturing a game object from top down or another perspective?
@@gaurgo solved the problem but TNX anyway :D yep it was camer bytw
Marko Mrkonjić ouch haha, glad you got it!
Cool!
thank you :)
No problem! 😃
Thanx this is best plugin thanx you bro
Definitely!
AMAHHHHHZING!
Always remember to repent of your sins (sin is transgression of YAHUAH’S LAW: Genesis, Exodus, Leviticus, Numbers, & Deuteronomy) And Have Belief On YAHUSHA HAMASHYACH. HE Died and Rose Again On The Third Day So that you can be forgiven of your sins!
HE Loves you! Come to HIM!🙂🙂🙂🙂🙂🙂🙂🙂
I want to use this with 2D but the output pictures are just black, how to fix this?
My camera rotation set to (0,0,0) and the black and white cameras also set to (0,0,0)