Check out Half-Life Re-imagined competition results!
Check out Skewing textures in Hammer, our newest tutorial!
Welcome, Jongmeister, our newest member!

logo

Site Stuff

Reference

Maps

Community

ShoutBOX

Poll

Feeling Blue

What's your favourite shade of blue?

Azure

21

Cobalt

37

Turquoise

11

Cyan

17

Royal

11

Teal

3

Onliners

36 secs

Jessie

12 mins

ZikShadow

39 mins

Windawz

53 mins

Admer456

1 hours

Soup Miner

1 hours

Penguinboy

1 hours

lukkasz323

Affiliates

A gaming and technology blog by TWHL admins Penguinboy and Ant. A music blog by TWHL users Ant and Hugh.

Plan-Shape (Mesh Generator and Texturize

[1]

Forums > HL Engine Discussion

18 Jan 18, 22:34
By ToTac
avatar
Member
Hey there guys!

I am very happy I can finally show this to the Goldsource mapping community. For the past 8 months (since May 2017) I was working on a C++ project I am calling "PlanShape", which is a generator (or whatever you would call it) for circular bodies (cylinder, arch, tori and sphere) that also completely texturizes the objects during the process.
The basic principle for the mesh generation is inspired by this tutorial. For those who don't know it yet, you start with a PI circle made of 12 vertices, rotate it by 15 degree and then snap it to a larger grid. The resulting circle is some kind of mathmatical miracle, because objects you can create of it will have planar faces, which is a major advantage of course (no triangles & clean coordinates at best). The circle can also be divided into higher resolutions, without loosing these advantages.

There are some downsides, too, of course, the biggest one being floating point coordinates.
While 12 is the minimum resolution, it can be theoretically doubled endlessly, but the higher it goes, the higher the chance for floating point coordinates will be. Hammer can't import those, not even with vluzacns floating point patch installed. You can minimize this effect by using low resolutions and/or large radiuses for the objects.
If you can't avoid having FPCs in the object, the program will enlarge it automatically until the coordinate becomes integer. E.G.: 64.75 * 2 = 129.5 * 2 = 259. The scale factor for Hammer would then be added to the map file and can be seen in the maps properties menu, so you can regain its original size again.
Modern editors like Sledge and JACK should be able to load FPCs without these issues, but stince I still prefer Hammer over everything, this was an important feature to me.

No GUI! One more downside is, that there's no GUI yet, and probably never will be, so the process is not very practical, but still very helpful for huge high res objects, that also need to be textured.
Not Circular! The resulting object will also not be completely circular in terms of PI. This isn't a problem, unless you're planning to let it rotate very fast. Otherwise nobody can tell the difference.

Long story short, I've created a site for the tool and added a few download mirrors and a documentation.

Latest version download mirrors:
- ModDB
- Mediafire
- Gibshooter.com

Potential Future Updates:
- Hollow Sphere
- the missing texture region
- optimized brush structure
- RMF export

Everything else there is to say I either added to the Readme file or the (online) documentation.
I would be really thankful for any feedback and bug reports! The last can be send to my email adress (totac@web.de), including the correspondent files and a desciption of the problem.
I look forward to your feedback. Let me know what you think of it and if it helped you in one of your projects!



18 Jan 18, 22:41
By Bruce
avatar
Member
This is epic, extremely small precision loss and incredible performance savings. Great work
19 Jan 18, 10:58
By tschumann
avatar
Member
Nice work - I don't do a whole lot of mapping myself but I know that automating something like this is a whole lot less painful than trying to do it all manually.
[1]

Forums > HL Engine Discussion

Login to Reply

You must be logged in to reply.