Author Topic: new decal features  (Read 13125 times)

0 Members and 1 Guest are viewing this topic.

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
new decal features
the build
the test data

I'd also like to petition someone to make some good new decal art, everything currently is ripped out of Red Faction and I'd rather get new art if posable. and the glow/burn maps I made or the resuult of five minutes (for all of them total) of tooling around with some color/contrast/brightness controles, so, there realy ugly, let this serve as motivation to you out there makeing new content.

I've added two new features to the damage decals, first glow mapping, decals are lit now, so this will actualy do something, it doesn't suport animation, though I could probly enable it, but all decals would be useing the same frame at the same time (on a single ship at least). also I implemented a animated effect (doesn't use animated textures though) calling it a burn map, it's like another glow map that fades out over the course of however long you want (if you don't specify a time in the tables it defalts to 1 second).
as a result the decal table entry has been altered slightly
(optional)
Code: [Select]

$decal:
+texture:
[COLOR=skyblue]+backface texture:[/COLOR]
+radius:
[COLOR=skyblue]+burn time:[/COLOR]

in this build 'burn time' is actualy 'glow time' I just realised it, but that's irrelevent, it'll be 'burn time' in every other build from now on. it's in milliseconds

oh, and I nearly forgot to mention, becase decals are organised by texture, any given texture must use the same glow map/ burn mapp across all weapons, as a result you only specify the base texture in the tables, it'll look for texturename'-glow' and texturename'-burn' based on that.
« Last Edit: May 22, 2004, 08:28:35 pm by 57 »
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
This has env built in, too? I hope?
Freelance Modeler | Amateur Artist

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
yes, all build I make from now on will have env and decals
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Flipside

  • əp!sd!l£
  • 212
Looks very nice indeed Bobb, especially with the mv_textures installed :D

The only thing I would say is, rather than have them die out after a specific amount of time, as they seem to now, just have a definable maximum per ship? It looks a little bit strange to be strafing a ship and waching your own hits fade away to leave unblemished hull :(

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
it shouldn't be leaveing an unblemished hull...
there should be a scorch mark, like the last version of decals you used (only haveing a orange glowing center), though there is only a set limit of how many you can have on a ship (this is imposed more for perfomence and resorce reasons than being a hard limit, though there are hard limits on the number of decals in the entier mission, and the number of polygons they can use colectively)
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline jdjtcagle

  • 211
  • Already told you people too much!
Question:  Will the weapons.tbl eventually be put in as a part of the code, so it doesn' t break mods??
"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years

 

Offline Carl

  • Render artist
  • 211
    • http://www.3dap.com/hlp/
Another Question: for the limit, do you mean after it has x number of decals...

1. no more can be created?

or...

2. when you make a new one the oldest existing one disappears?
"Gunnery control, fry that ****er!" - nuclear1

 

Offline Xelion

  • 28
  • In the Ether
Quote
Originally posted by jdjtcagle
Question:  Will the weapons.tbl eventually be put in as a part of the code, so it doesn' t break mods??

Is this in Reference to the Media VP?

 

Offline jdjtcagle

  • 211
  • Already told you people too much!
no, to the decals... download
"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years

 

Offline Flipside

  • əp!sd!l£
  • 212
Hmmmm... these seemed to vanish after they had faded? And it was only me cos my wingmates had snuffed it ages ago, so I don't think it was hitcount :(

I'll keep testing and make sure I'm not losing it ;)

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
@Carl: after you hit the limit, it starts recyleing the first decal in the list, wich is probly the oldest, in fact I can't think of how it could not be the oldest, so yeas #2. though the limit and recycleing works on a per texture basis, so if you have a ship with 20 or so big bomb marks on it there not going to disapear becase fighters are takeing pot shots at it.

@jdjtcagle: no. that would be... stupid. if I made this hard coded, can you imagine the outcry I'd get from people who wanted to use this, and had no controle over it? no I'm following standard procedure for this sort of feature, it's a weapon specific thing so it needs to be made in the tables.

@Flipside: I can assure you, unless you'r pounding something insainely hard (like with fifty fighters) there should be marks left, if you'r seeing anything at all, you should see the decal left there. you sould be able to get I think about 150 decals on a cruser sized ship.
« Last Edit: May 22, 2004, 11:46:51 pm by 57 »
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Flipside

  • əp!sd!l£
  • 212
Hmmmmmmmmmm... Yes, it seems to be ok now, not sure what caused that, if it happens again, I'll see if I can figure it out :)

One little thing, I was playing around with a blast texture on photoshop, but it seems to slow the game down massively for some unknown reason, they are .dds file as opposed to the .tga ones, but I tried them first as .tga and the slowdown was just as bad :(

http://www.aqsx85.dsl.pipex.com/Blasts.zip

It could be the 128 x 128 size, but that doesn't really seem an excessive size :(

They are named after some of yours at the moment, since I was just using them to test with :)

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Ishould mention that there are a few bugs to work out of this yet, for instance, some times, the wrong decal is told to burn, it's somewhat rare, but it's anoying the **** out of me.

the new blast mark looks very good.
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Lightspeed

  • Light Years Ahead
  • 212
Bob: I promised to do some decals - and I will definately do this :)

Might even give it a look today...
Modern man is the missing link between ape and human being.

 

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
My poor Horus was covered in pot marks after playing 'Speaking in tongues.' Was fun.
Freelance Modeler | Amateur Artist

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
screenshots you bastards!
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Flipside

  • əp!sd!l£
  • 212
LOL!

Heres the higher res versions of those burn marks if anyone wants to test them, they created an incredible level of slowdown on my machine, but then they are pretty large for impact stencils at 256 x 256 :)

http://www.aqsx85.dsl.pipex.com/BlastHi.zip

I'll try to get some screenies of this build today :)

 

Offline Lightspeed

  • Light Years Ahead
  • 212
Theres some odd slowdown with this, similar to what happens with the env maps (sometimes) - though here its more often.



This is the same ship, same number of decals, viewed from external camera mode. There seems to be a magic barrier - if I get closer my framerate gets literally halved - if I'm beyond the barrier it stays steady at 85 FPS. As you can see there's absolutely no LOD switching or anything in between so there should be no slowdown on approach whatsoever.
Modern man is the missing link between ape and human being.

 
Do you have d3dmipmapping enabled?
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline Flipside

  • əp!sd!l£
  • 212
Yes, I did, I've disabled it now and will give it a try once Lightwave has finished rendering :D

Flipside :)

Nope, still got slowdown.
« Last Edit: May 23, 2004, 11:09:03 am by 394 »