#XXL Pallets

1 messages · Page 1 of 1 (latest)

lilac cloak
#

I like the way these look. The texture is good

#

One of these days someone is going to make a tool that generates PHX meshes dynamically and then we'll see some shit

torn wagon
#

texture is based off woodflor005a

lilac cloak
#

Very nice

torn wagon
#

some guy already made procedural meshes

#

but tool is complicated for not "builder nerds"

#

but very powerful

#

and builds good convex collision

#

added x3 variants of panels and x05

lilac cloak
#

Are you going to create gibs?

torn wagon
#

maybe

#

but now i am ok with default hl2

lilac cloak
#

Do you have a link to the dynamic PHX meshes addon?

#

I'm curious about it

torn wagon
#

trying to find it

#

it was smth like a tool that created editable primitives

lilac cloak
#

Oh that does look complicated

torn wagon
#

still trying to find a good way for defining these wooden props health

#

i was using thing that if prop is 2 times heavier, props health will be 1.5x times higher

#

because with 2x health values become huge

ancient stone
#

😍

torn wagon
#

for example this one had 3600

lilac cloak
#

I would figure out a good health for a 1x1 panel and then multiply that by the surface area

#

So if you have a 0.5x2 panel, it has the same health as a 1x1 panel

torn wagon
#

trying to find good formula so you wont be able to just create 4x4 plate that is almost indestructible with bullets

lilac cloak
#

What are you basing it on? Weight?

torn wagon
#

weight is based on its scale

#

so 2x0.5 has same weight as 1x1

#

weight is ok with this thing

#

but health for big props

lilac cloak
#

What kind of formula are you trying?

#

I want to see if I can make one, but I don't know your inputs

#

health = weight * 1.5 ?

torn wagon
#

trying to make balance for big props

#

so walls made out of these props wouldnt have huge health

lilac cloak
#

I understand your balance goal

#

You said you have a bad formula, right?

#

Can I see it?

torn wagon
#

but not sure if this is exactly this one

lilac cloak
#

What is weight difference?

torn wagon
#

i was just thinking if prop is 2 times bigger, i would just scale weight by 1.5 instead
but this is not worked when x3 and x05 props appeared

torn wagon
lilac cloak
#

Hmm

torn wagon
#

also source what the fuck

lilac cloak
#

Floating point imprecision 🤩

torn wagon
#

but this works if i set weight manually and paste with advdupe2

#

so it is studiomdl issue?

lilac cloak
torn wagon
#

yea studiomdl issue

#

maybe should make request to rubat if he can improve it

#

atleast i can manually fixup imprecise values

lilac cloak
#
Min Mass: 50
Min Health: 50
Max Health: 200
Mass: 50    Health: 50
Mass: 100    Health: 87
Mass: 200    Health: 134
Mass: 400    Health: 164
Mass: 800    Health: 181
Mass: 1600    Health: 190
Mass: 3200    Health: 195
Mass: 6400    Health: 197
Mass: 12800    Health: 198
#

How does this look?

torn wagon
#

is this list made by hand?

#

or some formula to define

lilac cloak
#

Formula

torn wagon
#

do you have it?

lilac cloak
#
local minMass = 50

local minHealth = 50
local maxHealth = 200

local function GetHealth( mass )
    return minHealth + math.floor( math.pow( ( mass - minMass ) / mass, 2 ) * ( maxHealth - minHealth ) )
end

local testMasses = {
    50,
    100,
    200,
    400,
    800,
    1600,
    3200,
    6400,
    12800
}

local function TestHealth()
    print( "Min Mass: " .. minMass )
    print( "Min Health: " .. minHealth )
    print( "Max Health: " .. maxHealth )

    for i = 1, #testMasses do
        local mass = testMasses[i]
        local health = GetHealth( mass )
        print( "Mass: " .. mass .. "\tHealth: " .. health )
    end
end

TestHealth()
torn wagon
#

thanks

lilac cloak
#

Just... don't go under the min mass value

torn wagon
#

?

lilac cloak
#
Min Mass: 50
Min Health: 50
Max Health: 200
Mass: 25    Health: 200
Mass: 50    Health: 50
#

It won't like it

torn wagon
#

oh

lilac cloak
#

You can change the min and max mass variables

torn wagon
#

guess ill just do old thing with planks

#

oh nvm

lilac cloak
#

It's configurable, just make sure to obey the config

torn wagon
#

will it work in console if i just paste it in autorun lua?

lilac cloak
#

Yes but you can also do it here

#

Doesn't need to be in Garry's Mod

torn wagon
#

big spike at the start

lilac cloak
#

Nevermind then

lilac cloak
#

It's set up so that as you get more and more mass, the amount of health the extra mass gives is less and less

torn wagon
#

any way to smooth it?

#

because almost 200hp difference

lilac cloak
#

Hmm

#

There is definitely a way... let me play with the math a bit

#

Can you give me your variables?

#

The min mass, max mass, etc.

torn wagon
lilac cloak
#

Try changing this 2 to a 5

#
local function GetHealth( mass )
    return minHealth + math.floor( math.pow( ( mass - minMass ) / mass, 5 ) * ( maxHealth - minHealth ) )
end
torn wagon
#

better

lilac cloak
#

I'm not a math guy so I don't know exactly how to customize it

#

This is basically a modified version of the math to generate a random integer between some minimum and maximum value using a double in the range 0-1

torn wagon
#

formula works great for panels

#

tysm

lilac cloak
#

Glad it helped!

torn wagon
#

pack now looks like that, should add wheels and other stuff like tubes and frame cubes

torn wagon
#

lod

#

but need to tweak textures

lilac cloak
#

Do the orignal PHX props have LODs?

torn wagon
#

was tested on r_lod 6 command

#

placed airboat on back to show that command works

#

decided to add verts because 2 208 verts total on all 18 props

#

lod pushes down this value to 144

lilac cloak
#

If you have a good workflow for creating those LODs, consider creating LODs for them

#

I'm sure it would increase performance for those with less powerful hardware

torn wagon
#

my workflow is very bad

#

semi-manual

lilac cloak
#

Unfortunately I think semi-manual is the only realistic way

#

Is it time consuming?

torn wagon
#

like i put decimate modifier with angle limit of 1

#

and then fixing uv manually

#

done this for my props

lilac cloak
#

I was assuming you were creating the mesh from a cube manually and then setting up the UVs by hand

torn wagon
#

debugging stuff rn, some uvs are not correct positions

lilac cloak
#

Does decimating the model save time compared to creating a cube and scaling it?

lilac cloak
#

Interesting

torn wagon
#

it saves top and down sides of uv

#

some fixed some not, source moment

#

wait ofc it wasnt fixed i not selected 3x05 mesh

#

also 3x3 and 1x3

#

lods are pain, but important in case of these props

#

because mostly used in big amounts

lilac cloak
#

It's well worth the pain

#

It has a long-term pay-off

torn wagon
#

almost impossible to notice (even harder on video cuz compressed), bug gpu and small part of cpu says thanks

lilac cloak
#

Looks good! These are very fully-featured PHX-style props

torn wagon
#

also decided to simplify collision

lilac cloak
#

Was it complex?

torn wagon
#

removed small bevels

#

but idk about this PHX prop

#

simplified round props collision is easy to notice

torn wagon
lilac cloak
lilac cloak
torn wagon
#

potato

#

gmod stuff is very bad in collision

lilac cloak
#

So I see

#

Some things need precise collisions, but I don't think they need THAT precise of collisions

torn wagon
#

wheels should be precise

#

but in lua they might be just spheres

#

cheaper

#

and not phase to ground at high rpm

lilac cloak
#

The outside edge needs precision but not the inside

torn wagon
#

true

#

i think 24-32 is enough

#

for physical

torn wagon
#

simpler rtt shadow

#

not so much boost but for overall performance

#

also custom gibs are good

#

but generic

#

if getting custom gibs for every prop it will fill up precache

#

and texture tiling is too noticeable

lilac cloak
#

The tiling looks fine to me