Hello, I wonder if there’s any way to generate an avatar from a photo? I have a client that wants this for an app I’m designing for him, I looked into it and found Avatar SDK but it’s extremely expensive
So, is there any alternatives, or even a way to implement this,
In Unity? My client wants something that can generate an avatar from a selfie at runtime, like this,
But this asset doesn’t work at runtime, apparently. My client is willing to buy an asset or something, if there is any more reasonably priced alternatives.
PS I am not being hired to design this, I am hired to design the app, the client said we could get a plugin for this. Just clarifying, I’m not trying to cheat on my job XD
I’m aware of how to do most of these… It’s an issue of cropping down the photo, setting up the UV maps(not my forte). But, I suppose I could learn how and ask for a bit extra from my client
Oh well that’s a whole picture cropping / rotating editor like what’s in the cel phone photo app itself.
Once you go down the crazy deep rabbit hole of making custom interactive graphic editing UI, get out your billable hours timesheet and sit down to talk with your client about how much he can afford.
Good idea, and hey, maybe I can make a plugin to sell on the side for much cheaper that 200$ a month like that ripoff Avatar SDK.
I actually tested the free version out a bit and my first reaction was “Huh… I could probably make this if I took the time.” XD, thanks for the encouragement!
other options:
if you can get any of those open source avatar from photo scripts to run on a server,
you could easily post (webrequest) your photo there and receive results back.
but that can get complicated or expensive if you have lots of traffic…
might get something done with these too (to detect face area from image)
I’m not looking for fancy facial movements, just the avatar generation. It’s a VR app where you generate an avatar and have meetings, for mobile, using Google Cardboard. But, thanks, I will look into those plugins as well, maybe I can create an automatic UV mapper and avoid having to create a bunch of UV maps in Blender lol.
Oh you could have done it by making a new sprite out of your original image and cropping by retrieving four points of a square
——
I am pixel index 476, 10 lines down from pixel 476 is pixel index 476 + size.x * 10, the other two points are these first two points + or - some number of pixels like idk 4x10 box 476 + 4 and 476 + (size.x * 10) + 4
^^
If the pixel they place a vertical is pretty much the same concept. Index 6 and index 12 and index 6 + X and index 12 + X
now make the sprite of the number of length between 6X and 12X
I am doing something with pixels right now and have just found the need to use Sprite.Create and in Sprite.Create method you specify (texture2D, rect and pivot). The rect you specify is in fact the section of the texture that is visible ^^
so my other method altho works is probably too elaborate when the sprite create function includes the functionality of cropping the texture 2D
I reordered the pixels x and y into a vector2 list so that I could work with them horizontally, and update the texture without iterating every pixel. The sprite is the size of my grid, x and y and the viewing rect of that sprite begins at 0,0. So it’s not quite the full functionality of cropping. So the original method may be the only way. The function is 2 half’s, one texture create and hold the re ordered list variables and all relevant info. Then the modify texture function. Which just changes one pixel from int coordinate at a time.
Since the Sprite.Create needs a new Rect(0,0,SizeX,SizeY) if you don’t want to change any pixel on the texture 2D you can IN THEORY crop the top left corner using the rect origin point, rotate, and crop again. So you have cropped a box. How to go about making a UI to represent and accurately perform this is another thing, and I have no clue about that right now.
Well, it essentially would just look like James Bond, you know with the face stretched over a 3D model. I only gave up because my client changed his mind haha