[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - Texture alignment with origin brushes and func_door_rotate

Texture alignment with origin brushes and func_door_rotate

Discuss the construction of maps and the tools to create maps for 3D games.

Moderator: InsideQC Admins

Texture alignment with origin brushes and func_door_rotate

Postby jitspoe » Wed Feb 18, 2015 5:20 am

I thought I saw this mentioned here somewhere, but I can't seem to find it.

I've just run into an issue working on a Quake2 map where converting my carefully aligned brushes into a func_door_rotating causes the textures to get all messed up. It seems the offsets are relative to the origin brush, instead of the world origin. Is this an editor bug? Compiler bug? Engine bug? What's the best way to go about fixing this?

jitspoe
 
Posts: 217
Joined: Mon Jan 17, 2005 5:27 am

Re: Texture alignment with origin brushes and func_door_rota

Postby Spike » Wed Feb 18, 2015 8:10 am

I'm gonna say its a compiler bug, seeing as that's the one that actually adjusts the verticies+brushes ny subtacting the origin, that's the one that should also adjust the texture coords to match that new origin too.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: Texture alignment with origin brushes and func_door_rota

Postby jitspoe » Wed Feb 18, 2015 9:31 pm

That's kind of what I was thinking. I just didn't want to try to fix it there, then discover it was misaligned in other Quake2 engines because the bug was fixed elsewhere.

jitspoe
 
Posts: 217
Joined: Mon Jan 17, 2005 5:27 am

Re: Texture alignment with origin brushes and func_door_rota

Postby Spike » Wed Feb 18, 2015 9:51 pm

if you fix it in the engine, you risk breaking vanilla content.
that said, few advanced quake2 engines can still run vanilla properly so I'm not sure it matters that much anyway.
fixing it in the engine requires parsing the entity lump to match model and origin fields. which is ugly enough that I doubt anyone sane bothered to do it.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: Texture alignment with origin brushes and func_door_rota

Postby jitspoe » Wed Mar 04, 2015 5:02 am


jitspoe
 
Posts: 217
Joined: Mon Jan 17, 2005 5:27 am

Re: Texture alignment with origin brushes and func_door_rota

Postby Knightmare » Sun May 29, 2016 8:44 am

That code in DeWan's QBSP3 DOES fix the texture alignment issue, you just have to add the -origfix parameter at the command line. My own KMQBSP3, which is derived from it, has this option enabled by default.
Knightmare
 
Posts: 63
Joined: Thu Feb 09, 2012 1:55 am

Re: Texture alignment with origin brushes and func_door_rota

Postby jitspoe » Wed Jun 01, 2016 2:23 am

Awesome. I'll enable it by default as well. Good call.

jitspoe
 
Posts: 217
Joined: Mon Jan 17, 2005 5:27 am


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest