Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Duke Nukem > Duke Nukem 3D Modifications
Blogs FAQ Community Calendar

Notices

 
 
Thread Tools
Old 04-18-2009, 08:17 PM   #1
Broly

Broly's Avatar
Exclamation Diagonal Shading?
Hey, i have a question for the build program, how do u shade on the side of the buildings Diagonally, i never found out how to do this?
Broly is offline  
Old 04-18-2009, 08:46 PM   #2
marked

marked's Avatar
Re: Diagonal Shading?
I don't know if there is an "official" way of doing it, but I go down to the smallest grid size in Mapster and create a very thin wall over the first one and give it the diagonal slope and darken the texture. As long as you are not right up against that wall looking right at it, it looks fine in the game to me.
Attached Images
File Type: jpg duke0022.jpg (34.8 KB, 64 views)
marked is offline  
Old 04-18-2009, 08:55 PM   #3
Mblackwell

Mblackwell's Avatar
Re: Diagonal Shading?
Or you can make that portion of wall have a sector behind it, slope the sector, join the ceiling and floor, and press 2, then edit the shade of the upper or lower sector.

Or you can use a diagonal sprite. If you're using hi-res art you can make a triangular PNG and have it fade from black to alpha for soft shadows.
__________________
I don't wanna be like other people are
Don't wanna own a key, don't wanna wash my car
Don't wanna have to work like other people do
I want it to be free, I want it to be true

Eduke32.com : The Rejected Applications : The Meadhall of the Comitatus
Mblackwell is offline  
Old 04-18-2009, 09:03 PM   #4
Nimoy

Nimoy's Avatar
Re: Diagonal Shading?
Quote:
Originally Posted by Mblackwell View Post
Or you can make that portion of wall have a sector behind it, slope the sector, join the ceiling and floor, and press 2, then edit the shade of the upper or lower sector.
You can find an example of this in E3L1.
__________________
The feeling is definitely there. It's a new morning in America... fresh, vital. The old cynicism is gone. We have faith in our leaders. We're optimistic as to what becomes of it all. It really boils down to our ability to accept. We don't need pessimism. There are no limits. We dont just want to survive, we want to succeed. - President of the USA, "They Live"
Nimoy is offline  
Old 04-18-2009, 10:56 PM   #5
Dopefish7590

Dopefish7590's Avatar
Re: Diagonal Shading?
I use the corner bridge piece (Tile 415 I think), stretch it, give it a pal of "4" (Black) and add transparency...
Last edited by Dopefish7590; 04-18-2009 at 11:05 PM.
Dopefish7590 is offline  
Old 04-19-2009, 03:50 AM   #6
Mia Max

Mia Max's Avatar
Re: Diagonal Shading?
Well, I've used a lot of diagonal shading in my map.
I spent much more time with shading than creating the architecture
Attached Images
File Type: jpg capt0000.jpg (60.1 KB, 64 views)
File Type: jpg capt0001.jpg (91.5 KB, 75 views)
Mia Max is offline  
Old 04-19-2009, 06:02 AM   #7
Sang

Sang's Avatar
Re: Diagonal Shading?
Gotta wonder: If you use marked's way of doing things, how can you prevent the player from stepping on the thin wall? From my experience the player can land on anything, no matter how thin (though the thinner it gets, the more difficult, but still!)
__________________
traB pu kcip
Sang is offline  
Old 04-19-2009, 07:21 AM   #8
Mia Max

Mia Max's Avatar
Re: Diagonal Shading?
I use the L key. This allows me to move a sector-link(?) without steps. I move the link until there's only one pixel left to another link.
The player won't be able to step on the very thin wall.
Mia Max is offline  
Old 04-19-2009, 07:22 AM   #9
marked

marked's Avatar
Re: Diagonal Shading?
Quote:
Originally Posted by Sang View Post
Gotta wonder: If you use marked's way of doing things, how can you prevent the player from stepping on the thin wall? From my experience the player can land on anything, no matter how thin (though the thinner it gets, the more difficult, but still!)
I'm new to mapping and I'm still creating my first map. If I had known the trick of different texture or shading for the top and bottom half of a wall I probably would have used that techniqe. The couple places I used my way really doesn't have any advantage to the player crawling along the shadow so I'm guessing no one would bother to try. Good point though.

And yes, shading has been eating up a lot of time in my map and there is way more to go. Its tempting to remove all shadows and call the map "high noon" as in sun directly overhead
Last edited by marked; 04-19-2009 at 07:25 AM.
marked is offline  
Old 04-19-2009, 07:45 AM   #10
soulmate

soulmate's Avatar
Re: Diagonal Shading?
Quote:
Originally Posted by Sang View Post
Gotta wonder: If you use marked's way of doing things, how can you prevent the player from stepping on the thin wall? From my experience the player can land on anything, no matter how thin (though the thinner it gets, the more difficult, but still!)
you could make these walls block by pressing b when poiting on the line of the wall in 2d mode.
__________________
Nobody steals our chicks and lives !
soulmate is offline  
Old 04-19-2009, 08:04 AM   #11
marked

marked's Avatar
Re: Diagonal Shading?
I don't mean to completly hijack the thread but since we have the attention of some mappers here I have another noobie question. When laying out sprites horizontally on the floor or even raising them up afterwards, they match in brightness the surrounding textures in Mapster but end up being way brighter in the game. Sometimes reducing the brightness of sky box in that particular sprite's sector brings it in back in line and sometimes not. Is there something I'm not doing correctly? I can darken the sprite completly in Mapster and it will still show up full brightness in the game.
marked is offline  
Old 04-19-2009, 08:57 AM   #12
Sang

Sang's Avatar
Re: Diagonal Shading?
Press ' + X in Mapster in 3D mode and you will see what the shading of the sprites will look like in-game.

Normal and floor-aligned sprites will take on the shading of the floor of the sector they're in, EXCEPT when the sector has a paralaxed ceiling (in which case they will take on the shading of the ceiling). A wall-aligned sprite's shading is independent, you can give it whatever shading you want and it won't change according to the shading of the floor or anything.

If you want to make a sprite that is in a sector with a paralaxed ceiling darker, you should just draw a smaller sector around the center of the sprite and give the ceiling a proper shade. You will notice that the sky will still act like it's all shaded the same, even if there are several smaller sectors with darker/brighter shading.

Of course for a moving sprite (ie. an enemy or the player's HUD weapons) this will be a bit more difficult to do, personally I let them take on the shading of the ceiling. I only fix up stationary sprites (trees and stuff like that), but if you're less lazy then I guess you could make small child sectors all over the place.

Quote:
you could make these walls block by pressing b when poiting on the line of the wall in 2d mode.
This would work in some cases but what if the player jumps down from a wall that is higher than the, in this case, blocked "shadow wall"? The player would freeze in mid-air which would be rather weird.

I think it'd be a better idea to make shade sprites.
__________________
traB pu kcip
Last edited by Sang; 04-19-2009 at 09:01 AM.
Sang is offline  
Old 04-19-2009, 09:49 AM   #13
marked

marked's Avatar
Re: Diagonal Shading?
Thanks Sang. That solves the mystery of why some of my sprites darkened along with the sky and some did not. And I was also worried about dark splotches over the sky but it sounds like it will not be much of a problem.
marked is offline  
Old 04-19-2009, 01:10 PM   #14
Broly

Broly's Avatar
Re: Diagonal Shading?
2 Questions

1: How do u make a diagonal rise bridge?
2: can u make a slide door with a window?
Broly is offline  
Old 04-19-2009, 02:21 PM   #15
The Commander

The Commander's Avatar
Re: Diagonal Shading?
Quote:
Originally Posted by Broly View Post
2 Questions

1: How do u make a diagonal rise bridge?
2: can u make a slide door with a window?
Im sure I have given you this link before (might have been someone else)
But again, this site has both answer's there and examples on how to do them.

http://infosuite.dukerepository.com/
__________________
I Know Everything There Is To Know About Anything.

Duke Nukem Red Alert SVN

Ask Me Anything!
The Commander is offline  
Old 04-19-2009, 05:07 PM   #16
Broly

Broly's Avatar
Re: Diagonal Shading?
is thier also a way to bound enemies, to the sectors thier in?
Broly is offline  
Old 04-19-2009, 05:46 PM   #17
moggimus

moggimus's Avatar
Re: Diagonal Shading?
Most enemies have a tile with "STAYPUT" in the name, which will do that.
moggimus is offline  
Old 04-20-2009, 03:03 PM   #18
Broly

Broly's Avatar
Re: Diagonal Shading?
another question, are switch activated shooter sprites possible?
Broly is offline  
Old 04-20-2009, 03:16 PM   #19
XTHX2

XTHX2's Avatar
Re: Diagonal Shading?
Why don't you read a TUTORIAL in the site "probably" at Commander's post? That way, it would be good for both you and us...

Alternatively, you can use :

RTCM
XTHX2 is offline  
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 12:21 PM.

Page generated in 0.14099789 seconds (100.00% PHP - 0% MySQL) with 19 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

Website is ©1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.