Author Topic: Brick Generator - Locked until I recode it and fix the rounds.  (Read 13987 times)



This brick generator allows one the ability of creating either a fully cubic, correctly textured SPECIAL .blb that matches almost exactly to the existing ones, a round brick, or a print brick of your choice.

(scroll down the brick properties to access round brick sizes, doesen't calculate the indent that 1x1 rounds use yet)

Brick Types

Cubic

The "Cubic" type will generate a cubic brick, exactly identical to the default cubic bricks using the Brick length, Brick Width, Brick Height values, along with your choice of print direction under Special Properties and print aspect ratio under Brick Properties.

Round

The Round type allows you to generate a round brick of a specific x, y size and height using the values found within "Round Width/Length","Round Height".
If you generate a brick wider/longer than 1x, it will assume the shape properties of the 1x1 round, with a new set height, otherwise it will assume the shape properties of a 2x2 round.
- Will be generated with a cubic collision, it is impossible to generate rounded collision, this is left up to the creator of the brick to do.

Download

Credits
BlackDragonIV - Providing the UV coord formula I had been looking for, for a very long time.
Ipquarx - Translating BlackDragonIV's UV coord formula into torquescript for me.
Jetz - Teaching me the basics of scripting and giving me the push I really required to get into scripting.
Demian - Providing me with the BrickGen images required for the main menu button.
General - Providing me with a way to calculate the normals for the round bricks, and ramp bricks to come.

Update history;
UPDATE1: fixed uneven top faces
UPDATE2: fixed print rotation left from fixing top coords
UPDATE3: Now calculates rounds
UPDATE4: Rounds now indent if width/length is < 2
UPDATE5: Generates temporary add-on file in config/BrickGen/ and description.txt
« Last Edit: February 14, 2013, 07:58:43 PM by Conservative »

You've been working on this for a while, seems rather impressive.
Good job.

You've been working on this for a while, seems rather impressive.
Good job.
Thanks.

I think this has been made before...

I think this has been made before...

People have tried to make things like this before - including me with others. But we'd give up when we realized making anything more than basic cubic shapes would be more complex than we could convey simply.


I love you for making this.


Oi Siba


oops, I never coded that because of the low ammount of functions that currently exist :P.

EDIT: updated, removed reset button, if later on it turns into more functions than a player can handle, it will be re-added and coded in.
« Last Edit: October 15, 2012, 09:46:52 AM by Conservative »


People have tried to make things like this before - including me with others. But we'd give up when we realized making anything more than basic cubic shapes would be more complex than we could convey simply.
I only have one major problem; I cannot create collision, I can create the shape of the brick but it would be left up to the player to create the collision if its anything more than a cubic brick; like the window bricks that I plan on making.

I originally planned on Wedges, Rounds, Ramps, Window, pole bricks, but only one of those has a regular boxy collision.

Also; even the complexity of the default cubic bricks UV coords have been a mystery to me for a year or so until BlackDragonIV provided me with what I required; I could not get it out of anyone else.

so generating a simple cubic SPECIAL blb hadn't even been an option and thus; this has been delayed for so long.
« Last Edit: October 15, 2012, 09:50:58 AM by Conservative »

oops, I never coded that because of the low ammount of functions that currently exist :P.

EDIT: updated, removed reset button, if later on it turns into more functions than a player can handle, it will be re-added and coded in.
Fine. I made the function myself.

Fine. I made the function myself.
You'll be left back a bit due to updates, unless you constantly update your function too.


Oh my god, this is great!
Good work!