Welcome Guest ( Log In | Register )

58 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> Polymer and EDuke32 2.0!, talk about the wonders of EDuke32 and the new renderer
post May 7 2009, 12:00 PM
Post #1
DeeperThought
Duke Plus Developer
Here is a video I made showing some dynamic lighting using Polymer, the new renderer for EDuke32 being programmed by Plagman. For the video, I made Ruins.map very dark and gave the player some flares that act as dynamic lights. I also placed some colored fireflies in a few places. I did this using an unreleased test build of EDuke32, and my Duke Plus mod with mostly the original 8-bit art. As you can see, the lighting works quite well, even without the HRP!

http://www.youtube.com/watch?v=LZJE9paygY0

Don't ask me why I didn't see the shotgun lying on the ground. huh.gif

EDIT: And keep in mind this is just a very early attempt using an unfinished version of the renderer with a few simple CON code hacks to add lights. I didn't even use the spot lights that cast shadows.


EDIT2: Some people have asked me how to place dynamic lights in maps. I will explain how it currently works in test builds of EDuke32 using polymer (note: this has almost nothing to do with the lights in the movie above)

There are currently two types of lights: point lights and spot lights. A point light emits light uniformly in all directions, and does not cast shadows. A spot light emits light in a certain direction and does cast shadows. Both can be placed in maps via SECTOREFFECTOR (SE) sprites.

PLACING POLYMER LIGHTS IN MAPSTER

SE 49 = point light
A SECTOREFFECTOR with lotag 49 is a point light.
HITAG = light distance
The HITAG of the SE is the maximum distance, in build units, that the light will travel. Note that it is impossible to enter a number higher than 65535.
XVEL/YVEL/ZVEL = RGB values
To edit these, press F8 on the SE in 2D mode, then select them and type in numbers. Numbers should be in the range 0-255
TRANSPARENCY = priority
a solid sprite is a high priority light, press T once (33% transparency) for lower priority, again (66%) for lowest priority

SE 50 = spot light
light distance, color and priority are as above
ANGLE = LIGHT ANGLE (duh)
SHADE = width
shade values are between -127 and 127, each gives a different width....experiment
EXTRA = horiz (up/down angle)
set EXTRA by pressing 'M on the sprite. 100 is straight ahead, higher positive values angle up, and values lower than 100 (including negative values) angle the light down.

Currently, there is no way to make blinking lights or other lighting effects (the flickering lights in the movie were accomplished with CON code that constantly changes the HITAG of SEs). I plan to add more lighting effects in Duke Plus, if this isn't done in the source code.
__________________


This post has been edited by DeeperThought: May 27 2009, 02:02 PM
+Quote Post
post May 7 2009, 12:06 PM
Post #2
Mblackwell
Enforcer
Yes it really does. The fun thing about Polymer is that any object can be made to spawn certain colored lights, so for example previously a mapper would have had to do a lot of work to make a nice red glow on the walls around an EXIT sign, if they even thought of it. Now it can be done automatically. And even small lights add a lot to the mood and detail of levels. So it's quite easily to have something that feels like classic Duke, yet somehow more "full".
__________________
The Rejected Applications (listen now)
EDuke32 || EDuke32 Wiki || Latest EDuke32 Snapshot
11 years and still ticking...
+Quote Post
post May 7 2009, 12:15 PM
Post #3
TX
EDuke32 developer & Tyrant Administrator
Yeah, Polymer really looks good no matter how you're using it, whether it's with a map made to be incredibly dark and lit only by dynamic lighting, or a classic shade based map with dynamic lights thrown on top.

Btw, that video was cool. Who was the background music by?
__________________
+Quote Post
post May 7 2009, 12:29 PM
Post #4
msleeper
digital entertainment design
This is extremely impressive! I can't wait to play around with this. Great work.
__________________
Formerly known as Reaper_Man
"The Once and Future King"
+Quote Post
post May 7 2009, 12:42 PM
Post #5
DeeperThought
Duke Plus Developer
QUOTE (TX @ May 7 2009, 01:15 PM) *
Btw, that video was cool. Who was the background music by?


Erotomania by Dream Theater: http://www.youtube.com/watch?v=m-MoL1ON2hM...feature=related
__________________
+Quote Post
post May 7 2009, 01:41 PM
Post #6
KillerBudgie
Assault Captain
QUOTE (TX @ May 7 2009, 09:15 PM) *
Yeah, Polymer really looks good no matter how you're using it, whether it's with a map made to be incredibly dark and lit only by dynamic lighting, or a classic shade based map with dynamic lights thrown on top.

Btw, that video was cool. Who was the background music by?


Yeah, I thought that video clip was good as well. Can't wait for the new renderer!
__________________
The Duke will kill you. The Budgies will eat you! And the Cats finish what the Budgies don't do!

- Always bet on EDuke32!
+Quote Post
post May 7 2009, 01:51 PM
Post #7
SkullHacker
Assault Trooper
Nice way to brighten a dark day a little. tongue.gif It surely improves the mood of the map. Looking forward to toying around with it. smile.gif
__________________
No good deed goes unpunished...
+Quote Post
post May 7 2009, 02:05 PM
Post #8
ReaperMan
Octabrain
I can't wait for this to come out smile.gif
__________________
"Ah, and people, please, shut the fuck up about this stupid-ass, preachy cliche' called "Getting a life". If I hear it one more time, I'm going to fucking puke. If you think about it hard enough, it's a very arrogant cliche'/phrase, and in general is a very stupid concept." -StrikerMan780
+Quote Post
post May 7 2009, 02:17 PM
Post #9
johndough
Turret
This renderer got me thinking.
If 3DR doesn't make DNF, what if the fans tried to?
+Quote Post
post May 7 2009, 02:26 PM
Post #10
The Commander
Duke Nukem Red Alert Developer



Polymer IS the new DNF. biggrin.gif
__________________
+Quote Post
post May 7 2009, 03:05 PM
Post #11
Alan
Hellspawn
Polymer is the sex. If only I had the power to run it... sad.gif
__________________
"A celibate clergy is an especially good idea as it eliminates any genetic tendencies towards fanaticism."
-Carl Sagan
+Quote Post
post May 7 2009, 03:21 PM
Post #12
Parkar
Honorable Donor
Here are a few more Polymer shots with some dynamic shadows in action.

http://img4.imageshack.us/gal.php?g=duke0044.jpg
+Quote Post
post May 7 2009, 03:39 PM
Post #13
msleeper
digital entertainment design
Now THAT is impressive.
__________________
Formerly known as Reaper_Man
"The Once and Future King"
+Quote Post
post May 7 2009, 04:11 PM
Post #14
William Gee
Pig Cop
Awesome shots awesome vid too. smile.gif Love how the glow bugs have a light.
__________________
+Quote Post
post May 7 2009, 04:15 PM
Post #15
Alan
Hellspawn
I'd like to see your crystal cave map in Polymer, WG. <3
__________________
"A celibate clergy is an especially good idea as it eliminates any genetic tendencies towards fanaticism."
-Carl Sagan
+Quote Post
post May 7 2009, 04:32 PM
Post #16
Captain Awesome
Assault Commander
I think this is pretty awesome. As with anything, it probably wont always be used the best way possible, but there is definitely some cool stuff here. I really like the way it looks in 8-bit, too. Im kind of anxious to toy with it, but my computer doesnt support shaders (yeah, it sucks, I know.) Would the renderer still load and just not render any lights? (Half Life 2 does this for example)
__________________
A raving psycho, this guy once butchered 400 chickens and screwed a beagle.
Insert self-deprecating imagery here.
+Quote Post
post May 7 2009, 04:47 PM
Post #17
Sobek
There's coffee in that nebula!
As I mentioned on the video, I LOVE it. I can think of some truly devious 'survival horror' type scenarios that the dynamic lighting could play into quite nicely.

On a side note, this is just the most bizarre exodus ever.
+Quote Post
post May 7 2009, 05:09 PM
Post #18
zchri9
Honorable Donor
Polymer looks fantastic, Ive had a bit of a play around with it.
You defiantly need a modern system to run this.
+Quote Post
post May 7 2009, 09:35 PM
Post #19
Tea Monster
Enforcer
I am slightly worried about Polymer. If its really requiring a fat rig to get anything out of it now when its just running a lot of 64x64 textures, then whats it going to be like when we load it up with next-gen game assets?
+Quote Post
post May 7 2009, 09:48 PM
Post #20
The Commander
Duke Nukem Red Alert Developer
QUOTE (Tea Monster @ May 8 2009, 05:35 PM) *
I am slightly worried about Polymer. If its really requiring a fat rig to get anything out of it now when its just running a lot of 64x64 textures, then whats it going to be like when we load it up with next-gen game assets?


It doesn't require a fat rig, people just seem to think this because they still use 10 year old computers and refuse to upgrade. blink.gif
__________________
+Quote Post
post May 7 2009, 09:59 PM
Post #21
msleeper
digital entertainment design
It looks like Parkar was running it with HRP at 81 FTP. Parkar, what's your system specs?

I imagine most people are going to have to sadly upgrade from their Pentium II's and such, but it's probably time to get a modern PC.

EDIT
Commander beat me to the joke.
__________________
Formerly known as Reaper_Man
"The Once and Future King"


This post has been edited by msleeper: May 7 2009, 10:00 PM
+Quote Post
post May 7 2009, 10:42 PM
Post #22
TX
EDuke32 developer & Tyrant Administrator
QUOTE (Tea Monster @ May 7 2009, 10:35 PM) *
I am slightly worried about Polymer. If its really requiring a fat rig to get anything out of it now when its just running a lot of 64x64 textures, then whats it going to be like when we load it up with next-gen game assets?

It hasn't been optimized or anything yet. Don't worry!
__________________
+Quote Post
post May 7 2009, 10:47 PM
Post #23
zchri9
Honorable Donor
Im running a fairly old rig at the moment and polymer doesnt like it.. Runs very slow.

AMD Athlon 64bit @ 2.2GHZ
1.5GB DDR2
60GB IDE HDD
DVD burner (broken, only reads dvd) (doesnt read cd's or burn dvd's)

Screen - Asus VW192T (19" 16:10 LCD screen) @ 1440x900

In about a month Ill have this PC along with (parts may change)
Intel Core 2 Quad Q6600 @ 2.4GHZ (May OC to 3ghz)
Asus P5Q motherboard
4GB OCZ Vista Upgrade Edition (800MHZ)
640GB Western Digital Caviar Black
Antec 300 Case
Gigabyte GTX260+
Corsair HX-520 520Watt PSU
+Quote Post
post May 7 2009, 10:51 PM
Post #24
DeeperThought
Duke Plus Developer
QUOTE (Tea Monster @ May 7 2009, 10:35 PM) *
I am slightly worried about Polymer. If its really requiring a fat rig to get anything out of it now when its just running a lot of 64x64 textures, then whats it going to be like when we load it up with next-gen game assets?


I used 8-bit for the movie for two reasons. One, it actually looked just as good in 8-bit, at least in that map, especially when you consider that it gets compressed down to a lower resolution for YouTube anyway. Two, recording with fraps is a huge drag on my framerate, and with the extra load of the hrp it would not have been worth it.

The fact that my rig, which is just an average computer, can record at a decent framerate using polymer, which hasn't even been optimized yet, is good news.
__________________
+Quote Post
post May 7 2009, 11:21 PM
Post #25
Parkar
Honorable Donor
QUOTE (msleeper @ May 8 2009, 07:59 AM) *
It looks like Parkar was running it with HRP at 81 FTP. Parkar, what's your system specs?

I imagine most people are going to have to sadly upgrade from their Pentium II's and such, but it's probably time to get a modern PC.

EDIT
Commander beat me to the joke.


An i7 at 2.6ghz 6gb of RAM and an 8800gt. At the moment it's quiet demanding but as TerminX said there is optimizations to do. It's still quiet uncommon that it goes under 30 fps with the settings in the shots posted though.
+Quote Post
post May 8 2009, 10:14 AM
Post #26
Plagman
EDuke32 developer
Nice video. Did you hardcode these lights in the source code?
__________________
EDuke32 - "The corrupt doctrine of terror has begun."
+Quote Post
post May 8 2009, 10:19 AM
Post #27
diehard
Assault Captain
Awesome vid! nice choice of music ..with the classic DT!
+Quote Post
post May 8 2009, 10:59 AM
Post #28
Sangman
Battlelord
I've been thinking of getting an all-new PC soon-ish. Until then I'll have to stick with Polymost. ohmy.gif (I think my PC downstairs can run Polymer but I don't really find that to be a comfortable place)

Let's be careful with statements like "Polymer will make Duke3D look like DNF". From what I've seen the lighting effects are nice but it can not be compared to any of those DNF shots..
__________________
traB pu kciP
+Quote Post
post May 8 2009, 11:43 AM
Post #29
DeeperThought
Duke Plus Developer
QUOTE (Plagman @ May 8 2009, 11:14 AM) *
Nice video. Did you hardcode these lights in the source code?


Nah, the lights were added by CON code. The actors spawn and control light producing SEs.
__________________
+Quote Post
post May 8 2009, 11:48 AM
Post #30
Captain Awesome
Assault Commander
I don't refuse to upgrade my PC, its just that I'm poor and its impossible to afford it at the moment.
__________________
A raving psycho, this guy once butchered 400 chickens and screwed a beagle.
Insert self-deprecating imagery here.
+Quote Post

58 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

— sponsored links —


RSS Lo-Fi Version Time is now: 2nd September 2010 - 01:31 PM || Skin by RedSplat/TX © 2004-2010 Duke4.net