Quake3World.com
https://www.quake3world.com/forum/

infinite far
https://www.quake3world.com/forum/viewtopic.php?f=10&t=47561
Page 1 of 1

Author:  Cleric [ 05-05-2012 08:22 AM ]
Post subject:  infinite far

Is it possible to write a shader that will make a surface appear infinitely far. Like skies look infinitely far.

Author:  obsidian [ 05-05-2012 08:33 AM ]
Post subject:  Re: infinite far

http://q3map2.robotrenegade.com/docs/sh ... .html#sort

Author:  Cleric [ 05-05-2012 08:35 AM ]
Post subject:  Re: infinite far

obsidian wrote:
http://q3map2.robotrenegade.com/docs/shader_manual/general-directives.html#sort

I knew it's going to be something i saw a hundred times and never payed attention to it.
Thanks Obsidian.

Author:  obsidian [ 05-05-2012 10:01 AM ]
Post subject:  Re: infinite far

Do you have an example of what you want to accomplish? Sort will allow the surface to render behind everything else, but it won't scale objects as if it were infinitely far, so it may or may not be what you are looking for.

Author:  Cleric [ 05-05-2012 05:51 PM ]
Post subject:  Re: infinite far

I wanted to create like a fake skybox. Something i can put on the outer side of a window and make the image look far like it has some actual depth.
But without using surfaceparm sky for it.

Author:  TruthfulLiar [ 05-05-2012 06:13 PM ]
Post subject:  Re: infinite far

Sorry, been way too long (read +5 years) since I last used GTK, but I vaguely remember being able to make a translucent surface (like a teleporter) that shows you a live-image feed from a GTK "camera" that you setup pointing in the direction of a sky or whatever.

Sigh... Is this making sense, can someone translate what I mean? I know, I used to do this.

Then you make a separate not-in-the-level box of sky or whatever surrounding the said directional camera. You have to connect two points together, from the first one in the window to the second (the camera) in your target area.

I believe that the surface required a special shader, that I forget which it was called but it is fairly quick to find a teleporter shader and read the code I suppose.

Author:  obsidian [ 05-05-2012 07:22 PM ]
Post subject:  Re: infinite far

You can either use a portal camera entity or a q3map2 _skybox entity.

Portals are used to make the Q3 teleported and mirrors, so you can see the destination or reflection on the surface.

Skybox entity projects a 360-degree capture of a mini skybox onto your sky. This is most likely what you want and works with best results.

Author:  Eraser [ 05-06-2012 03:12 AM ]
Post subject:  Re: infinite far

obsidian wrote:
Do you have an example of what you want to accomplish? Sort will allow the surface to render behind everything else, but it won't scale objects as if it were infinitely far, so it may or may not be what you are looking for.

lol, sorry to be pendantic, but how do you scale something to make it look infinitely far away? :smirk:

Author:  obsidian [ 05-06-2012 10:55 AM ]
Post subject:  Re: infinite far

Well, NOT scale... So that if you move closer to the object, it still keeps its relative size on screen.

Author:  CZghost [ 05-06-2012 10:30 PM ]
Post subject:  Re: infinite far

obsidian wrote:
Portals are used to make the Q3 teleported and mirrors, so you can see the destination or reflection on the surface.

While we're on portals, I have question: Is it possible to make portal from mirror surface?

Author:  obsidian [ 05-07-2012 06:55 AM ]
Post subject:  Re: infinite far

They are the same thing. The only difference with a portal is that it has a destination camera set for the surface.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/