sidebar features
sidebar content

Go Back   Blender Artists Forums > Game Engine > Game Engine Resources

Reply
 
Thread Tools
greatrel greatrel is offline
Member
 
Join Date: May 2009
Posts: 9
Iterative Parallax Mapping

Same idea as Steep Parallax Mapping, but iterated for better quality, which also means slower frame rates. In terms quality and frame rates, this is the optimal in terms of bang for buck. There is always relief mapping for incredible quality in exchange for incredible lag

Here's a comparison at low angles, but you will have to download the blend to get an overall feel for the differences.

Left is Steep Parallax, Right is Iterative Parallax


Blend file download links:
Mirror 1
Mirror 2

In the blend file, the middle set is iterative parallax mapping, left set is parallax mapping, bottom set is steep parallax mapping, and top set is just the plane image.

You can move the camera with mouse and WASD. You can move light as well.

Light Controls:
UP DOWN moves on Z axis
LEFT RIGHT moves on X axis
PAGEUP PAGEDOWN moves on Y axis

bumpScale can be modified for the iterative parallax mapping plane with PLUS and MINUS. If your computer has a weak graphics card, higher bumpScale will definitely lag because more iterations are required to smooth out the larger bumps.

Shadows have been disabled in this version. If you want to enable them, you'll have to comment out the selfShadow = 1 line for the respective script.

In my iterative and steep implementations, there is an artifact along the diagonal from bottom left to top right when the plane is viewed from the top left. Any one have a clue where this is coming from?

This will eventually be implemented into Blender.

Enjoy
#1   Old 14-May-09, 06:24   
Reply With Quote


ionee's Avatar
ionee ionee is offline
Member
 
Join Date: Jun 2008
Location: location is classified
Posts: 1,750
looks great!
keep it up
............................................
My other computers at N.A.S.A (lol, not really)

Visit our website at
www.ionee.org email us at ionee@ionee.org
tutorials here!!! (videos!)

all new tutorials here!!! (not video)

current project/s:
parkour pro game thread here
............................
#2   Old 14-May-09, 06:30   
Reply With Quote
SamCameron SamCameron is offline
Member
 
Join Date: Apr 2008
Posts: 336
awesome...
#3   Old 14-May-09, 06:47   
Reply With Quote
kay_Eva kay_Eva is offline
Member
 
Join Date: Jun 2008
Posts: 1,197
I feel like using the lion picture as a reference texture isn't the best idea because really in a game I don't think anyone would try to convey so much detail in a parallax map. Probably it would be better to model a low poly lion head and use an ordinary normal map and just hang it to the wall. So I think the lion head is great for the intentions that the researchers had when writing their papers but not so much as a practical 'field test' of typical or recommended usage for the feature.

I modded Crysis for a while and even Crytek's geniuses' version of parallax occlusion mapping had texture swim if you tried to use it to convey too much detail. I mean if you make a wall texture in CryEngine 2, then you get next to the wall and look up at it at a sharp angle you'd get this weird warp effect that made the texture look like it had a miniature warp hole in it that leads you off into oblivion. And this is wall art made by modders who really knew what they were doing so it was a technical thing as opposed to human error. ---> Video Testimony by Crysis Modder: http://www.youtube.com/watch?v=0bBEg...e=channel_page

This is the reason why Crytek themselves never used parallax on their walls even though they could have. Performance/aestic wise it was much easier to just add the geometry.

That said they used parallax for the terrain in Crysis and because of the fact that the ground plane stays relatively contrained on it's axis in reference to the player viewer angle the texture swim/oblivion void artifacts are kept to a minimal almost to the point where the player wouldn't ever notice *unless they just really are out to find them*. Also for terrain textures you can have a ground plane and pebbles and things that are nice and spaced out so that the height displacement effect really shines through moreso than in the lion texture where the bricks are really packed too tightly together for the full effect to shine through very well in my opinion - notice how this more game friendly example of parallax has the displacment detail spaced out better --> this type of image in my opinion is better to look to as a reference texture. Better Spaced Out Texture than the LionImage (more common usage of parallax for realtime in my opinion): http://www.youtube.com/watch?v=UeF-kCr_vyo


XNA parallax example: http://www.youtube.com/watch?v=GwOfI...eature=related


Here is example of the only places where crytek saw fit to use Parallax in the whole entire game *that I'm aware of*





With everything else in mind it makes a wonderful effect for terrain and you can see that the pebbles look more like the examples in the youtube videos I linked to than they look like a bunch of tightly packed bricks. Not that parallax couldn't be used in that way it's just I'm not sure if it's even the smartest way to approach texturing a real time scene to begin with. But don't just take my word for it

So like I said with the advanages/disadvanges of using parallax it probably isn't best suited for trying to convey a complex world on simple geometry in the same sense as everyday normal mapping but in some cases it can be a godsend. Like on the terrain. I'm sure in other areas too like on really big craggly surfaces, as opposed to that lionhead texture with all the close detail jampacked together the way it is.

To me I'm still a little bit confused by the whole thing. Even very good artists get the naming of all these parallax techiques mixed up and they mean relief mapping but they call it parallax occlusion or they mean steep parallax but they call it parallax displacement and I'm not even sure if there is a difference between every single one of the names I'm no expert. But that's my little my little input.

That said I personally wouldn't have more than one-two examples of Parallax of anysort visible in a real time scene at any particular time cuz to use it to the full effect it's still a bit overly expensive. So for me I would use it for terrain, as is the case in Crysis, as well as for the impact of maybe rustic wooden objects, just for "wow" effect. Not because it should replace everyday normal maps.

And as you can see in the CryEngine pics it really can make a nice impact on a scene in my opinion, even though some people dont' like Cryteks's rocks I do! I think it's neat.

That said I think your demo is great it's just hard to really see it with that texture and unfortunately I haven't had time to make a parallax image specifically for the new blender scripts so far.

Last edited by kay_Eva; 14-May-09 at 07:28.
#4   Old 14-May-09, 07:24   
Reply With Quote
greatrel greatrel is offline
Member
 
Join Date: May 2009
Posts: 9
You rock like Crytek rocks. Thanks for feedback, I really appreciate it. I will try to find some alternative textures or make my own, then maybe we can see if I got it down correctly or not
#5   Old 14-May-09, 07:48   
Reply With Quote
kay_Eva kay_Eva is offline
Member
 
Join Date: Jun 2008
Posts: 1,197
lol, no YOU rock, thanks for working on this feature!
#6   Old 14-May-09, 07:59   
Reply With Quote
psychotron's Avatar
psychotron psychotron is offline
Member
 
Join Date: Jul 2007
Posts: 229
woot incredible... just yesterday I hang on papers about iterative parallax mapping and today it's in blender demo
wow thank you for your hard work...
it's working great here and much much better look than steep pm

maybe you could cooperate with martinsh he's in parallax mapping mood too now to bring ultimate solution
#7   Old 14-May-09, 08:20   
Reply With Quote
Sha's Avatar
Sha Sha is offline
Member
 
Join Date: Jul 2007
Posts: 257
Is parallax mapping or whatever u call it possible in blender it would be so useful and does it need a powerful computer to work or can astandard computer make it work.
#8   Old 14-May-09, 11:48   
Reply With Quote
Ace Dragon Ace Dragon is offline
Banned Member
 
Join Date: Feb 2006
Location: Wichita Kansas
Posts: 12,952
Quote:
This will eventually be implemented into Blender.
By this do you mean this will be available for use without needing Python, show in GLSL mode and the game engine, and also be able to be rendered with Blender Internal?

If the answer is yes than that is excellent news which is having really advanced shaders like this highly usable by artists with little GLSL programming ability.
#9   Old 14-May-09, 17:32   
Reply With Quote
bgm bgm is offline
Member
 
Join Date: Apr 2009
Posts: 3
Great guys !!!, more than ever i'm dreaming of BGE reborn as the "ultimate" game design work flow.

Obs.: lets throw some amazing articles of this incredible guy that also created the http://dee.cz/lightsmark/:

http://www.dee.cz/fcss/ Fast Correct Soft Shadow
http://realtimeradiosity.com/demos/
http://realtimeradiosity.com/
http://www.dee.cz/index.html
#10   Old 16-May-09, 02:31   
Reply With Quote
dusty ghost's Avatar
dusty ghost dusty ghost is offline
Member
 
Join Date: Apr 2008
Posts: 121
Wow!!!!!!

Well done!!!!
............................................
-----------------------------------------------
I used to be dustbin1_uk
#11   Old 21-May-09, 12:43   
Reply With Quote
kamaro kamaro is offline
Member
 
Join Date: Aug 2007
Posts: 219
What"s wrong with my parallax mapping?

http://rapidshare.com/files/243282224/DISPL.blend.html
#12   Old 11-Jun-09, 09:04   
Reply With Quote
chs200123 chs200123 is offline
Member
 
Join Date: Mar 2009
Posts: 4
Im just curious, but are all these things being added into blender's GE? If so, when will they become part of the standard release?
#13   Old 28-Jul-09, 05:04   
Reply With Quote
Reply

Bookmarks

Thread Tools

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. The time now is 18:54.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists