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

Problems with glass shaders
https://www.quake3world.com/forum/viewtopic.php?f=10&t=52269
Page 1 of 1

Author:  kejR [ 08-08-2016 06:47 AM ]
Post subject:  Problems with glass shaders

Hi.
I'm trying to create curved window, using mostly simple patch meshes, so it would look like one solid piece of glass. I've created simple shader, using q3map_nonplanar and q3map_shadeangle 179, however it still has visible difference between two adjacent patches. Screenshots will help to understand this issue.
Image
As you can see, there are two horizontal lines across window (that's where the two patches meet), and there is visible difference in texture alignment. What should I do? Recreating whole thing with brushes will take ages, and right now the window looks really awful. Should I change something in my shader file or even glass texture? I'm out of ideas, so I would be extremely grateful for any help.
Cheers.

Author:  sst13 [ 08-08-2016 08:10 AM ]
Post subject:  Re: Problems with glass shaders

I think q3map_nonplanar and q3map_shadeangle works only with brushes, not curves.

The solution to your problem is to build the entire glass from a single patch, not seperate ones.

But it looks atm more realistic, like glass would look in the real world with this shape... :up:

Author:  kejR [ 08-08-2016 08:23 AM ]
Post subject:  Re: Problems with glass shaders

I am not sure if it's possible to build that window as a single patch, mainly because it has straight edges (it is more like V shape with flat middle, instead of perfectly smooth curve), unless there is some method I am not aware of.
It shouldn't look realistic, because it's bloody Star Wars map. It must look cool and spacey! ;) Besides that, those horizontal lines are ruining view from the window, which is one of the most important features of this small map. Thanks for the info about shader keys working only with brushes - if it's true, then I must think of something else, some sort of alternative solution or shape. Maybe I'll try to recreate whole glass with brushes, but that might be last thing I'd try.

Author:  AndyW [ 08-08-2016 09:14 AM ]
Post subject:  Re: Problems with glass shaders

Its not a problem, just use a ENDCAP and add 2 ROWS like this:



Edit: Sorry, i didnt read the part with the V-Shape when i took the picture.

Author:  sst13 [ 08-08-2016 10:49 AM ]
Post subject:  Re: Problems with glass shaders

AndyW wrote:
...just use a ENDCAP and add 2 ROWS...

Endcap with 3 rows and it will work!
Or Simple Patch Mesh width=5 height=7 is basically the same.

Image

Author:  Theftbot [ 08-08-2016 10:45 PM ]
Post subject:  Re: Problems with glass shaders

one patch:
http://imgur.com/a/WcKfF

Author:  kejR [ 08-09-2016 02:00 PM ]
Post subject:  Re: Problems with glass shaders

Thank you for all your responses, I couldn't ask for more. I still have so much to learn about using patches, because I had no idea how to create straight edges with it. :P
Image
Looks perfect, just how I wanted (window is more visible in-game, but I might change texture to something less transparent). Again, huge thanks to all of you for such quick and helpful answers.

Author:  obsidian [ 08-09-2016 08:23 PM ]
Post subject:  Re: Problems with glass shaders

Curious, what game is this for?

Author:  Theftbot [ 08-09-2016 08:59 PM ]
Post subject:  Re: Problems with glass shaders

most likely Jedi Academy

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