Author : afisher


Reply
Reply
 
Thread Tools Display Modes
Neox's Avatar
Old (#1)
Hiho guys i'm currently playing around alot with shaders and for a pretty specific effect i was searching for something that acts like an inverted cubemap.
To make it clear, a cubemap acts like a reflections to show stuff that is around and therefore outside the object, what id love to do is using a map that acts as if there is something inside an Object.
And to make it even easier, i can't use custom code, only what unreal tournament gives me ^^

ok here is an example of what i want to do

i just added a subsurface scattering Fake to one of our shaders, however in the case of the whale, i want him to have stuff in his belly, the current texture are just cubes that are reflected nothing too fancy but if i could actually make it look like there is something inside, this would be awesome



:edit:

ok i guess this is as close as i can get with a cubemap, but that could be tweaked for sure to work a bit ebtter with the mode


of course everything but the belly will be masked out

Last edited by Neox; 05-28-2009 at 04:45 PM..
bonus vir semper tiro.

Steffen 'Neox' Unger
It's Airborn Baby!

freelance 3d artist
for hire
Offline , veteran polycounter, 3,187 Posts, Join Date Sep 2006, Location Berlin Germany Send a message via ICQ to Neox  
   Reply With Quote

TSM's Avatar
Old (#2)
Why don't you just make a cube map of the whales interior? You may need to clone the whale, 1 part scale it up, and apply that cubemap to the smaller piece, while keeping a translucent SSS on the outer piece, so you can see inside.

Just some thoughts.
Offline , spline, 146 Posts, Join Date Sep 2007,  
   Reply With Quote

Tumerboy's Avatar
Old (#3)
Neox, do you mean you want it to look like it's illuminated, and there are shadows and such of the interior bits? (finger over a flashlight type of thing?) Or do you want it to look semi-transparent, so you can actually see what's in there?

I'm confused.
-Nick
-Portfolio-
Offline , veteran polycounter, 2,695 Posts, Join Date Jan 2007, Location San Jose, CA Send a message via AIM to Tumerboy  
   Reply With Quote

Mark Dygert's Avatar
Old (#4)
humm... do you want it to slide around like a cube map or look like something is stationary inside. I'm not a shader wiz by any stretch so who knows what is possible. But I think it might be easier to model a simple silhouette to place inside?
(AKA Vig) Portfolio | Lab | Brawl | Decker |
Offline , Polycount.com Editor, 13,894 Posts, Join Date Oct 2004, Location Seattle, Wa Send a message via MSN to Mark Dygert  
   Reply With Quote

Neox's Avatar
Old (#5)
no because i cannot use any half transparancies for that so it has to be faked within the shader

@tsm thats what im doing now, but a reflection is nt the same like looking throiugh something an see whats in it, but i guess this is as close as i can get it
bonus vir semper tiro.

Steffen 'Neox' Unger
It's Airborn Baby!

freelance 3d artist
for hire
Offline , veteran polycounter, 3,187 Posts, Join Date Sep 2006, Location Berlin Germany Send a message via ICQ to Neox  
   Reply With Quote

arrangemonk's Avatar
Old (#6)
http://www.humus.name/index.php?page=News&ID=209
DARN it hurts my eyes
Offline , dedicated polycounter, 1,347 Posts, Join Date Jun 2007, Location Germany Send a message via ICQ to arrangemonk Send a message via MSN to arrangemonk Send a message via Skype™ to arrangemonk  
   Reply With Quote

Xoliul's Avatar
Old (#7)
I think you might need to use refraction-like cubemap sampling ? ShaderFX has a node and examples for that I think. I've never used it since refracting only a cubemap and not the objects behind 8(like glass) is totally useless, so I don't know the code off the top of my head, but could be what you want ?
Offline , card carrying polycounter, 2,419 Posts, Join Date Oct 2008, Location London, UK Send a message via MSN to Xoliul  
   Reply With Quote

Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch