need help with special effect

Started by
8 comments, last by Luke Miklos 20 years, 5 months ago
Hey guys/gals, I have a scene that I draw & in it are multiple objects such as various entities & of course the board/map. The special effect that I want to implement is one in which... there is an "invisible" object that travels through the scene & distorts or refracts the scene behind it as it travels across your view. I don't care if its an obtuse or acute refraction, because this invisible entity will be traveling quite quickly, I just want you to notice that its there, but not really there. Lets also just say that its a simple shape for now, like a sphere or a cube. Any ideas? I took a look at the tutorial that shows an AVI file playing in the background & on the shape that is moving around in the scene.... but that refraction effect doesn't look all that good, in otherwords... you can hardly see a change in the image on the object as it moves. So I hardly view that as a refraction effect, but more like a funny shaped TV screen moving around the screen. I'd rather want the scene to appear ALMOST normal, just a bit distorted behind the invisible object. Tell me there is an easier way to do this besides rendering the scene a few times & performing a cube-map. Thanks : ) [edited by - Luke Miklos on November 13, 2003 3:34:22 PM]
Whatsoever you do, do it heartily as to the Lord, and not unto men.
Advertisement
I haven''t tried it myself yet, but try rendering the part of the scene that the object is in front of, then mapping that to a texture and then binding that texture to the object.
A more advanced option would be to use a shader on the object to show refraction, similar to what you would use on a transparent water surface.

there will prolly be a good shader you can use here

http://www.cgshaders.org/shaders/

you''ll just have to get Cg working with your app for your entity.
Hard work USUALLY pays off in the future, but laziness ALWAYS pays off right now.
Render the scene to a grid of quads/tris and distort it''s texture coordinates.
The world isn't unpredictable. It's CHAOTIC.
Or, if it''s a really simply object (like a sphere or a cube), use a dynamice cubemap.
quote:Original post by Halibut
Or, if it''s a really simply object (like a sphere or a cube), use a dynamice cubemap.


If you''re doing that for the demo contest, please don''t use this option (for instance my graphics card doesn''t support cubemaps as an extension). What Intamin AG said is your best option.




"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
It also depends on target platform. For anything under GF you are stuck with render-to-texture-and-disort, while on GF+ you can do some realy nice fx using cubemaps. It''s just a matter of how low can you go (I made a limit at ARB_VP, CubeMaps and dot3 : anything without this simply won''t run).

You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
quote:Original post by _DarkWIng_
It also depends on target platform. For anything under GF you are stuck with render-to-texture-and-disort, while on GF+ you can do some realy nice fx using cubemaps. It''s just a matter of how low can you go (I made a limit at ARB_VP, CubeMaps and dot3 : anything without this simply won''t run).

You should never let your fears become the boundaries of your dreams.


Weren''t you a mod a while back? Anyway: bastard . That''ll require something like a GF3+, which is to my graphics card (TNT2) like Malta is to world domination...




"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Thanks guys,

I will look into the shader & I will try to please everybody *snicker. I''m having trouble with my cubemap & have posted another thread if you wouldn''t mind checking it out.....

thanks
Whatsoever you do, do it heartily as to the Lord, and not unto men.
quote:Original post by Crispy
That'll require something like a GF3+, which is to my graphics card (TNT2) like Malta is to world domination...

Actualy it works on GF1 just fine. It's missing some eyecandy but overall OK. (I can add support for TNT cards but that will kill just about every fx I have)

quote:Original post by Crispy
Weren't you a mod a while back?

No, no such luck

You should never let your fears become the boundaries of your dreams.

[edited by - _DarkWIng_ on November 15, 2003 4:08:24 AM]
You should never let your fears become the boundaries of your dreams.

This topic is closed to new replies.

Advertisement