Dear DAVID Community,

As you are probably aware, the entire DAVID company, team and product range has been integrated into HP Inc.
This forum is now read-only. Relevant content has been migrated to HP and merged into HP's Support Forums on November 1, 2016.

To start new discussions for 3D Scanning, please register and post your new topic at the HP Support Forums

Multiplying Scans to influence texture

The place for all topics related to the 'Shapefusion' tool of DAVID.

Multiplying Scans to influence texture

Postby Artisan S » Sat Oct 18, 2014 10:58 am

2014-10-18_11-50-10.png


I was scanning a Quality Street can and ran into some troubles with the top side of the scan/can. It was present as a vague scan in the scans of the circle (the edge of the can). When I then alligned a seperate scan of the top and fused all 17 scans together I got a quite uneven texture (the darker scans from the circle scan shone through). Now I can correct that in Blender (texture paint mode) and I regulary do that nowadays but this time I stumbled upon a different sollution. I copied both scans of the lid of the can 5 times and fused again.....not bad at all.

Greets, Ed.
Artisan S
 
Posts: 26
Joined: Fri Mar 14, 2014 12:26 pm

Re: Multiplying Scans to influence texture

Postby Artisan S » Sat Oct 25, 2014 6:21 pm

And retopology means retexturing as well. I have managed to use Blender (and the bake texture proces) to retexture an object with texture information coming from David (or any other program Agisoft photoscan works probably as wel and gives greatly more detailed textures).

Steps:

1) Save object in David as a .obj which creates an .mtl and a .png as well.

2) Import Object in Blender and scale .1 (easier to work with).......do the usual texture dance in Blender Render (works better then Cycles I noticed)....

3) Create the retopoligised mesh (either by hand using a surface magnet tool or by a remesh modifier (less cool)).......

4) UV project the retopoligised mesh either by hand or by smart UV project

5) Split the window......make one side a UV map window and go to the UV map window

6) Create a new empty texture (black for instance) for the remesh

7) Select the David 3d mesh and do the usual texture dance with added:

- goto into the material tab of the object and check shadeless (in the shading section)

- goto the scene tab and select color management non (in the color management section)

8) Press shift and simulataniously select both meshes (the remesh last and active)

9) Goto the render tab of the remesh and check Selected to Active (mode Full Render) and press bake

10) If all goes wel you should see a black empty texture take on the colors of the David texture, thus transfering the texture from the old topology and UV map to the new topology and UV map

11) Save the new texture and whistle "pomp and circumstance"......(< not obligatory step but nice anyway).

remeshed.png
The retopologised bottle, with a 2x subsurf shaded smoot in edit mode!


FusionResultKlein.png
The old "David" texture


Retopklein.png
Et voilá (of course you could also use it to create a smaller and a more square texture, Blender for instance likes binary size textures (1024, 2048 etc.)
Artisan S
 
Posts: 26
Joined: Fri Mar 14, 2014 12:26 pm

Re: Multiplying Scans to influence texture

Postby hunkatibor2 » Mon Oct 27, 2014 7:22 pm

Hi
This is very useful, I'll try to do it.
Tibor
Intel Xeon E5410 2.33GHZ 16GB RAM Windows 7 64bit David 4.5.0
2 Basler A622F camera 2 Tamron Asfirical AF 28-80mm lense
LG DLP Projector PF1500G Canon D40 Tokina 17-70mm 1:2.8-4,5
Humanti Calibration panel system and Alignmed&Two camera
hunkatibor2
 
Posts: 1408
Joined: Tue Mar 16, 2010 4:26 pm
Location: Hungary

Re: Multiplying Scans to influence texture

Postby hunkatibor2 » Thu Oct 30, 2014 9:53 am

Hi Artisan
https://sketchfab.com/models/954be5fdcc464cb188868c527060d19c
Image
I can not even my idea, do not see the texture. you help me?
Tibor
Intel Xeon E5410 2.33GHZ 16GB RAM Windows 7 64bit David 4.5.0
2 Basler A622F camera 2 Tamron Asfirical AF 28-80mm lense
LG DLP Projector PF1500G Canon D40 Tokina 17-70mm 1:2.8-4,5
Humanti Calibration panel system and Alignmed&Two camera
hunkatibor2
 
Posts: 1408
Joined: Tue Mar 16, 2010 4:26 pm
Location: Hungary

Re: Multiplying Scans to influence texture

Postby Artisan S » Thu Oct 30, 2014 8:58 pm

Tibor,

Whet you are showing me is the handywork of David with the original David texture. It will be UV Mapped according to Davids principles (which is multiple pictures and per picture a set of vertex/triangles, right).....now if you import this in Blender, you can remesh this via the remesh modifier (you can find the modifiers under the little spanner in the lower right window of Blender), or you can model your new topology, in Blender directly (but Blender has a steep learning curve but a kazilion tuts on the Interweb) by any modeling method you like (I use both marching front and mesh modifying methods) (or you could import the David mesh again and remove the material (do not delete it for obvious resons)).....the bottom line is, you need two topologies....one original and one you are going to bake the texture on. But I found a video that explains it (using a nice model as well) in detail. The proces is used in the video to combine two scans.....nice trick by the way. But I realised it was the answer two the one gripe I have with David and that is the quality of the textures is not up to par with systems like a Mephisto EX (that costs 30 grand so what am I complaining about :-)), which uses a DSLR to shoot the textures. So I modified the pipeline slightly in order to make step 1, a decent texture (discribed in the previous post).

http://www.youtube.com/watch?v=0-Oh8pMbTS8

and there is a part 2 as well, but this first video sort of cuts the mustard already......

Anyway, what is important.....you have to have an empty black image assigned to the new mesh (that will be the target of the bake) and you have to turn of shading and color management on the second mesh (last part is not that important anymore in Blender 2.72 since some errors have been corrected). You have to select both meshes in the Inspector (the window right top in Blender) and you have to be in Object mode (not in edit mode) and you have to make a UV Map for the new mesh (the one on which the texture will be "projected"). And for reasons only known to Blender, sometimes it works and sometimes it doesn't.....if it doesn't don't get frustrated just try again (sometimes I have to try the whole proces 3 or even 4 times, but eventually I get there).

And what is the goal of the pipeline? To upgrade the textures, indeed. I have Agisoft as well and I'm not that convinced about the mesh quality of photogrammetric scanning but the textures coming from Agisoft rock. So what I want to do is to combine the best of both worlds.....

1) Make a scan using David
2) Make a scan using Agisoft
3) Scale and align using Blender and Meshlab
4) Transfer the Agisoft texture onto the David mesh......
5) Have a brewsky in order to celebrate.

Greets, Ed.
Artisan S
 
Posts: 26
Joined: Fri Mar 14, 2014 12:26 pm

Re: Multiplying Scans to influence texture

Postby hunkatibor2 » Fri Oct 31, 2014 9:52 am

Intel Xeon E5410 2.33GHZ 16GB RAM Windows 7 64bit David 4.5.0
2 Basler A622F camera 2 Tamron Asfirical AF 28-80mm lense
LG DLP Projector PF1500G Canon D40 Tokina 17-70mm 1:2.8-4,5
Humanti Calibration panel system and Alignmed&Two camera
hunkatibor2
 
Posts: 1408
Joined: Tue Mar 16, 2010 4:26 pm
Location: Hungary

Re: Multiplying Scans to influence texture

Postby Artisan S » Fri Oct 31, 2014 1:24 pm

I've done the magic and this is how it happend....

You see the vase and it's remeshed counterpart. Both occupying the same space (that is important for this trick to work). I've selected (upper right window) both the original vase and the remeshed counterpart (first the original then via SHIFT left-click the new remeshed vase). The new vase had a black empty canvas (I have made all the settings from the previous posts)......

Upload.png
The baking of the texture!


Then you have to perform a last step. The new texture has to be saved (of course) in the left window and then it has to be assigned (not so obvious) to a texture that is used by the remeshed vase.....go to the texture tab in the right window and create a new texture and set texture type to "Image or movie" and set source at the newly created texture.....export the new mesh as a .obj (selection only and keep vertex order checked).

Upload2.png
Adding the new texture to the remeshed mesh!


Greets, Ed.
Artisan S
 
Posts: 26
Joined: Fri Mar 14, 2014 12:26 pm

Re: Multiplying Scans to influence texture

Postby hunkatibor2 » Fri Nov 07, 2014 8:17 pm

Hi
No matter what I do, not good for the texture position. :oops: :oops: :oops:
Image
Tibor
Intel Xeon E5410 2.33GHZ 16GB RAM Windows 7 64bit David 4.5.0
2 Basler A622F camera 2 Tamron Asfirical AF 28-80mm lense
LG DLP Projector PF1500G Canon D40 Tokina 17-70mm 1:2.8-4,5
Humanti Calibration panel system and Alignmed&Two camera
hunkatibor2
 
Posts: 1408
Joined: Tue Mar 16, 2010 4:26 pm
Location: Hungary

Re: Multiplying Scans to influence texture

Postby Artisan S » Fri Nov 07, 2014 8:23 pm

I'm working on a manual (and forgot a step I noticed in testing).....but I'm busy all round.....although not to much of it pays the bills......but hey I don't have that many bills anyway. Having sad that it looks to me that you forgot a crucial step in the proces....you have to create a new UV map for the retopologised mesh using Smart UV project and then you have to get every alligned (or better keep everything alligned). It should happen (as I demonstrated and I don't wear a pointed hat so chances are I'm just a mortal and no wizard).

Greets, Ed.
Artisan S
 
Posts: 26
Joined: Fri Mar 14, 2014 12:26 pm

Re: Multiplying Scans to influence texture

Postby hunkatibor2 » Sat Nov 08, 2014 7:36 pm

Hi Ed
Thanks for your help, you have the source of the error Meshlab not done the job.
Tibor :lol:
Intel Xeon E5410 2.33GHZ 16GB RAM Windows 7 64bit David 4.5.0
2 Basler A622F camera 2 Tamron Asfirical AF 28-80mm lense
LG DLP Projector PF1500G Canon D40 Tokina 17-70mm 1:2.8-4,5
Humanti Calibration panel system and Alignmed&Two camera
hunkatibor2
 
Posts: 1408
Joined: Tue Mar 16, 2010 4:26 pm
Location: Hungary

Re: Multiplying Scans to influence texture

Postby hunkatibor2 » Sun Nov 09, 2014 4:50 pm

Intel Xeon E5410 2.33GHZ 16GB RAM Windows 7 64bit David 4.5.0
2 Basler A622F camera 2 Tamron Asfirical AF 28-80mm lense
LG DLP Projector PF1500G Canon D40 Tokina 17-70mm 1:2.8-4,5
Humanti Calibration panel system and Alignmed&Two camera
hunkatibor2
 
Posts: 1408
Joined: Tue Mar 16, 2010 4:26 pm
Location: Hungary

Re: Multiplying Scans to influence texture

Postby hunkatibor2 » Sun Nov 16, 2014 5:17 pm

Hi
Ed

Omega-3 by humanti on Sketchfab
Tibor
Attachments
2014-11-15_18-26-24.png
Intel Xeon E5410 2.33GHZ 16GB RAM Windows 7 64bit David 4.5.0
2 Basler A622F camera 2 Tamron Asfirical AF 28-80mm lense
LG DLP Projector PF1500G Canon D40 Tokina 17-70mm 1:2.8-4,5
Humanti Calibration panel system and Alignmed&Two camera
hunkatibor2
 
Posts: 1408
Joined: Tue Mar 16, 2010 4:26 pm
Location: Hungary

Re: Multiplying Scans to influence texture

Postby hunkatibor2 » Sun Nov 16, 2014 6:26 pm

Hi
Attachments
BAKETEXTURAEXOORUSE1.png
Blender render exporuse raw : 1.000
Intel Xeon E5410 2.33GHZ 16GB RAM Windows 7 64bit David 4.5.0
2 Basler A622F camera 2 Tamron Asfirical AF 28-80mm lense
LG DLP Projector PF1500G Canon D40 Tokina 17-70mm 1:2.8-4,5
Humanti Calibration panel system and Alignmed&Two camera
hunkatibor2
 
Posts: 1408
Joined: Tue Mar 16, 2010 4:26 pm
Location: Hungary


Return to Shape Fusion

Who is online

Users browsing this forum: No registered users and 2 guests