[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: 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 113: 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 113: 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 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
semi automatic model cliping - Custom Map Makers
Welcome to CMM

We've created a Custom Map Makers Discord channel, if you'd like to join us on the CMM Discord Channel, click here

semi automatic model cliping

General mapping discussions
User avatar
gsigms
Posts: 102
Joined: Thu Aug 18, 2011 11:24 am
Location: London, UK

semi automatic model cliping

Postby gsigms » Sun Sep 04, 2011 10:23 am

I am using a few model in the map I am working on: brazier, torch etc.

those models are not very complex but it seems to me autocliping is a bad idea: too complex geometries,

but, I am also lazy and because I use those models very repeatedly, manual clip would be very annoying.

so here is what I did:

this is a brazier model that I am using:
Capture-2.png
model


I created a new map containing only the playerclip brushes for that model (the brushes is placed similarly to the model relatively to the map origin as you would do for an ase model for example). Here the clip brush just account for the rough geometry of the brazier's base
Capture-3.png
model clip


I wrote a python script to automatically add the clip brushes into my map. It takes a few parameters, the filename of the map to "clip", the name of the model to clip, and the filename of the map containing the clip brush "model". The python script parses both the map and the clip model map, and inserts the clip brushes wherever there is an instance of the model to clip:

end result (map, model, clip) works fine:
shot0068.jpg
ingame

User avatar
nemNEMnem
Posts: 271
Joined: Sat Aug 20, 2011 11:11 am
Location: Germany
Contact:

Re: semi automatic model cliping

Postby nemNEMnem » Sun Sep 04, 2011 10:34 am

thats so cool and genius, i cant realy say it on english :D
how does it work? use it the .bsp or the .map file? creates it brushes like your second screenshot or add it more complex? Do you want to give that script to the public?
so many questions...
but then another thing: u know that with the playerclip the enemy can shoot TROUGH the model, thats stupid if the model is a stone or a car or sth like that, but its good and realistic for a tree or something
for a big tree, you need a small axe.
--Bob Marley--

User avatar
LynXIII
Posts: 54
Joined: Thu Aug 25, 2011 3:28 pm
Location: DE

Re: semi automatic model cliping

Postby LynXIII » Sun Sep 04, 2011 10:43 am

don't know what voodoo magic you did there, but it sounds useful :-)

User avatar
gsigms
Posts: 102
Joined: Thu Aug 18, 2011 11:24 am
Location: London, UK

Re: semi automatic model cliping

Postby gsigms » Sun Sep 04, 2011 11:07 am


User avatar
ValkoVer
Posts: 176
Joined: Mon Aug 22, 2011 11:01 am
Location: Poland

Re: semi automatic model cliping

Postby ValkoVer » Sun Sep 04, 2011 11:53 am

Nice, You geek :>

User avatar
theRipper
Posts: 223
Joined: Tue Aug 30, 2011 1:57 pm
Contact:

Re: semi automatic model cliping

Postby theRipper » Sun Sep 04, 2011 2:01 pm

this should be a plugin for radiant :>
Image

User avatar
Rayne
Site Admin
Posts: 624
Joined: Wed Aug 17, 2011 5:22 pm

Re: semi automatic model cliping

Postby Rayne » Sun Sep 04, 2011 2:12 pm

Very nice G. Keep those ideas rolling.
Who says laziness is a bad thing :P
If a man wasn't too lazy to walk he wouldn't invent the wheel.

User avatar
gsigms
Posts: 102
Joined: Thu Aug 18, 2011 11:24 am
Location: London, UK

Re: semi automatic model cliping

Postby gsigms » Sun Sep 04, 2011 2:41 pm


MajkiFajki

Re: semi automatic model cliping

Postby MajkiFajki » Wed Sep 07, 2011 7:46 am


User avatar
DagF
Posts: 276
Joined: Thu Aug 18, 2011 8:40 am
Location: Norway
Contact:

Re: semi automatic model cliping

Postby DagF » Wed Sep 07, 2011 2:47 pm

I am trying to figure this out :P

I have had this in mind, well creating blocks with notepad in mind all since i got back to school.
We are playing around with 3d vectors in maths.

I am trying to move a block from one location to where a model just to see if i can manage.
I would very much like to have a look at your code if you dont mind. I dont know python, but i think i know kodeing well enough to see what you are doing :)

This is a really fun project! Thanks for sharing :D
Image


Return to “Mapping Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests