Inside3D!
     

Ha! ... int Q1BSP_ClipDecal in FTEQW
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming
View previous topic :: View next topic  
Author Message
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Fri Jan 22, 2010 3:42 pm    Post subject: Ha! ... int Q1BSP_ClipDecal in FTEQW Reply with quote



There has always been the longstanding weirdness of decals sticking off the edge, maybe this could be applied to shadows somehow too.
_________________
Tomorrow Never Dies. I feel this Tomorrow knocking on the door ...
Back to top
View user's profile Send private message
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Fri Jan 22, 2010 4:08 pm    Post subject: Reply with quote

Better illustration ... me slamming some rockets against a rotating brush model in both FTEGLQW (or software!) and DarkPlaces ...

FTEQW with the decal clipping ... nothing sticking off the brush



DarkPlaces ... the decals hang off the brush



If my memory is right, R00k has been long wanting something like this and Spike had the secret sauce in FTEQW Very Happy
_________________
Tomorrow Never Dies. I feel this Tomorrow knocking on the door ...
Back to top
View user's profile Send private message
Teiman



Joined: 03 Jun 2007
Posts: 309

PostPosted: Fri Jan 22, 2010 4:29 pm    Post subject: Reply with quote

But stainmaps can make something like that (on the bmodels too?) if all you want is a undetailed blob.
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Fri Jan 22, 2010 4:42 pm    Post subject: Reply with quote

no, that is stainmaps.
yes, fte's stainmaps fade out.

clipped decals in fte are used only by defining a particle effect with 'type decal'. There are none built in that do this, and such particles must be static (although an emitting particle can spawn others that last only a frame).
q3's cgame can also use them.
the sw renderer has never supported the rendering of clipped decals.

sorry.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Fri Jan 22, 2010 6:08 pm    Post subject: Reply with quote

I don't really know the difference between decals and stain maps.

Baker -1
_________________
Tomorrow Never Dies. I feel this Tomorrow knocking on the door ...
Back to top
View user's profile Send private message
r00k



Joined: 13 Nov 2004
Posts: 483

PostPosted: Fri Jan 22, 2010 6:12 pm    Post subject: Reply with quote

Baker, decals are actual textured 2d particles applied to a surface, via clipping, of the bsp. Stainmaps is changing the color value of the vertices where the stain impacts the bsp. I use Tenebraes decals; seems quite stable. I had even created a blob that was placed under the feet that drew and clipped per frame, but as the player moved around the shadow would be removed either too slow, (like a water ripple effect), or too soon and become a strobe darklight.

Last edited by r00k on Fri Jan 22, 2010 6:19 pm; edited 2 times in total
Back to top
View user's profile Send private message
Irritant



Joined: 19 May 2008
Posts: 115
Location: Maryland

PostPosted: Fri Jan 22, 2010 6:17 pm    Post subject: Reply with quote

Looks nice. Is the source available yet?

Stainmaps are different, they are the same as lightmaps.

For shadows you'd be better off doing simple stencil volumes so that they don't just draw on flat floor surfaces.
_________________
http://red.planetarena.org - Alien Arena
Back to top
View user's profile Send private message Visit poster's website
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Fri Jan 22, 2010 7:49 pm    Post subject: Reply with quote

Clipped decals were added recently to DarkPlaces. I guess they must be beta or something because they are turned off by default. "cl_decals_newsystem 1" activates them. They even clip to animated models, so if you shoot a soldier a bullet mark will appear on him.
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Back to top
View user's profile Send private message
jim



Joined: 05 Aug 2005
Posts: 400
Location: In The Sun

PostPosted: Fri Jan 22, 2010 8:07 pm    Post subject: Reply with quote

Just when I thought this was needed.. it's already there Very Happy
_________________
zbang!
Back to top
View user's profile Send private message Visit poster's website
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Fri Jan 22, 2010 8:14 pm    Post subject: Reply with quote



Cool!
_________________
Tomorrow Never Dies. I feel this Tomorrow knocking on the door ...
Back to top
View user's profile Send private message
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Fri Jan 22, 2010 8:19 pm    Post subject: Reply with quote

I have noticed that they don't quite show up in the right spot on models. When shooting a grunt in the head, the decal might appear on his shoulder. LordHavoc has told me that this is a bug which needs to be fixed. Maybe this is why the new decal system isn't on by default yet.
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Back to top
View user's profile Send private message
r00k



Joined: 13 Nov 2004
Posts: 483

PostPosted: Sat Jan 23, 2010 7:01 am    Post subject: Reply with quote

Sajt wrote:
Clipped decals were added recently to DarkPlaces. I guess they must be beta or something because they are turned off by default. "cl_decals_newsystem 1" activates them. They even clip to animated models, so if you shoot a soldier a bullet mark will appear on him.



omfNg! thats the only thing i could muster. A ball of hate and throw it from 100 yards. and maybe the blast radius would get a mentionable footnote of desire!

in laymen terms, that besides explosion shells were the 2 pencils in my ear about DP/ more so in Nexiuz...


in sober lamen terms, im excited about teh clipping decals more than sliced wheatberry bread and some warm apple butter with that funny spoon.
Back to top
View user's profile Send private message
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Sat Jan 23, 2010 3:55 pm    Post subject: Reply with quote

I know what you mean. The lack of clipped decals has been the biggest point against DarkPlaces in the last couple of years. I never understood why LordHavoc didn't think they were important. Apparently he eventually gave into the pressure, probably of Nexuiz wanting them.
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Back to top
View user's profile Send private message
qbism



Joined: 04 Nov 2004
Posts: 82

PostPosted: Sun Jan 24, 2010 10:10 pm    Post subject: Reply with quote

The FTEQW pic is of stainmaps, BTW.

Stainmap disadvantage vs. decal is fuzziness. Resolution is limited by the lightmap.

Stainmap advantage is that it works in corners. A single explosion near a corner can paint all the adjacent faces in radius.
_________________
http://qbism.com
Back to top
View user's profile Send private message Visit poster's website
Downsider



Joined: 16 Sep 2008
Posts: 478

PostPosted: Mon Jan 25, 2010 4:06 am    Post subject: Reply with quote

qbism wrote:
The FTEQW pic is of stainmaps, BTW.

Stainmap disadvantage vs. decal is fuzziness. Resolution is limited by the lightmap.

Stainmap advantage is that it works in corners. A single explosion near a corner can paint all the adjacent faces in radius.


The whole idea of the stainmap is to make tons and tons of gore, make it semi-permanent.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group