From The Rock to 'Fat Robbie': How muscle man Dwayne Johnson was transformed using CG animation and a Vine star's body for Central Intelligence flashback scene 

Dwayne 'The Rock' Johnson is known for his muscled physique and devotion to working out.

In the film Central Intelligence, the former professional wrestler plays a CIA spy who was bullied in high school because of his weight.

Rawson Thurber, the director of the comedy, revealed that they used special effects to superimpose The Rock's face onto Vine star Sione Kelepi's body for flashback scenes, according to Entertainment Weekly

Scroll down for video 

Flashback: In the film Central Intelligence, Dwayne 'The Rock' Johnson's face is superimposed on a Vine star's body for a flashback scene

Flashback: In the film Central Intelligence, Dwayne 'The Rock' Johnson's face is superimposed on a Vine star's body for a flashback scene

The Rock's character, Bob Stone - also known as 'Fat Robbie' during his high school years - stars alongside Kevin Hart in the comedy.

In the film, which is set to be released on June 17, the 44-year-old action star is caught singing 'My Lovin'' by En Vogue in the boys locker room by bullies during a flashback. 

His character - completely naked - is dragged out of the locker room and to the school pep rally.

Buff: The action star is known for his muscled physique and his devotion to working out; pictured on his Instagram Thursday

Buff: The action star is known for his muscled physique and his devotion to working out; pictured on his Instagram Thursday

Special effects: Director Rawson Thurber revealed that they used special effects to superimpose The Rock's face on Vine star Sione Kelepi's body for  flashback scenes, according to Entertainment Weekly
Special effects: Director Rawson Thurber revealed that they used special effects to superimpose The Rock's face on Vine star Sione Kelepi's body for flashback scenes, according to Entertainment Weekly

Special effects: Director Rawson Thurber revealed that they used special effects to superimpose The Rock's face on Vine star Sione Kelepi's body for flashback scenes, according to Entertainment Weekly

In the moment: In the film, which is set to be released on June 17, the 44-year-old action star is caught singing 'My Lovin'' by En Vogue in the boys locker room by bullies during a flashback

In the moment: In the film, which is set to be released on June 17, the 44-year-old action star is caught singing 'My Lovin'' by En Vogue in the boys locker room by bullies during a flashback

Rawson told EW: 'When I was working on the script, this light bulb went off in my head where I thought, "Of course the kid who was bullied in high school, who was a little overweight with acne scars, would transform himself into The Rock."'

In a process that took six months in post-production, Weta Digital, a visual effects company, used 3-D face scans, CG animation and performance capture to superimpose The Rock's face onto Sione's, according to the website.

Sione, who starred in Meghan Trainor's All About That Bass music video, initially gained fame through his Vine.

Star quality: Sione, who starred in Meghan Trainor's All About That Bass music video, initially gained fame through his Vine

Star quality: Sione, who starred in Meghan Trainor's All About That Bass music video, initially gained fame through his Vine

Chiseled: In the film, the Rock plays the muscular CIA agent Bob Stone, who was bullied in high school because of his weight; pictured with his co-star Kevin Hart

Chiseled: In the film, the Rock plays the muscular CIA agent Bob Stone, who was bullied in high school because of his weight; pictured with his co-star Kevin Hart

Weta Digital was founded by The Lord Of The Rings' director Peter Jackson as well as Jamie Selkirk and Richard Taylor; They have done special effects for films like The Avengers, The Hunger Games, Deadpool and Batman V Superman: Dawn Of Justice.

'I didn't want to ask Dwayne to drink a ton of milkshakes. And fat suits, no matter how good they are, always end up looking like fat suits,' Rawson explained to EW.

The digital effects company also used CG animation to make The Rock's face look younger for the flashback 'because he's supposed to be 18 during the scene,' he added.

The Rock's incredible physique has helped him land many action hero roles, but it doesn't come easily. 

The star, who is 6ft 4in and 270-pounds, regularly rises very early for 4am work outs and he also follows a strict daily diet plan involving seven meals, 5,165 calories and 10 pounds of food. (A man's suggested daily intake for all foods is roughly 2,500.)

Dwayne has a five-month-old daughter Jasmine with girlfriend Lauren Hashian, and 14-year-old daughter Simone from his marriage to Dany Garcia. 

He recently wrapped filming on a Baywatch movie alongside Zac Efron and has just signed on to star in a Jumanji remake.  

Blast from the past: The Rock, pictured at 16, shared the photo to his Instagram last year; in the caption he said that at this age, he was already 6-foot-4-inches and 225 pounds

Blast from the past: The Rock, pictured at 16, shared the photo to his Instagram last year; in the caption he said that at this age, he was already 6-foot-4-inches and 225 pounds

Honesty: Rawson told EW: 'This light bulb went off in my head where I thought, "Of course the kid who was bullied in high school, who was a little overweight with acne scars, would transform himself into The Rock'

Honesty: Rawson told EW: 'This light bulb went off in my head where I thought, "Of course the kid who was bullied in high school, who was a little overweight with acne scars, would transform himself into The Rock'

Ready: The comedy is set to be released to theaters on June 17, staring The Rock, Kevin and Aaron Paul 

Ready: The comedy is set to be released to theaters on June 17, staring The Rock, Kevin and Aaron Paul 

The comments below have not been moderated.

The views expressed in the contents above are those of our users and do not necessarily reflect the views of MailOnline.

By posting your comment you agree to our house rules.

Who is this week's top commenter? Find out now