Forum Archive

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

Notices

 
 
Thread Tools
Old 07-06-2009, 02:58 PM   #1
Zaxtor

Zaxtor's Avatar
adding Mirror facing another mirror in Eduke32?
Is it possible to make the engine capable to work with mirror facing mirrors.
would be very fun.

Like a level with many mirrors or a circus with house of mirrors etc.
__________________
OBLIVION'S STATUS. Maps are 100%, Textures are 100% {FINISHED}
Current status RELEASED http://www.fileplanet.com/hosteddl.a...ivionfinal.zip.
Zaxtor is offline  
Old 07-08-2009, 06:08 AM   #2
Sang

Sang's Avatar
Re: adding Mirror facing another mirror in Eduke32?
Yeah I've had thoughts of that as well, no idea if it would really work though.
__________________
traB pu kcip
Sang is offline  
Old 07-08-2009, 07:12 AM   #3
Tekedon

Tekedon's Avatar
Re: adding Mirror facing another mirror in Eduke32?
That would probably kill the framerate.
Tekedon is offline  
Old 07-09-2009, 02:16 AM   #4
Zaxtor

Zaxtor's Avatar
Re: adding Mirror facing another mirror in Eduke32?
Some of my level we see almost 1k sectors in 1 screen and framerate survives.

Like the new base I did example with nearly 2k sprites in the outdoors and wicked base.

So something about same equivalent of the base .
I'm sure making mirrors face to face as long we don't insane in sprites/sectors could work and or putting a limit of images repeating in mirrors facing so it doesn't make infinite images and overload the sector and or sprite buffers.
__________________
OBLIVION'S STATUS. Maps are 100%, Textures are 100% {FINISHED}
Current status RELEASED http://www.fileplanet.com/hosteddl.a...ivionfinal.zip.
Zaxtor is offline  
Old 07-09-2009, 04:32 AM   #5
Tekedon

Tekedon's Avatar
Re: adding Mirror facing another mirror in Eduke32?
But wouldn't two mirrors facing each other cause the "tunnel of mirrors" effect. (one mirror reflecting the other mirror, and repeating to infinity). That means an infinity of sectors and sprites.
Tekedon is offline  
Old 07-09-2009, 08:44 AM   #6
Sang

Sang's Avatar
Re: adding Mirror facing another mirror in Eduke32?
Quote:
Originally Posted by Tekedon View Post
But wouldn't two mirrors facing each other cause the "tunnel of mirrors" effect. (one mirror reflecting the other mirror, and repeating to infinity). That means an infinity of sectors and sprites.
Reading posts is an art:

Quote:
I'm sure making mirrors face to face as long we don't insane in sprites/sectors could work and or putting a limit of images repeating in mirrors facing so it doesn't make infinite images and overload the sector and or sprite buffers.
__________________
traB pu kcip
Sang is offline  
Old 07-09-2009, 10:40 AM   #7
Zaxtor

Zaxtor's Avatar
Re: adding Mirror facing another mirror in Eduke32?
Tunnel of mirror infinite would cause infinity sectors / sprites.

But limiting tunnel maybe like each mirrors has 10-20 limit.

Funny thing is my level with maximum lines/sectors doesn't crash when there is a mirror which adds few extra sector/lines over the limit.
Maybe phantom sector and maybe sprites doesn't count.
__________________
OBLIVION'S STATUS. Maps are 100%, Textures are 100% {FINISHED}
Current status RELEASED http://www.fileplanet.com/hosteddl.a...ivionfinal.zip.
Zaxtor is offline  
Old 07-09-2009, 12:37 PM   #8
DeeperThought

DeeperThought's Avatar
Re: adding Mirror facing another mirror in Eduke32?
Rendering a scene does not add sprites or sectors to the map, so that is not an issue.

But mirror-in-mirror would require rendering the entire scene over again for each reflection. Even 3 iterations would require a huge use of resources. At 10 the game would probably be unplayable.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 07-09-2009, 12:50 PM   #9
IceColdDuke
Re: adding Mirror facing another mirror in Eduke32?
Quote:
Originally Posted by DeeperThought View Post
Rendering a scene does not add sprites or sectors to the map, so that is not an issue.

But mirror-in-mirror would require rendering the entire scene over again for each reflection. Even 3 iterations would require a huge use of resources. At 10 the game would probably be unplayable.
I have a book on how to create the reflected mirror effect, supposedelly you can actually do this in doom 3, but i have never tried it.
IceColdDuke is offline  
Old 07-09-2009, 06:10 PM   #10
Sang

Sang's Avatar
Re: adding Mirror facing another mirror in Eduke32?
Quote:
Originally Posted by IceColdDuke View Post
I have a book on how to create the reflected mirror effect, supposedelly you can actually do this in doom 3, but i have never tried it.
Do you mean this effect isn't possible in any game?

Anyway Duke Nukem 3d isn't that much of a resource hog, how can rendering one scene multiple times slow it down so much? (I'm a noob at all of that stuff)
__________________
traB pu kcip
Sang is offline  
Old 07-09-2009, 06:27 PM   #11
DeeperThought

DeeperThought's Avatar
Re: adding Mirror facing another mirror in Eduke32?
Quote:
Originally Posted by Sang View Post
Do you mean this effect isn't possible in any game?

Anyway Duke Nukem 3d isn't that much of a resource hog, how can rendering one scene multiple times slow it down so much? (I'm a noob at all of that stuff)
Even rendering a scene ONE time can be taxing, depending on the number visible sectors and models. And have you forgotten about the new Polymer renderer? It's a huge resource hog.

But if you mean a map like E1L1 with 8-bit art and one of the older renderers, then yes, an average system could handle several renders of that at once without any noticeable slowdown. It wouldn't be hard to get a rough estimate of the number using the showview CON command.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 07-10-2009, 05:15 PM   #12
Sang

Sang's Avatar
Re: adding Mirror facing another mirror in Eduke32?
Well yes I do realize in the Polymer renderer it would be more difficult but I couldn't imagine such slowdowns being the case in 8bit.. Anyway thanks for the info
__________________
traB pu kcip
Sang is offline  
Old 07-14-2009, 06:32 PM   #13
hightreason

hightreason's Avatar
Re: adding Mirror facing another mirror in Eduke32?
I doubt we will ever see this, but i always thought it was a good idea...
The limit idea is the right way to go though, like increase shading each time it is reflected, once it gets to black, it renders no more - this sort of happens with the real mirror-tunnel efffect thing, it gets darker as it goes in.
__________________
High Treason
(My Website) (Second Site) (My YouTube)
Punk's not dead - and nor is Duke!
Ever get the feeling you are being ignored?
hightreason is offline  
Old 07-14-2009, 08:30 PM   #14
Nimoy

Nimoy's Avatar
Re: adding Mirror facing another mirror in Eduke32?
Quote:
Originally Posted by hightreason View Post
I doubt we will ever see this, but i always thought it was a good idea...
The limit idea is the right way to go though, like increase shading each time it is reflected, once it gets to black, it renders no more - this sort of happens with the real mirror-tunnel efffect thing, it gets darker as it goes in.
This is true, because each time it "bounces", light is "lost".
__________________
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 07-15-2009, 05:14 AM   #15
Parkar

Parkar's Avatar
Re: adding Mirror facing another mirror in Eduke32?
Polymer is capable of doing this, it's just a mater of setting the number of iterations. It's obviously going to have a big hit on performance though.

I think Unreal 1 was able to do this as well. It could handle a loop of portals at least and I think it was possible to do with mirrors to.
Parkar is offline  
Old 07-20-2009, 10:48 PM   #16
Zaxtor

Zaxtor's Avatar
Re: adding Mirror facing another mirror in Eduke32?
I did a test about extreme amount of sectors vs mirror.

Did chess like with a mirror (test)
When mirror is too big (long) it become buggy accept if you stay equal to middle of mirror.

But it can see huge amount of sectors without crashing.

If player sees huge amount of sectors exceeding game's limit in mirror it doesn't crash.

But if player sees the sectors amount exceeding limit it crashes but not by mirror reflection.

Mirror can reflect all sector + some sector which would exceed mapster/build's limit.
__________________
OBLIVION'S STATUS. Maps are 100%, Textures are 100% {FINISHED}
Current status RELEASED http://www.fileplanet.com/hosteddl.a...ivionfinal.zip.
Zaxtor 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:16 PM.

Page generated in 0.11475801 seconds (100.00% PHP - 0% MySQL) with 18 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.