|
|||||||
![]() |
|
|
Thread Tools |
|
||||
|
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.. artmartinsh.blogspot.com - blog Blender artworks: Shotgun Assault Rifle Realtime Bathroom Demo Advanced GLSL 2D Filters Last edited by martinsh; 13-May-09 at 16:16. |
||||
|
#1
|
||||
|
|
|
||||
|
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
|
|
|||
|
I get
Quote:
|
|||
|
#3
|
|
||||
|
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
|
|
||||
|
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
|
|
||||
|
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.
............................................
To the dumb question “Why me?” the cosmos barely bothers to return the reply: Why not? - Christopher Hitchens |
||||
|
#6
|
|
||||
|
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.
............................................
Soar, soar through the skies upon the wings of anything that can fly, to bring your dreams to reality, to bring success upon you, to bring you a good life for you and your family. Not everyone can get to the point where you constantly draw 4 aces in a deck of cards, but everyone is able to taste what success feels like and what that can mean for them. |
||||
|
#7
|
|
|||
|
Cooooool. I'll have to take a look at the coding and learn the master
|
|||
|
#8
|
|
||||
|
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.
............................................
Soar, soar through the skies upon the wings of anything that can fly, to bring your dreams to reality, to bring success upon you, to bring you a good life for you and your family. Not everyone can get to the point where you constantly draw 4 aces in a deck of cards, but everyone is able to taste what success feels like and what that can mean for them. |
||||
|
#9
|
|
||||
|
Very nice work! But yeah, from a novice point of view, hard coded would be nice and easy(er).
|
||||
|
#10
|
|
||||
|
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
|
|
||||
|
to ops: i know i'm resurrecting an old thread, so shut up.
martinsh: that looks OK, but it's not parallax occlusion. i found someone else's parallax occlusion at http://blenderartists.org/forum/showthread.php?t=156019, however it runs slower than i expected (not sure if this can be avoided or not) and it falls apart at the edges too, just now it's along the view xy plane, not the UV. i made my own texture to test it, and boy it's bad at the edges. you know why this might be? http://www.********.org/blend/2685 also, i could use a little help adding silhouette clipping to that shader.
............................................
WHAT ARE YOU DOING READING MY SIGNIATURE!? |
||||
|
#12
|
|
||||
|
Be carefull with this parallax mapping, i try to open the file and when i pressed P, puf, the screen got black and after some seconds my windows informed me that my video card crashed!
Not the martinsh one the linked one by blendmaster. |
||||
|
#13
|
|
||||
|
that's not the shader's fault, that's your graphics driver's fault. i'll bet you're on an intel graphics card, aren't you?
............................................
WHAT ARE YOU DOING READING MY SIGNIATURE!? |
||||
|
#14
|
|
||||
|
It doesn't work on my ATI card. It runs OK ,the planes stay textured and normal-mapped, but no effect occurs. Oddly enough, your earlier "relief map" file did. I wonder what the difference was.
P.S. This Twilight22 is really going to be something, isn't it?
............................................
The <<Asteracers Project>> is back in business! Join now for fun, excitement, and a mention in the credits! |
||||
|
#15
|
|
||||
|
pretty sure twilight 22 was called off. and I'm pretty sure martinsh still hasn't looked at this thread.
............................................
WHAT ARE YOU DOING READING MY SIGNIATURE!? |
||||
|
#16
|
|
||||
|
Hey!
That parallax shader worked for me like 2 seconds and then crashed my GPU driver. ![]() well from what I saw in these 2 seconds, it looked OK. I see what I can do with the shader to make it work properly and faster. Also the shader in first post is parallax mapping not parallax occlusion mapping. Both are very different in terms of technique.
............................................
www.martinsh.co.nr - gallery is broken.. artmartinsh.blogspot.com - blog Blender artworks: Shotgun Assault Rifle Realtime Bathroom Demo Advanced GLSL 2D Filters |
||||
|
#17
|
|
||||
|
i am aware they are different in implementation, but they're fairly similar in what they do. the only thing that differs in a parallax occlusion from straight parallax is that occlusion deletes pixels that are out of view, instead of just squishing them.
and seriously? your gpu driver crashed? i hope only blender was affected :/ seems that i did something wrong...
............................................
WHAT ARE YOU DOING READING MY SIGNIATURE!? |
||||
|
#18
|
|
||||
|
parallax occlusion mapping = relief mapping
and I did relief mapping a while ago. GPU driver crashes pretty often for me as I experiment with shaders quite alot and it affects the whole PC, reboot is the only way to recover .Anyway: here is "Curved Relief Mapping" shader. http://fabio.policarpo.nom.br/docs/C...iefMapping.pdf screenshots: ![]() ![]() http://www.********.org/blend/2695 buttons 1 and 2 changes mesh from Sphere to Cylinder
............................................
www.martinsh.co.nr - gallery is broken.. artmartinsh.blogspot.com - blog Blender artworks: Shotgun Assault Rifle Realtime Bathroom Demo Advanced GLSL 2D Filters Last edited by martinsh; 14-May-10 at 01:36. |
||||
|
#19
|
|
||||
|
Lol you forgot to pack the images.
Also 3 errors in command line: In Fragment shader lines 23, 91 and 111 there is an int to float cast issue, but can't find them, the line counter doensn't work properly on C shaders =___=.
............................................
DeviantArt site! - My BGE page - Youtube And some threads: Hero of the Day (BGE) - Some Parallax Mapping - Lip script syncronisation for BGE - 2D character sprite script - Pick up, move, throw and crash! Animation - Cartoon woman animation - Other renders - Spy woman on hideout |
||||
|
#20
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|