Patch for q3map2 that needs testing (TERRAIN BUG)

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Patch for q3map2 that needs testing (TERRAIN BUG)

Postby divVerent » Tue Dec 04, 2007 3:40 pm

http://emptyset.endoftheinternet.org/~p ... bined.diff
http://emptyset.endoftheinternet.org/~p ... 080108.zip

Please apply this patch to your q3map2, and compile a map that with current q3map2 gets holes in the terrain. Also, try changing the misc_model spawnflags from 6 to 22. It looks like this patch actually fixes the big bug with models in maps, but I want it to be tested before I send it to the q3map2 guys.

The bug was that planes are snapped to axial planes when possible (otherwise, it creates too many planes) - however, the snap routine rotated the plane around the ORIGIN to change the normals. So the 0.25 degrees snap angle it allowed could become so much that it even destroyed brushes.

I modified the snapping routine so it ensures that a point of a triangle stays on the plane when it is rotated.
Last edited by divVerent on Tue Jan 08, 2008 1:08 pm, edited 2 times in total.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby SavageX » Tue Dec 04, 2007 7:22 pm

Seems to work fine for me.

Thanks alot. Great stuff.
SavageX
Site Admin
 
Posts: 442
Joined: Wed Mar 01, 2006 9:34 am

Postby torus » Tue Dec 04, 2007 7:53 pm

I used Spawnflags 6 in Silvion, and so far I haven't seen any map holes. Would there be any advantage to using this new patch in the next build?
Image
torus
Forum addon
 
Posts: 1341
Joined: Sun Dec 24, 2006 6:59 am
Location: USA

Postby divVerent » Tue Dec 04, 2007 8:08 pm

No, it would neither help nor hinder.

BTW, I could confirm that this patch fixes the hole on brokenworld. I'll make a version of brokenworld without the hole.

To check for holes:

r_showcollisionbrushes 0.6
r_showcollisionbrushes_polygonfactor -8

helps quite much.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby divVerent » Tue Dec 04, 2007 10:54 pm

Get a fixed version of brokenworld at: http://emptyset.endoftheinternet.org/~p ... 2-div0.pk3
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Rad Ished » Tue Dec 04, 2007 10:58 pm

Mended World?
Rad Ished
Keyboard killer
 
Posts: 609
Joined: Wed Jun 27, 2007 8:00 am
Location: Not the Netherlands

Postby divVerent » Tue Dec 04, 2007 11:21 pm

What I wanted to say: Mappers, take this patch and build us some cool terrain maps :P
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby torus » Tue Dec 04, 2007 11:36 pm

divVerent wrote:What I wanted to say: Mappers, take this patch and build us some cool terrain maps :P


Done, and working on another.
Image
torus
Forum addon
 
Posts: 1341
Joined: Sun Dec 24, 2006 6:59 am
Location: USA

Postby pavlvs327 » Wed Dec 05, 2007 1:21 am

Rad Ished wrote:Mended World?


ahahah :P
pavlvs327
Advanced member
 
Posts: 86
Joined: Mon Aug 27, 2007 9:05 pm

Postby divVerent » Wed Dec 05, 2007 11:01 am

I updated the patch a little. It now even closes the tiny grenade sized holes on testterrain that my patch did not get rid of before.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Next

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron