News:

Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

Main Menu

IMSI Give us the Tools: Placing an Object in a Photo

Started by AussieBloke, November 15, 2023, 10:23:32 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

AussieBloke

Don Cheke Placing a Model into a Photo/ TurboCad Tip No 10

Quote "The user tries to align the ground plane with something in the photo which represents the perspective and plane of the image. As can be seen above, the cutting mat grid provides a great guide for placement. Not all images give such a good guide, but often there are items in the photo that can help, at least, a little.

A user will likely needed to switch back and forth from the Camera Properties to adjust the View Angle until something adequate is arrived at. Couple this with Walk Through tweaks and a good portion of time will have been spent getting the scene just right. Be sure to save the view a few times during the process so previous 'close' views can be returned to if the scene gets out of hand."

Trying to setup a render with the current tools and render to a background image is difficult, almost impossible. Take a look at the second image and you will see what I mean.

1. Front view
2. iso SE view
3. iso SE rotated further

Can imsi/development look into giving us the tools that allow us to:

Render in perspective/iso SE etc with a background image and not have to fumble around.

Being able to modify the drawing entities and keep the image stationary while changing views.

With the current posted image I'd like to manipulate the drawings view to match the underlying image and that way it would be simple to create a perfect perspective render matching the image.

That would be a game changer for imsi and no more stuffing around in the dark.

Brandon Meyer

Hey Darrel, I know this isn't exactly what you are asking but may be a helpful workaround. the program Fspy (LINK) gives camera location and field of view information on images that are suitable. Blender users use this a lot with an import addon (LINK) that makes it seemless for blender. I haven't messed around with it but it seems one could use the info to set up a camera or view and align the image to the camera or view and it would give you the correct perspective with your model sitting on the world plane normally. There are many tutorials out there for blender and fspy if you want to see how they use it.
TC Pro Platinum 2025, 2020, 2016, 2015, v18, v14. TC Deluxe v19. Alibre Design Expert v28. Blender 4.3. Ender 5s1 enclosed printers. Revopoint MetroX, Range1, Pop2 3d scanners.
Home pc Ryzen 7 3700x 32gb Ram Rtx2060 Super. Shop pc Ryzen 9 3900x 64gb Ram Rtx2060 Super.

AussieBloke

Quote from: Brandon Meyer on November 16, 2023, 11:08:14 AMHey Darrel, I know this isn't exactly what you are asking but may be a helpful workaround. the program Fspy (LINK) gives camera location and field of view information on images that are suitable. Blender users use this a lot with an import addon (LINK) that makes it seemless for blender. I haven't messed around with it but it seems one could use the info to set up a camera or view and align the image to the camera or view and it would give you the correct perspective with your model sitting on the world plane normally. There are many tutorials out there for blender and fspy if you want to see how they use it.

Thanks for the info Brandon, so can fspy be used a standalone app or are we tied to blender only?

From the link it appears that fspy is for blender or did I miss something.



Brandon Meyer

Fspy is stand alone but there is an importer for blender that allows one to bring a saved fspy file directly in and it automatically sets up a camera and view. That may be handy for making sure everything works before trying to setup a camera in turbocad as not all images are easily aligned even with the software estimating things and it may take some figuring on how to setup the info in turbocad.
TC Pro Platinum 2025, 2020, 2016, 2015, v18, v14. TC Deluxe v19. Alibre Design Expert v28. Blender 4.3. Ender 5s1 enclosed printers. Revopoint MetroX, Range1, Pop2 3d scanners.
Home pc Ryzen 7 3700x 32gb Ram Rtx2060 Super. Shop pc Ryzen 9 3900x 64gb Ram Rtx2060 Super.

AussieBloke

Quote from: Brandon Meyer on November 16, 2023, 12:23:23 PMFspy is stand alone but there is an importer for blender that allows one to bring a saved fspy file directly in and it automatically sets up a camera and view. That may be handy for making sure everything works before trying to setup a camera in turbocad as not all images are easily aligned even with the software estimating things and it may take some figuring on how to setup the info in turbocad.

Thanks, I will give it a try and update the info here when I know more.  :)

Brandon Meyer

I was able to kind of get this to work. I was not able to get a "view" or "camera" setup with the info on their own and have it work out but what I did is as follows: I set the image up in fspy and then using the camera location info I placed a 3d point in turbocad workspace. I then from the world 0 origin drew a 3d polyline to the point followed but a workplane by z axis along the polyline. I then drew a simple square just as reference. I then imported an image onto this plane and from a non perspective front and side view I made sure the image was rotated along its own entity coordinate system to be square with the x and y axis. Going back to the workplane of the image I was then able to create a saved view if need be. I then switched the camera properties to perspective with the correct field of view angle. Back in the drawing space I was able to stay in this view but then switch the workplane to world and then draw a rectangle as the ground plane and it lines up pretty good. In my image their is an upper floor and that is off some but in blender it is perfect. So I am not sure why there is a difference. If I get a chance maybe I will make a video showing all this.
TC Pro Platinum 2025, 2020, 2016, 2015, v18, v14. TC Deluxe v19. Alibre Design Expert v28. Blender 4.3. Ender 5s1 enclosed printers. Revopoint MetroX, Range1, Pop2 3d scanners.
Home pc Ryzen 7 3700x 32gb Ram Rtx2060 Super. Shop pc Ryzen 9 3900x 64gb Ram Rtx2060 Super.

AussieBloke

#6
Okay Brandon, so lets work together on a new thread that explains how to use fSpy in TurboCAD?

Edit: I suggest we use 1 of the example files from TurboCAD.  That way we stay on the same page so to speak. Your thoughts?

Dean

Darryl, I am confused  :)
Environment maps (HDRI) are used.
The option to use a background image has another purpose.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

AussieBloke

Im using/do generally use a hdri map for lighting only in a TurboLux render as it gives me the best results ( still experimenting with emission lights ).

The image placed in the scene ( which Ive got around 20 or so,  for multiple scene renders ) are for render presentation.

Like Ive said earlier in this post, Im wanting to control the render scene object/objects ( handtruck in this instance ) in a perspective view and thereby anchor the image in a stationary sense for perspective alignment. ;D  HTH.





Don Cheke

It the attached what you are hoping to do in TurboCAD? If it is, I don't think it can be done with a single flat image. You need a 360 panorama spherical image.

If you are using a single flat image as a background, each 3D view would need to be established manually. Could IMSI add something to programing to make this easier? Maybe.

I remember seeing some background images that a guy created for himself. He had built a 1m wireframe cube from wood that he could place in his real-world scene, which he would then photograph. This would help him line his model up in CAD afterwards. I hope that makes sense.
Don Cheke
My Blog: One Man's Meanderings

AussieBloke

Yes Don the attached video pretty much sums up what Im looking for. Brandon posted on an app called fSpy which Im experimenting with now and its most likely going to work. Im using fSpy to create the perspective settings information to set the handtruck relative to an image withing TurboCad.

Andy H

The Thread is still Valid,  But as it is discussed simultaneously in the General forum, Click here. Discussing fspy usage has been moved to that thread. 

Please use the other thread for further posts relating to fspy.  Thank you.   Andy (mod).