It is currently Wed Jul 24, 2024 10:34 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: Car reflections - New challenge
PostPosted: Fri Aug 09, 2013 6:02 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
Ever notice when you try and flip a automobile for a reflection on a showroom floor it doesn't look right?
Image

This has been posted here before but with no results that looked correct.
I am re-posting to see if anyone has new developments to achieve this effect.

It's not easy in Photo Shop CS5 either.Although i can get close with skew. Puppet Warp doesn't work.
Image


Can anyone achieve this?
You can use my image here. It is mine so you can do whatever you like with it. :bigthup
Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Fri Aug 09, 2013 7:16 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
wbool63 made a pretty good stab at it way back...looked good to me. I don't remember where the thread is though.

_________________
Image


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Fri Aug 09, 2013 7:43 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
Found it here Molly. Thanks.
http://www.gimpchat.com/viewtopic.php?f=8&t=3235

Seems like we could do better though.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Fri Aug 09, 2013 7:45 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
This is a hard challenge, this is my thoughts so far, I have created a path to reflect the perspective of the initial image and duplicted this path to reflect the perspective of the reflection so both are Identical, now if I could map using the path of the reflected image onto the path of the main image might have something usable.

Image

_________________
Image


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Fri Aug 09, 2013 8:48 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Aug 30, 2012
Posts: 2174
I was getting bored with the whole process but here is what I have managed to achieve, cropping the image into slices of 10px thick and then offsetting the reflection layer in a negative y direction by the difference between the two paths, ideally it would be better if you could do slices only 1px thick, hence this method really needs a script. but as mentioned in the other thread technically the reflection would still be wrong because it wouldn't be the complete reverse of the car being able to see the underneath etc.

Image

_________________
Image


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Fri Aug 09, 2013 9:38 am  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
This is the thread I was referring too where Wbool actually used a graph to show what it would look like.

viewtopic.php?p=41707#p41707

_________________
Image


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Fri Aug 09, 2013 12:09 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
This nev er works because the reflection must include details (the underside of the car) that aren't in the original image. A reflection of a 3D object is not just a symmetry. It's a different point of view.

_________________
Image


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Fri Aug 09, 2013 6:17 pm  (#8) 
Offline
GimpChat Member

Joined: Aug 27, 2010
Posts: 491
This is what I've been trying to duplicate (without success to this point):
Image
Is this what you're after, or something else?


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Fri Aug 09, 2013 7:33 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 2075
ofnuts wrote:
This nev er works because the reflection must include details (the underside of the car) that aren't in the original image. A reflection of a 3D object is not just a symmetry. It's a different point of view.

This. :bigthup

_________________
Image


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Sat Aug 10, 2013 3:31 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
Yes Mike this is the effect i want but without the underside of the car reflected. I suppose the best way is to have the image of the car as horizontal as possible.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Sat Aug 10, 2013 5:45 am  (#11) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
If you don't want the underside reflected then you must chose another car image to work with.
with that you have , in that position, the prospective and the reflection will always look wrong without the underside.

you may do without only when the point of view and prospective only require to mirror what visible for a realistic reflection that is a rare case

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Sat Aug 10, 2013 6:20 am  (#12) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
PhotoComix wrote:
If you don't want the underside reflected then you must chose another car image to work with.
with that you have , in that position, the prospective and the reflection will always look wrong without the underside.

you may do without only when the point of view and prospective only require to mirror what visible for a realistic reflection that is a rare case


And there are also parts that you don't see in a reflection (like most nearly horizontal surfaces....). Look at the picture posted by Mike. In the reflection there is no hood, no windscreen, no roof, no air intakes...

_________________
Image


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Sat Aug 10, 2013 6:28 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
Yes it's even very difficult with a nice horizontal image. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Sat Aug 10, 2013 7:01 am  (#14) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
"Very difficult" seems a euphemism here
I believe is just impossible do "automatically", there are part in the reflection that can't be derived from the original 2D image or even from a single 3D render.

They may be invented that require creativity and a good manual work ,
but my point is that the manual work needed can't be generalised, the procedure will differ from image to image:
what will work for that car in that position can't be adapted to a different car or even to the same car if seen from a different different POW or FOW

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Tue Aug 13, 2013 2:02 pm  (#15) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
he4rty wrote:
I was getting bored with the whole process but here is what I have managed to achieve, cropping the image into slices of 10px thick and then offsetting the reflection layer in a negative y direction by the difference between the two paths, ideally it would be better if you could do slices only 1px thick, hence this method really needs a script. but as mentioned in the other thread technically the reflection would still be wrong because it wouldn't be the complete reverse of the car being able to see the underneath etc.


As a quick way to do this without manually slicing, you can distort the image using a constructed gradient. Draw a path between the two shapes, crop that to a rectangle, shrink that layer to a 1px high layer (with linear interpolation), then enlarge it (with no interpolation) to the image size and use that as a displacement map:
Attachment:
controlled_displace.jpg
controlled_displace.jpg [ 572.64 KiB | Viewed 1523 times ]


Still looks completely wrong as a reflection, but could be used for other things, or if the source image is not so skewed, or is only in one point perspective.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Tue Aug 13, 2013 3:24 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
RobA wrote:
he4rty wrote:
I was getting bored with the whole process but here is what I have managed to achieve, cropping the image into slices of 10px thick and then offsetting the reflection layer in a negative y direction by the difference between the two paths, ideally it would be better if you could do slices only 1px thick, hence this method really needs a script. but as mentioned in the other thread technically the reflection would still be wrong because it wouldn't be the complete reverse of the car being able to see the underneath etc.


As a quick way to do this without manually slicing, you can distort the image using a constructed gradient. Draw a path between the two shapes, crop that to a rectangle, shrink that layer to a 1px high layer (with linear interpolation), then enlarge it (with no interpolation) to the image size and use that as a displacement map:
Attachment:
controlled_displace.jpg


Still looks completely wrong as a reflection, but could be used for other things, or if the source image is not so skewed, or is only in one point perspective.

-Rob A>

Great idea Rob.
Thanks! :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Car reflections - New challenge
PostPosted: Tue Aug 13, 2013 3:38 pm  (#17) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13080
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
This is a tough challenge due to the type of car and not having the underside details of the image. I think it might be easier with a more modern car with a lower stance, but I've come across this issue before when attempting to create reflections of other things as well. With other objects, I've been able to make the reflection match up with the original image, but something always looks odd about the reflection not having any of the underside details.
On close inspection, one can tell that it's just a manipulation of the original and not a true reflection. Due to the missing details.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
Post new topic Reply to topic  [ 17 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) My reflections

27

No new posts Attachment(s) Challenge

14

No new posts Attachment(s) Directed Challenge

111

No new posts Attachment(s) Free Challenge

102

No new posts Attachment(s) GMIC Challenge

24



* Login  



Powered by phpBB3 © phpBB Group