Quake3World.com Forums
     Level Editing & Modeling
        _decal projection, something I discovered.


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: _decal projection, something I discovered.

The Afflicted
The Afflicted
Joined: 14 Oct 2001
Posts: 581
PostPosted: 01-25-2012 06:01 AM           Profile Send private message  E-mail  Edit post Reply with quote


Many of you may already know this, but I stumbled upon a problem and solution today that I thought might be useful for someone else at some point.
Back in the last Maverick competition I was using chunks of geometry and models side by side. To avoid having some sections marked by gunfire and some not, I added surfaceparm nomarks to all my shaders. Later I wanted to project some decals onto the uneven geometry and discovered that with surfaceparm nomarks _decal projection does not work.
After feeling slightly screwed over by the results of that competition I promptly forgot about my little discovery....until today.
Today I felt inspired to start a little map for Entity Plus. I saw in my head the player starting in an Indiana Jones-esque rain forest ruin. I have been working on some new rock and organic textures and I wanted to test those too.
After making the little forest/ruin starting area I dressed it up with some fern and palm tree models. To complete the picture I added some top-down _decal projections, projecting from above the foliage, to help hide obvious seams or texture repartitions.
That's where I hit my problem. The aplha masked textures of my foliage received the _decal projection. I could have moved things about to avoid the problem, but remembered what I learned in the Maverick map.
That's about it really, rambling post just to say, if you haven't thought of it before surfaceparm nomarks is a good tool for controlling what your projected decals gets drawn on.




Top
                 

Insane Quaker
Insane Quaker
Joined: 28 Dec 2009
Posts: 298
PostPosted: 01-25-2012 05:53 PM           Profile Send private message  E-mail  Edit post Reply with quote


tl;dr anyone?




Top
                 

Cool #9
Cool #9
Joined: 01 Dec 2000
Posts: 44139
PostPosted: 01-26-2012 12:31 AM           Profile   Send private message  E-mail  Edit post Reply with quote


deqer wrote:
tl;dr anyone?


That wasn't too long, I did read it and I learned something from it. I suggest you do the same and if you don't, just don't be a prick and make nonsensical comments like this. It's not General Discussion here.




Top
                 

surfaceparm nomarks
surfaceparm nomarks
Joined: 10 Aug 2009
Posts: 1018
PostPosted: 01-26-2012 12:51 AM           Profile Send private message  E-mail  Edit post Reply with quote


Eraser wrote:
deqer wrote:
tl;dr anyone?


That wasn't too long, I did read it and I learned something from it. I suggest you do the same and if you don't, just don't be a prick and make nonsensical comments like this. It's not General Discussion here.



Seconded.



_________________
Portfolio
Twitter


Top
                 

The Afflicted
The Afflicted
Joined: 14 Oct 2001
Posts: 581
PostPosted: 01-26-2012 05:08 AM           Profile Send private message  E-mail  Edit post Reply with quote


Hey, thanks.
Almost was going to respond but bit my tongue.
Just to be clear the projection was actually being drawn on the alpha masked sections, not just the visible parts of the texture, which is why I thought this was worth mentioning.




Top
                 

Insane Quaker
Insane Quaker
Joined: 05 Mar 2010
Posts: 384
PostPosted: 01-26-2012 09:35 AM           Profile Send private message  E-mail  Edit post Reply with quote


He might be the donkey, but deqer is the real ass around here.




Top
                 

The Illuminated
The Illuminated
Joined: 08 Sep 2000
Posts: 1085
PostPosted: 01-26-2012 02:04 PM           Profile Send private message  E-mail  Edit post Reply with quote


I briefly experimented with decal projection and found the same problem, they project on to everything. I also discovered the nomarks surfaceparm issue (mainly because of terrain), but never thought to use it as an exclusion tool, very cool idea! :up:
You should post some pictures next time, it will make it a lot easier for everyone to understand. Also just ignore deqer, he seems to be having an internet meltdown, your post was certainly relevant to Q3 mapping. I will have to open up my experiment map and have a play again! :D



_________________
Well he was evil, but he did build alot of roads. - Gogglor
My Website & Twitter


Top
                 
Quake3World.com | Forum Index | Level Editing & Modeling


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.