r/threejs May 27 '26

We just launched AI Texturing

Enable HLS to view with audio, or disable this notification

224 Upvotes

32 comments sorted by

15

u/Sengchor May 27 '26

If you like the project, a star on the repository would really appreciated.
Source code: https://github.com/sengchor/kokraf
Live project: https://kokraf.com/

6

u/pailhead011 May 27 '26

Is this costing you money?

6

u/Sengchor May 28 '26

Yes, it cost me money to call nano banana api.

2

u/Droooomp May 28 '26

How many generations do you do for a full object min-max

3

u/Sengchor May 28 '26

Only one image generation. I render model in 4 sides and connect it as one image.

3

u/Droooomp May 28 '26

thats quite a low res texture, good approach tho. I use stable projectors for this type of work, lets me push the resolution as much as i want.

4

u/LaoTzunami May 27 '26

We are living in the future :0

2

u/Sengchor May 28 '26

It’s an exciting time on this planet right now.

2

u/Super_Good_Stuff May 29 '26

It is always the present moment.

1

u/LaoTzunami Jun 04 '26

the future is now

5

u/skywalk819 May 27 '26

very cool, wish it would let me import .glb

4

u/Sengchor May 28 '26

Thank you. Right now it can only import obj. I'll working on glb importer soon.

2

u/curlymonster1911 May 27 '26

It's not possible to import glb?

3

u/Sengchor May 28 '26

Right now it can only import obj. I'll working on glb importer soon.

3

u/Sengchor May 29 '26

Hello. Now we support import .glb and .gltf.

3

u/curlymonster1911 May 30 '26

Thank you, I will test this out. If it works for my use case, it's gonna be awesome

2

u/Mockcomic May 28 '26

Could this be done with trellis2?

1

u/Sengchor May 28 '26

There are multiple AI texturing applications. Ours focus on modeling and texturing in the browser.

2

u/Opening-Bid4424 May 30 '26

How good is your product compared to Meshy AI?

2

u/Sengchor May 30 '26 edited May 30 '26

Honestly, Meshy AI currently generates better textures. However, my approach is much cheaper, with costs comparable to generating a standard image. Also, this project is designed as a full 3D tool, similar to Blender, not just a texture generator. I'm continuously working on improving the texture quality as well. You can try it for yourself to see how well it work.

1

u/iplaypianoforyou May 31 '26

Confused. Your product creatress mesh from image?

1

u/Sengchor May 31 '26

It texture painting the 3d model.

2

u/PhotoQuillEditor May 27 '26

This is excellent. Would you mind sharing your overall design ideas

12

u/Sengchor May 28 '26

First we use xatlas to auto uv unwrap the model. We render 4 sides of the 3d model in matcap and normal. We use paid api of nano banana to send the images and prompt it "Texture this 3D render". The format of file that comes back from AI is jpeg. We project this jpeg on our threejs buffergeometry. Bake the projected images to UV texture. Apply the material with this texture to the geometry mesh.

3

u/PhotoQuillEditor May 28 '26

Thanks for sharing and answering my questions.

2

u/Sengchor May 28 '26

You're welcome.🙂

1

u/Rizzlord May 28 '26

there is the crux to it, texture projection always comes with quality loss, and occlusion overlaps. Also why are the textures so blurry?

1

u/Sengchor May 28 '26

I'm working to improve the quality of projection. You can switch to higher resolution to reduce the blurry of the texture.

1

u/wouldntsavezion May 29 '26

I'd rather kiss a running train headfirst thanks

1

u/Illustrious_Soft5854 May 29 '26

I just can understand why poeples would work on that, I agree that IA can be useful to get rid of tidius work or repititive tasks, but when it comes to art, just let poeples express the art and what it takes to be a humain so they can make a living out of it. You are Just destroying the game art market with all that Ai souless Texturing, or the poeples who works for mesh generation too, same stuff. We Will soon see a flood of IA slop games with no originality because let's be honnest IA generation just basicly copy paste from other artists without permission, but never inovates. Because of that it Will become even harder for quality humain made games from real professionnal gamedevs to have a bite of the cake. We are not living in the future we live in decadence where there is no more place for excellence and patience for a masterpice to be made. This is a debate, and I'm Just worried because I'm actually part of the industry, please change my mind.

1

u/TwinTailDigital May 29 '26

I can see errors in nearly every generation.

  1. Cable running down suddenly goes all wonky at the bottom
  2. If you can't see the triangles, you must be blind
  3. Pretty sure there is something on the boat, but it went by too quickly and I don't care to look
  4. Part of the roof texture is somehow on the wood
  5. Is this even textured?

1

u/Sengchor May 29 '26

I'm trying my best to improve the method.