decal projection

Hey Guys, just working on a decal baking script that lets you write an image into a meshes textured image, so that LSCM distortion and seams arnt a problem as they would be if you tried to do the same in an image editor.

Heres a test, still have to support baking multiple decals at once, and onto multiple textures.

Of course UV layers would be nice for this, but for formats that dont support it this is still usefull.

– edited by administrator (Timothy), image broke layout so I turned it into an attachment

Attachments


This is looking very good Cambo :cool:
Looking forward to test it , thanks in advanced :wink:

Greetings Patrick

Excellent idea!

looks great… here’s an idea: why not go in reverse also? then you could take a ‘snapshot’ of a noticable seam, edit it (clone, rubber stamp, whatever…), then paste it back on? it’d be way easier that doing it by hand on a weird map…

so, how does it work? just projects back?

Great, cambo, really useful.
jessethemid is right, would it be possible to have it the reverse too?

reverse would be a heap easeir :wink:
Just finishing this script off and its working ok, though its a harder problem then I hoped.

There is a module Im working in - BPyRender.
Ill see if I can add a function to it that takes a right angle quad (4 vectors in 3d space)
And returns a ortho image from that.
Will also help for other tools…

Can’t wait for this, thanks.:slight_smile:

yah, reverse would probably be just an ortho camera render set to the size of the decal…

thanks alot. this will definitely be one of my more-used scripts once it’s done… (i’m rather sloppy with seams:rolleyes: maby i sould just learn better.)

This decal mapping is like the one in A:M :eek: I ever loved this feature :rolleyes:

Thanks Cambo! :wink:

I have tried modo’s image ink and it’s wonderfull, look at this vid

http://video.luxology.com/modo/202/modo202_ImageInk.mov

Hey ZanQdo, this is a poor mans attempt for a feature such as exists in Modo, hopefully image texture paint will suppport this kind of functionality.

Heres the script. it works in my tests though one hard part is getting the correct image rotation and Im not sure that works 100% of the the time.

Script may require latest CVS Blender.
http://members.iinet.net.au/~cpbarton/image_bake_decal.py

Update, same links as above,.
fixed error where different decal images would render seperatly,

Added a UI, where you can choose not to have the image rendered behind teh decals (good for overlays later in in the Gimp), options is to what faces to include in the projection.

I’m getting an error “No module named BpyRender”

Mike

Just curious – how is this different than decaling using an empty and object mapping?

edit – forget it - I didn’t realize that it baked to the uv coords – end edit

GreyBeard

Awsome! I’ve seen this done quite a bit in Maya and have always wondered if it were possible in blender.

Thanks!!

Ah, good work, cambo. This is a really powerful script. I bet they’ll put this in the next release.

Is it working for you? Where did you get the ‘BpyRender’ module ?

Mike

No, I have not tested the script yet, but I use a commercial application for this purpose, and i’ts a very, very useful feature.

just a thaught… my gut hunch is that:

hmm…

http://projects.blender.org/viewcvs/viewcvs.cgi/blender/release/scripts/bpymodules/?cvsroot=bf-blender&sortby=date