CGTalk > Software > Maxon Cinema 4D
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
Thread Tools Search this Thread Display Modes
Old 03-17-2013, 06:47 PM   #1
Indeed's Avatar
Carl Burton
San Diego, USA
Join Date: Jul 2005
Posts: 232
How to extend camera mapping around the edge?

Ok, imagine a white sphere in front of a red plane. I then have a red texture that I am camera mapping onto the sphere so that everything appears red from the camera's point of view. Then (in my animation) the sphere rotates around, revealing the white on the other side of the sphere. I do the rotation after baking the object/texture. In C4D, this works great.

The problem is that I need to export this 'effect' into a realtime engine. The fringe, where the camera mapping ends, is perfectly invisible in a cinema render, but is quite obvious in realtime once the object is baked. What would be ideal is to "bleed" the camera mapped texture just a little over the edge of the sphere, so the white creeps more into the red. This will eventually have to apply to a grid of spheres, all using the same camera as a mapping source, so I can't do something as simple as say, just using a gradient going down Z. It has to be based on the camera angle, but go OVER the horizon of the sphere(s).

Sorry if that's really confusing. Any help appreciated!
Old 03-17-2013, 08:19 PM   #2
demafleez's Avatar
Join Date: Mar 2005
Posts: 123
So you're baking the texture and bringing that resulting geometry into a game engine? Which one?

It sounds like an issue related to a straight vs pre multiplied alpha. Do you have a screenshot or a scene file to look at?

I should add that with camera mapping, you can't extend the image past what the camera sees. You'd need another camera mapped image with a different view, another material assigned to the unseen portion of the geometry, or by generating UVs to the object and texturing/painting in the extra areas on your texture map.
__________________ | twitter

Last edited by demafleez : 03-17-2013 at 09:03 PM.
Old 03-18-2013, 09:07 AM   #3
Eric Marodon
Join Date: Dec 2002
Posts: 1,369
IIRC there is a "border" option when baking maps, which extends the color by a few pixels outside the UV islands, but that's usually to prevent mipmap scaling issues, don't know if that would fix your problem.

If not, my best bet would be to add another projection camera to add coverage (see projection man) I guess or to do fix it manually in bodypaint.
Old 03-18-2013, 09:07 AM   #4
CGTalk Moderation
CGTalk Forum Leader
Join Date: Sep 2003
Posts: 1,066,478
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 11:51 PM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.