[UTILITY] Twister 5 Created 15 years ago2008-07-30 07:43:46 UTC by Penguinboy Penguinboy

Created 15 years ago2008-07-30 07:43:46 UTC by Penguinboy Penguinboy

Posted 15 years ago2008-07-30 07:57:12 UTC Post #253167
After a year with no updates at all, I decided to redo Twister completely from scratch. Now it's smaller, faster, and better!

Better how?
  • Spherical displacements! (because I could!)
  • Brushwork displacements! (so you can make them into entities!)
  • Goldsource displacements! (that's right!)
Note that you can't make spheres in brushwork or goldsource modes.

Download here! Don't use the autoupdate feature in previous versions, as a bug will make it download the wrong thing. Get it here.

Comments please! Read the bold below.

There will never be a "3D preview" or any kind of other preview in Twister. Ever. The 2D preview in the last version was dumb and pointless. If you want to preview something generated in Twister, download Nem's Crafty, which is a BSP, VMF, MAP, etc viewer. It shows the textured displacement (or brushwork) in 3D.

Next up on the to-do list is: import a displacement .VMF file and convert it to brushwork or goldsource!
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-07-30 07:57:35 UTC Post #253168
Concentrate on that 3D preview for the next ver.
Daubster DaubsterVault Dweller
Posted 15 years ago2008-07-30 07:58:55 UTC Post #253169
Shutup >:(
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-07-30 08:00:53 UTC Post #253170
DO EET.

Awesome though, Twister is sure to become one of my regular proggies, right up there with VTFEdit.
Strider StriderTuned to a dead channel.
Posted 15 years ago2008-07-30 08:05:14 UTC Post #253171
Very nice. Beter get that Projects feature for TWHL finished. :D

How about some more grafix? :P
The about window still has "(C) Penguinboy - July 5th, 2007". Should'nt it be 2008?
The Mad Carrot The Mad CarrotMad Carrot
Posted 15 years ago2008-07-30 08:07:20 UTC Post #253172
oops. I'll fix it next release. Not like it's important :P
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-07-30 08:50:57 UTC Post #253174
Goldsource, you say? You just made an awesome tool alot more awesome! ;)
ChickenFist ChickenFist<Witty Title>
Posted 15 years ago2008-07-30 10:40:07 UTC Post #253176
Yah! Goldsource!!
Posted 15 years ago2008-07-31 10:20:08 UTC Post #253217
If you want i could make a small help file for those people who don't understand it?

EDIT: Bug Reports...

1) When i try to generate a map an load it i get an error: Texture axis perpendicular to face. But anyway its "fixable"

2) its just actually a complaint. Why are spheres only for source? :\
Posted 15 years ago2008-07-31 12:42:26 UTC Post #253218
Perhaps a setting to make the backsides null or bevel, and the top aaatrigger for easier replacement?

I'm going to see I can make something nice with it. It's by far one of the best generators I've experienced. It's easy and it uses the tetra method, which makes it better. Everything has been done right!
Rimrook RimrookSince 2003
Posted 15 years ago2008-07-31 19:42:02 UTC Post #253228
okay, i'll put null onto the bottoms of the brushes.

HLG: i'll look into texture alignment later. spheres are only for source because of the way that they are done, it is incompatible with brushwork methods. if you want a sphere you can combine two domes.
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-07-31 20:24:08 UTC Post #253229
first version i tried;

first version i fell in love with.

fantastic.
Archie ArchieGoodbye Moonmen
Posted 15 years ago2008-08-01 01:28:37 UTC Post #253232
That heightmap thing.. Fucking amazing.
I'm seriously considering using this for terrain in a certain map I've been working on for a very long time. ;o
Daubster DaubsterVault Dweller
Posted 15 years ago2008-08-01 01:35:33 UTC Post #253233
I was going to make a pure organic map using the Tetra-Terrain method, but got irritated with try to mold it on a grand scale. This speeds things up alot, and I'm considering to continue that idea.

Oh yeah, if anyone makes anything good, provide an example for that tutorial. It needs some awesome examples, at least some much more polished product screenshot.
Rimrook RimrookSince 2003
Posted 15 years ago2008-08-01 07:05:29 UTC Post #253243
Here's a new screenshot of features to come:
User posted image
The random heightmap does exactly what it says: generates a random heightmap image based on the variables in the boxes.

The stats box will have information on brush and side counts for goldsource and brushwork mode, and stuff like triangle width and some other junk.

The convert tab on the bottom left will let you import a VMF file and convert every displacement in it to brushwork, and then save as a new file.

Soon you will also be able to embed your generated displacement directly into a VMF, so you don't even have to open the new map and copy/paste into the map you are working on.
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-08-01 09:54:39 UTC Post #253247
Its just so cool....
Posted 15 years ago2008-08-01 12:31:50 UTC Post #253250
How do you get Twister to generate a heightmap? There's probably a lot of code involved, right?

As a programmer like yourself, I'd love to see your code...
The Mad Carrot The Mad CarrotMad Carrot
Posted 15 years ago2008-08-01 12:44:48 UTC Post #253251
The algorythm itself shouldn't be too complicated. Code required to execute it may be a whole different story though..
Daubster DaubsterVault Dweller
Posted 15 years ago2008-08-01 14:11:46 UTC Post #253253
You know, Muzz, .NET assemblies are decompilable back to what's basically the original source code, minus local variable names, comments, etc. Take a look at Reflector.

As for a height-mapping algo: http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=34
Posted 15 years ago2008-08-01 14:25:12 UTC Post #253254
Thanks, Caboose (Do you like train cars btw?.

Not that im going to make a heightmap application myself, i was just wondering how Peng did it.
The Mad Carrot The Mad CarrotMad Carrot
Posted 15 years ago2008-08-01 19:15:05 UTC Post #253256
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-08-01 20:17:51 UTC Post #253258
3D preview plz.
AJ AJGlorious Overlord
Posted 15 years ago2008-08-03 16:57:07 UTC Post #253294
I just realised - can someone using a language that uses commas instead of decimal points test twister?
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-08-03 17:47:24 UTC Post #253295
User posted image

Works great for me.

I'm experimenting with domes right now. (next i'm guna see how they "like" being VMed...)

They're error free and look pretty good, and one thing i've noticed is that tha domes are almost paper thin--which is pretty cool and hard to achieve in hammer--, which could be good or bad, depending on your application. Is there a way to make them thicker? Is that what the power button does or what does it do?

Anyway, cool stuff Penguinboy, and thanks for not forgetting us Goldsource gypsies. (might base a geometry compo using twister in the future, could be cool!)

)

Captain Terror Captain Terrorwhen a man loves a woman
Posted 15 years ago2008-08-04 04:36:23 UTC Post #253300
Because Twister is primarily a displacement generator, it makes more sense when used that way. The power of the displacement is the number of triangles in the displacement.
User posted image
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-08-07 13:56:01 UTC Post #253308
Wow that's seriously pretty neat. I shall experiment a bit more. = )

Here's another dome; Nuthing too special but I still am awed by how easy and nice it works:
User posted image


Cound you post a small instructions for the goldsource heightmaps? I dunno how to make them work but your heightmap images looked cool.

Thanks for creating another neat misc toy for me to play with, to suck yet more valuable time away from my responsibilities. = )
Captain Terror Captain Terrorwhen a man loves a woman
Posted 15 years ago2008-08-07 14:25:33 UTC Post #253412
lol...yesterday i thought about that zelda-like-twisted-corridors...and now ... jeesus :/
Posted 15 years ago2008-08-07 14:48:52 UTC Post #253416
Holy cow....This is really cool!

Tell me when the next version is avaible...

oh and won't the use of this add a lot to r_speeds ? :o
Posted 15 years ago2008-08-07 21:01:03 UTC Post #253452
it sure will :P

capt: goldsource heightmaps work exactly the same, except the "displacement resolution" is the number of displacements on each side of the whole heightmap. so if you set the power to 3 (8 triangles) and the displacement resolution to 4, that's 8 x 4 = 32 triangles on each side. the width of each triangle would be the width you provided divided by 32.
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-08-10 14:03:04 UTC Post #253556
Shutup >:(
hahaha

...

sooo, i guess since i've never tried it i should? :zonked:

EDIT: exactly what is this program, and what does it do?
Posted 15 years ago2008-08-10 21:54:44 UTC Post #253581
Lol!!
You're still tring to flog this program!!! While I will admit it's good for Source, I still think Gensurf is better because it has a shearing tool. This will attempt to save brushes by turning trianges on the same plane into one big triangle.
Posted 15 years ago2008-08-15 09:06:26 UTC Post #253797
i hate gensurf D;
Posted 15 years ago2008-08-19 21:55:27 UTC Post #254149
Why!?!?!
Posted 15 years ago2008-08-21 08:11:10 UTC Post #254210
EDIT: and here we go:
User posted image
generated with this string:
200 * cos(((xval-(res/2))/3)*((yval-(res/2))/3))
here's another:
User posted image
400*cos(((xval-(res/2))/2)) * sin(((yval-(res/2))/2))
and finally the one from the gensurf website (modified):
User posted image
5000-(radius/16+256*sin(radius/256))
i just looked at gensurf and because it is incompatible with newer versions of Excel so the formula function doesn't work, it seems pretty useless. besides, Twister's purpose is different to gensurf's, except for heightmaps.

so now i'm going to try to put an excel formula parser in Twister that doesn't depend on excel. go me.
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-08-27 14:36:23 UTC Post #254600
Go pengu i can't wait :P
Posted 15 years ago2008-08-27 16:46:10 UTC Post #254603
Messing with goniometry is fun:P Love doing that.

BTW, looks pretty damn sexy! I would hate to make those shapes by hand.
Posted 15 years ago2008-08-27 21:22:00 UTC Post #254615
lol, i've done it and its boring as hell!!! I kinda had no willpower to actually finish the map it was for!!!

#EDIT# Allright, for discrimation purposes i will try your twisty program

mmm...twisties...yum...actually i'll try in a little while :nuts:
Posted 15 years ago2008-08-29 07:41:33 UTC Post #254692
An update to Twister has been released. If you already have Twister, just run it and the auto-updater will take care of everything. If not, the download link is on the first post of this thread.

Additions:
Statistics box: Pretty self explanatory.

Random Heightmaps: You can tweak the settings to change a few of the options of the heightmap. The default values are pretty good for a nice smooth heightmap.
Frequency controls the number of high areas in the heightmap.
Persistance controls how "smooth" the hills are.
Octaves represent how sharp the image is.
Amplitude is how quick parts of the image go from black to white.
Coverage changes the ratio of white to black areas.
Density changes the distance between high areas in the heightmap.

Convert to brushwork: Here you can import a Hammer VMF with displacements and convert them into brushwork for exporting to brushwork VMF or to goldsource MAP. Note that entity data is not yet converted. Visgroups aren't either, but all brushwork is.

Formula generation: You can put in any mathematical formula and twister will generate a displacement based on it. You can use variables as described on the right panel of the formula tab.
Valid formulas use -,+,/,*,^,!, as well as sin(),cos(),sqrt(), and some other regular maths functions. Some examples are provided above.
Be careful of divide by zero errors or trying to take the sqrt of a negative. These will stop your displacement from being generated. (remember that radius is 0 at some point, if you want to divide by radius you can use the hidden variable "nzradius" which will equal 1 when radius equals zero. "nz" stands for "no zero" :P)

I hope you enjoy the new toys in the update, and I would really like some more feedback after you've played with it a bit. I've implemented some suggested changes like the statistics box, and putting NODRAW (or NULL) on the underside of brushwork.
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-08-29 07:45:51 UTC Post #254693
regedit
Posted 15 years ago2008-08-29 09:21:08 UTC Post #254697
Aww....:( i don't know/undersand these formulas...bad for me...
Posted 15 years ago2008-08-29 22:37:45 UTC Post #254732
All right, i tested it and while l liked the creation of the complex shapes, ie slopes and hollow spheres, i didn't like it for creating displacements for both engines. I will keep it though if i want any tricky shapes but ill still use gensurf. :)
Posted 15 years ago2008-08-29 22:49:15 UTC Post #254733
i didn't like it for creating displacements for both engines
...Huh?
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-08-29 23:29:36 UTC Post #254734
Dang nab it Penguin!! You know what I mean, creating terrain for HL2 and HL1...why cant we just call them displacement terrains for both, huh? Otherwise what do i call it when i make a terrain for HL1???
Posted 15 years ago2008-08-30 00:21:05 UTC Post #254735
Penguinboy: Hey,can you make a tutorial about twister. Especially for the formula thingy? I dont quite get it.
Posted 15 years ago2008-08-30 00:31:00 UTC Post #254736
so what, you don't like the fact that it can make terrain for more than one engine? why not? that's like hating an ice cream store because they sell both chocolate and vanilla, even though you don't eat vanilla.

HLgenius, i wrote a tutorial on how to use the formula thing above. it's not my fault if you can't understand the maths behind it.
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-08-30 02:11:52 UTC Post #254737
its alright. i'll eventually figure it out. maybe i just need some further information
Posted 15 years ago2008-08-30 08:49:49 UTC Post #254746
You just need to finish 5th grade.
Posted 15 years ago2008-09-03 06:07:10 UTC Post #254922
An update to Twister has been released. What changed? 3D preview!

Okay, so I know that I said that Twister wouldn't get a 3D preview, but I changed my mind. Just start Twister and the autoupdater will do its thing.

After you have the new version, you can click the preview button. The first time you try, it'll ask you to install the CSGL library, which is an interface that lets C# use OpenGL. It's only 20kb (the text that says that it's 400kb is wrong). Twister will restart, then you can preview for real.

Controls are the same as Crafty: Right click to mouse look, WASD to move. Press R to reset the camera.

Here is a screen of the preview:
User posted image
NOTE: This has only been tested on windows XP, so Vista users please report if it works or not.
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2008-09-03 06:38:52 UTC Post #254923
I give this update my tick of approval! I was the 'beta' tester and the new features rock. Solid program, so damn useful.
Strider StriderTuned to a dead channel.
Posted 15 years ago2008-09-03 06:50:56 UTC Post #254924
renders & works perfectly in 32bit vista.
Archie ArchieGoodbye Moonmen
You must be logged in to post a response.