[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - Does Darkplaces have reflections?

Does Darkplaces have reflections?

Discuss the construction of maps and the tools to create maps for 3D games.

Moderator: InsideQC Admins

Does Darkplaces have reflections?

Postby Mexicouger » Thu Dec 13, 2012 7:34 pm

Does Darkplaces have real reflections of any kinds? Like setting a material to be able to reflect the environment or other entities? If so, How can it be done?
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

Re: Does Darkplaces have reflections?

Postby leileilol » Fri Dec 14, 2012 5:11 am

Yes, and it's applied with commands in texture shader stages (scripts/blah.shader).
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Does Darkplaces have reflections?

Postby Seven » Fri Dec 14, 2012 3:43 pm

Hello Mexicouger,

There are basically 2 different ways to bring reflections into Darkplaces:

1.) dpreflectcube shader
2.) dp_reflect shader

to 1.)
Pros:
- You can make single areas in one texture reflective.
- You dont need r_water enabled
- Works on world textures AND model textures
- As good as no performance impact
Cons:
- The reflection is only what the cubemap shows (NOT live/realtime; not a mirror)

to 2.)
Pros:
- The reflection is LIVE/Realtime ! That is why you see yourself or any other entity in it.
Cons:
- You cannot make single area of a texture reflective (only complete texture)
- You need r_water enabled
- Impacts performance (relatively to size of mirror)
- Works only on world textures (no models)


Examples for 1.)
http://www.youtube.com/watch?v=DA5CXg-wJM0

Examples for 2.)
http://www.youtube.com/watch?v=8t9_NhqTbgA


Please read the dpwiki (now backedup on chip´s homepage) to read more details about these 2 shaders keywords:
http://www.quakewiki.net/darkplaces-wik ... on-for-dp/

I uploaded the files + shaders that were used in youtube clip no.1. So you can see an example how it is done.
There are also more links in its readme.txt to more examples:
https://rapidshare.com/files/760270292/ ... 0Seven.zip

For more downloadable examples of dp_reflect and dpreflectcube usage, please visit these quakeone.com threads:
here:
http://quakeone.com/forums/quake-mod-re ... cting.html
and here:
http://quakeone.com/forums/quake-mod-re ... rload.html

Best wishes,
Seven
Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: Does Darkplaces have reflections?

Postby Mexicouger » Sat Dec 15, 2012 4:04 am

Thanks for your so helpful post Seven. It really helped!
In the shader for dpreflect, what does each parameter do? I failed to find documentation of each parameter.
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

Re: Does Darkplaces have reflections?

Postby Seven » Sat Dec 15, 2012 10:10 am

Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: Does Darkplaces have reflections?

Postby Mexicouger » Sun Dec 16, 2012 3:56 am

Thank you Again Seven. I fail to find documentation on dp_refract and dp_water as well. Mind explaining them a bit?
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

Re: Does Darkplaces have reflections?

Postby Seven » Sun Dec 16, 2012 11:34 am

Seven
 
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: Does Darkplaces have reflections?

Postby Mexicouger » Tue Dec 18, 2012 5:59 am

Thank you very much Seven. I now have a good understanding of this concept!
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest