Page 1 of 1

Creating circular geometry

PostPosted: 07 May 2013, 16:00
by Jamestonjes
This may sound stupid, but may be a tool/grid/something/option to make circles easier to make (please tell me if there is one as this will make "life" a lot easier)

Re: HOWTO: Submit your content, idea, proposal, or issue

PostPosted: 08 May 2013, 03:25
by qreeves
Jamestonjes {l Wrote}:This may sound stupid, but may be a tool/grid/something/option to make circles easier to make (please tell me if there is one as this will make "life" a lot easier)

You already failed, you got step one, but step two:
- Then, create a thread for it, either in Maps & Mods for content, or General Discussion for ideas/proposals.


I should note you'll never create a perfect circle, I'd suggest looking up Cube 2 / Sauerbraten editing tutorials for information on how to deform the octree well.

Re: HOWTO: Submit your content, idea, proposal, or issue

PostPosted: 08 May 2013, 03:51
by greaserpirate
Jamestonjes {l Wrote}:This may sound stupid, but may be a tool/grid/something/option to make circles easier to make (please tell me if there is one as this will make "life" a lot easier)


Just remember: 1-3-8. (push the first corner once, second corner 3 times, third corner 8 times).

Re: HOWTO: Submit your content, idea, proposal, or issue

PostPosted: 08 May 2013, 14:48
by Jamestonjes
OK thank you will try both of your advice

Re: HOWTO: Submit your content, idea, proposal, or issue

PostPosted: 31 Jul 2013, 13:23
by Calinou
greaserpirate {l Wrote}:
Jamestonjes {l Wrote}:This may sound stupid, but may be a tool/grid/something/option to make circles easier to make (please tell me if there is one as this will make "life" a lot easier)


Just remember: 1-3-8. (push the first corner once, second corner 3 times, third corner 8 times).


That makes low-quality circles.

Brushes for better circles: https://dl.dropboxusercontent.com/u/823 ... rushes.zip

(yes, bump, but still. :P)

Re: HOWTO: Submit your content, idea, proposal, or issue

PostPosted: 31 Jul 2013, 16:13
by Ulukai
Calinou {l Wrote}:
greaserpirate {l Wrote}:
Jamestonjes {l Wrote}:This may sound stupid, but may be a tool/grid/something/option to make circles easier to make (please tell me if there is one as this will make "life" a lot easier)


Just remember: 1-3-8. (push the first corner once, second corner 3 times, third corner 8 times).


That makes low-quality circles.

Brushes for better circles: https://dl.dropboxusercontent.com/u/823 ... rushes.zip

(yes, bump, but still. :P)

It might be a stupid question, but how do you use these brushes?

Re: HOWTO: Submit your content, idea, proposal, or issue

PostPosted: 31 Jul 2013, 18:04
by Sniper-Goth
Ulukai {l Wrote}: It might be a stupid question, but how do you use these brushes?


Make a geometry, type /savebrush NAMEOFTHEBRUSH to save a brush for future use, and /pastebrush NAMEOFTHEBRUSH to paste it.
It doesn't work online though.

Re: HOWTO: Submit your content, idea, proposal, or issue

PostPosted: 31 Jul 2013, 20:09
by Ulukai
Nice to know, thanks! Now you say so, I think I read it on the wiki once but I must have forgotten about it...

Re: HOWTO: Submit your content, idea, proposal, or issue

PostPosted: 01 Aug 2013, 10:40
by Calinou
Sniper-Goth {l Wrote}:
Ulukai {l Wrote}: It might be a stupid question, but how do you use these brushes?


Make a geometry, type /savebrush NAMEOFTHEBRUSH to save a brush for future use, and /pastebrush NAMEOFTHEBRUSH to paste it.
It doesn't work online though.


You can use /nompedit 0, paste your brush/use heightmap/vcommands/blendmap/whatever, then /sendmap and ask the other players to /getmap.

Re: HOWTO: Submit your content, idea, proposal, or issue

PostPosted: 01 Aug 2013, 11:52
by TristamK
Sniper-Goth {l Wrote}:
Make a geometry, type /savebrush NAMEOFTHEBRUSH to save a brush for future use, and /pastebrush NAMEOFTHEBRUSH to paste it.
It doesn't work online though.


Fu....WHY I DON"T KNOW ABOUT THIS THING BEFORE ?? I could have avoided so many problems with help this thing....

Re: Creating circular geometry

PostPosted: 01 Aug 2013, 13:01
by Ulukai
Once I created a basic shape and I need to reuse it in another map I make I usually just copy-paste it between those maps. You can perfectly copy stuff from map A, then load map B and paste it in there ^^
You can do the same with entities.

Re: Creating circular geometry

PostPosted: 01 Aug 2013, 13:52
by TristamK
Ulukai {l Wrote}:Once I created a basic shape and I need to reuse it in another map I make I usually just copy-paste it between those maps. You can perfectly copy stuff from map A, then load map B and paste it in there ^^
You can do the same with entities.

Sure. Before this tip with brushes i did the same. But now i can use brushes and it is much more easy)

Re: Creating circular geometry

PostPosted: 01 Aug 2013, 17:54
by greaserpirate
Brushes are really useful, and I never knew about that /nompedit command :) .

Calinou's high-quality circle brushes inspired me to make a quick circle compass that can save a lot of time. I made 8 brushes of different sizes (1x1, 2x2, 3x3, etc) for each of the types of circle: outside, inside, and both. You can place any of them by putting the "circles" folder in your "brush" folder (in your Red Eclipse directory in My Documents for windows and home/.redeclipse for *nix), and adding this code to your autoexec.cfg file (or putting the "quickcircles.cfg file in your RE directory and adding the line "exec quickcircles.cfg"):

{l Code}: {l Select All Code}
newcompass quickcircles "textures/editing" [
    compass "outer" "O" [showcompass circle_o]
    compass "inner" "I" [showcompass circle_i]
    compass "both" "B" [showcompass circle_i_o]
]

newcompass circle_o "textures/hud/blip" [
    compass "1x1 (low-quality)" "1" [pastebrush brush/circles/circle_o_1]
    compass "2x2" "2" [pastebrush brush/circles/circle_o_2]
    compass "3x3" "3" [pastebrush brush/circles/circle_o_3]
    compass "4x4" "4" [pastebrush brush/circles/circle_o_4]
    compass "5x5 (low-quality)" "5" [pastebrush brush/circles/circle_o_5]
    compass "6x6" "6" [pastebrush brush/circles/circle_o_6]
    compass "7x7" "7" [pastebrush brush/circles/circle_o_7]
    compass "8x8" "8" [pastebrush brush/circles/circle_o_8]
]


newcompass circle_i "textures/radiodisable" [
    compass "1x1 (lower quality) " "1" [pastebrush brush/circles/circle_i_1]
    compass "2x2" "2" [pastebrush brush/circles/circle_i_2]
    compass "3x3" "3" [pastebrush brush/circles/circle_i_3]
    compass "4x4" "4" [pastebrush brush/circles/circle_i_4]
    compass "5x5 (broken)" "5" [pastebrush brush/circles/circle_i_5]
    compass "6x6" "6" [pastebrush brush/circles/circle_i_6]
    compass "7x7" "7" [pastebrush brush/circles/circle_i_7]
    compass "8x8" "8" [pastebrush brush/circles/circle_i_8]
]

newcompass circle_i_o "textures/progress" [
    compass "9x9" "9" [pastebrush brush/circles/circle_i_o_9]
    compass "2x2" "2" [pastebrush brush/circles/circle_i_o_2]
    compass "3x3" "3" [pastebrush brush/circles/circle_i_o_3]
    compass "4x4" "4" [pastebrush brush/circles/circle_i_o_4]
    compass "5x5" "5" [pastebrush brush/circles/circle_i_o_5]
    compass "6x6" "6" [pastebrush brush/circles/circle_i_o_6]
    compass "7x7" "7" [pastebrush brush/circles/circle_i_o_7]
    compass "8x8" "8" [pastebrush brush/circles/circle_i_o_8]
]


Then just bind a key to "showcompass quickcircles" (I use N), select what type of circle and what dimensions, and you're set.

You can also do it at lightning speed by pressing the key you've bount it to, "i" for inner, "o" for outer, or "b" for both, and then press the number key of the dimensions you want.

Hopefully this will make editing much smoother for both pros and beginners! And hopefully others will contribute their own time-saving brushes and menus ;)

Re: Creating circular geometry

PostPosted: 02 Aug 2013, 17:26
by bonifarz
greaserpirate {l Wrote}:Calinou's high-quality circle brushes inspired me to make a quick circle compass that can save a lot of time.

This tool looks great. I have the impression those 5kB of obr files deserve to be shipped with the next release, as they seem really useful. Maybe your compasses can merged with the edit menu and the awesome gui by S.E.S..

The only thing I don't fully understand is the way you guys are counting cubes. The o2 and o4 seem to be scaled versions of the o8, with the same level of detail (8x8 per quarter), and the o1 looks like 4x4 per quarter. Anyway, good stuff, thanks for sharing!

Re: Creating circular geometry

PostPosted: 03 Aug 2013, 14:42
by Jamestonjes
cool thank you for this ^^

Re: Creating circular geometry

PostPosted: 01 Sep 2013, 07:11
by Dratz-_C
greaserpirate {l Wrote}:Then just bind a key to "showcompass quickcircles" (I use N)[...].

Does that interfere with selecting entities with the N key? Fearing that it would, I set mine as follows.
editbind KP_MULTIPLY [showcompass quickcircles]
It is the asterisk or star on the numberpad. As far as I know, nothing else is bound to it and it looks round enough to recognize.

Thanks Greaserpirate and Calinou!
Cheers

Re: Creating circular geometry

PostPosted: 01 Sep 2013, 08:24
by bonifarz
Dratz-_C, if you are not sure about conflicts with key binds, there is actually a script for parsing them contained in the awesome GUI by S.E.S.. Otherwise, you can look up all defaults in data/config/setup.cfg.


EDIT:
I find the idea to have brush objects for some of the more tedious geometric primitives quite nice.
As I came across a nice map with templates on quadropolis, I took my time to port it to RE, scan it for useful stuff, apply the checkerboard texture, count the cubes and collect brush objects with a reasonable nomenclature.
I would like to share this here together with a bunch of sphere objects, as it may be useful for editing. I have not made a script in the spirit of greaserpirate's quickcircles, but that should not be difficult to add if needed.
Sticking a legal info to a random collection of geometry objects feels odd, but i guess cc-by-sa cannot be wrong.

EDIT2: Here is a snippet of cubescript i find useful in this context:
{l Code}: {l Select All Code}
newgui brushes [
    guitext "Select a brush to paste:"
        guibar
        guilist [
        looplist dir ". v s circles" [
           guibar
           guilist [
               guitext $dir
               guibar
               loopfiles i (concatword "brush/" $dir) obr [
                   guibutton $i [
                       pastebrush brush/@dir/@i
                   ]
               ]
           ]
        ]
    ]
]