sidebar features
sidebar content

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

Reply
 
Thread Tools
martinsh's Avatar
martinsh martinsh is online now
Member
 
Join Date: Oct 2006
Location: riga, latvia
Posts: 482
Hey guys,
greatel did great job implementing steep parallax mapping to BGE.
It picked my interest to look at other parallax techniques. I am also planning to implement relief mapping in near future..
But first.. I noticed that old parallax mapping has a flaw called texture swim - when viewed from sharp angles - textures starts to distort.. swim around surface. I kinda fixed that, not sure if i did right, but at least it works.
Also i messed around with UV and i came up with silhouette clipping - cheap technique, but effective.

Screens:




and a blend.

parallax_silhouette.blend

controls:
Mouse/WASD - move/rotate camera
left mouse button - move light along with camera

edit: also done as part for Twilight22 project.
have fun!
............................................
www.martinsh.co.nr - gallery is broken..

Blender artworks:
Shotgun
Assault Rifle
Realtime Bathroom Demo
Advanced GLSL 2D Filters

Last edited by martinsh; 13-May-09 at 16:16.
#1   Old 13-May-09, 13:51   
Reply With Quote


psychotron's Avatar
psychotron psychotron is offline
Member
 
Join Date: Jul 2007
Posts: 229
wow martinsh very nice as always.. keep up good work
working flawlessly here (onboard nvidia 9400)

looking forward to another parallax mapping techniques.. hoping for 'iterative' one

(still can't believe all those goodies and optimalizations for BGE last weeks... guys I'm stunned, bravo)
#2   Old 13-May-09, 14:11   
Reply With Quote
Sim88 Sim88 is offline
Member
 
Join Date: Aug 2006
Posts: 1,504
I get
Quote:
Fragment Shader failed to compile with the following errors:
ERROR: 0:25: '+' : wrong operand types no operation '+' exists that take a left-hand operand of type 'undefined interpolation 2-component vector of float' and a right-hand operand of type '3-component vector of float' <or there is no acceptable conversion>
Then it repeats it with 0:30, 0:35 and 0:40...
#3   Old 13-May-09, 15:39   
Reply With Quote
Mr. Smith's Avatar
Mr. Smith Mr. Smith is offline
Member
 
Join Date: Sep 2008
Location: Belgium
Posts: 67
This is some magnificent work!
I think this is the best parallax shader I've ever seen for Blender.
............................................
Current project - The Lost Coast - Click me
#4   Old 13-May-09, 15:48   
Reply With Quote
John_tgh John_tgh is offline
Member
 
Join Date: Dec 2008
Location: New Atlantis
Posts: 203
You bonnovasitch XD :P First picture left corner, it even renders it as if it intersects with a high poly model... XD How is it performance wise?
#5   Old 13-May-09, 15:48   
Reply With Quote
Social's Avatar
Social Social is offline
Member
 
Join Date: Nov 2005
Location: New Jersey, USA
Posts: 3,267
Thanks, this is good reference, and not to mention pretty. Also, thanks for hosting the .blend here, on the forums (makes the downloads easier).

Now, show me a big scene, with real-time global illumination.

PS: You should really try this in 2.49; there are several deprecation warnings.
............................................
My blog: "The Blend With No Name"
#6   Old 13-May-09, 18:32   
Reply With Quote
Ace Dragon Ace Dragon is offline
Banned Member
 
Join Date: Feb 2006
Location: Wichita Kansas
Posts: 12,952
Is this really happening, the BGE actually surpasses Blender's own Internal Renderer on something!?

If this is to be hardcoded, it should not only be for the BGE, but for the Internal Renderer as well, would be a useful trick for Durian.
#7   Old 13-May-09, 21:12   
Reply With Quote
greatrel greatrel is offline
Member
 
Join Date: May 2009
Posts: 9
Cooooool. I'll have to take a look at the coding and learn the master
#8   Old 13-May-09, 23:45   
Reply With Quote
Ace Dragon Ace Dragon is offline
Banned Member
 
Join Date: Feb 2006
Location: Wichita Kansas
Posts: 12,952
I tested it with various textures and I found an excellent reason why this needs to be hardcoded, you need programming knowledge to change its intensity and you can't scale the texture in the material settings.

This will be used a lot more if it can be hardcoded into Blender so it's very accessable to artists who don't have the time to mess with GLSL code.
#9   Old 13-May-09, 23:55   
Reply With Quote
dusty ghost's Avatar
dusty ghost dusty ghost is offline
Member
 
Join Date: Apr 2008
Posts: 121
Very nice work! But yeah, from a novice point of view, hard coded would be nice and easy(er).
............................................
-----------------------------------------------
I used to be dustbin1_uk
#10   Old 21-May-09, 12:45   
Reply With Quote
Deloince JP's Avatar
Deloince JP Deloince JP is offline
Member
 
Join Date: Jan 2008
Location: France
Posts: 82
Martinsh,
les contours des briques en relief c'est fabuleux, l'image est littéralement extrudée de sa face, un pur régal!
- - -
Martinsh,
the contours of brick relief is fabulous, the picture is literally extruded its face, a pure delight!
............................................
http://apostroph3d.com

http://deloincejp.cgsociety.org/gallery/
#11   Old 27-May-09, 05:49   
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 14:38.


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