sidebar features
sidebar content

Go Back   Blender Artists Forums > Game Engine > Game Engine Support and Discussion

Reply
 
Thread Tools
martinsh's Avatar
martinsh martinsh is offline
Member
 
Join Date: Oct 2006
Location: riga, latvia
Posts: 482
Hey!
At last here is a first proper cube mapping in BGE. Done it with help from Dalai Felinto (dfelinto).
For those who want to make fast, and easy to setup reflections and refractions.
Things yet to do:
  • make it work for rotating objects (done)
  • add an animated normal map for water demo. (done)

CubeMap_Blender_OriFix.blend

screenshot:
cm.jpg

done also as part of Twilight 22 project (announcement HERE)
Attached Files
File Type: blend RealCubeMap.blend (317.7 KB, 284 views)
............................................
www.martinsh.co.nr - gallery is broken..

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

Last edited by martinsh; 01-May-09 at 21:07.
#1   Old 14-Apr-09, 23:42   
Reply With Quote


Robo3Dguy's Avatar
Robo3Dguy Robo3Dguy is online now
Member
 
Join Date: Apr 2009
Location: I'm in Canada!
Posts: 1,492
What? This is in the BGE? This ain't a raytraced reflection?
............................................
Robo3D.com.....Robo3D.Wordpress.com

My dynamite filled cardboard box of 2D artwork

Shall we ask the guy in the fedora?
The easiest way to hack into something is to type in the correct username and password.

Good day to all of you and happy blending!
#2   Old 15-Apr-09, 00:44   
Reply With Quote
Blendiac's Avatar
Blendiac Blendiac is offline
Member
 
Join Date: May 2007
Location: North of Toronto, Ontario, Canada
Posts: 775
Dang Martinsh,

That's beautiful, and it even worked silky smooth on my ATI card! Even works with animation...

Great work, again!
............................................
Starting out? Here's the tutorial that I found most helpful when first beginning in wiki or PDF format.

..........................................After that, RTFM! (Read the *Friendly* Manual ) here!..........................................
#3   Old 15-Apr-09, 03:58   
Reply With Quote
dfelinto's Avatar
dfelinto dfelinto is offline
Member
 
Join Date: Jun 2005
Location: Rio de Janeiro, Brasil
Posts: 347
Nicely done Martins. I really liked the result. Congrats

As I told you I will enable an option to output EnvMap/CubeMap from the dome mode. Therefore we will be able to "bake" animated EnvMaps
(I wasn't that excited with this possibility for the lack of cubemap support "out of the box" in current GLSL mode).
#4   Old 15-Apr-09, 04:16   
Reply With Quote
gomer's Avatar
gomer gomer is offline
Member
 
Join Date: Dec 2004
Location: canada
Posts: 458
Works great on my ATI card with mac drivers. Good job Martinsh.
............................................
Nanoshooter
#5   Old 15-Apr-09, 04:57   
Reply With Quote
cray's Avatar
cray cray is offline
Member
 
Join Date: Dec 2008
Location: France
Posts: 547
Impressive, congratulations.
............................................
Portfolio : www.aandria.com
My contribution : Third person Template
#6   Old 15-Apr-09, 05:44   
Reply With Quote
martinsh's Avatar
martinsh martinsh is offline
Member
 
Join Date: Oct 2006
Location: riga, latvia
Posts: 482
Quote:
Originally Posted by Robo3Dguy View Post
What? This is in the BGE? This ain't a raytraced reflection?
well technically yes the reflection is raytraced, but baked into a cube map.

Quote:
Originally Posted by Blendiac View Post
Dang Martinsh,

That's beautiful, and it even worked silky smooth on my ATI card! Even works with animation...

Great work, again!
Hmm great to hear that it works flawlessly on ATI cards..


Quote:
Originally Posted by dfelinto View Post
Nicely done Martins. I really liked the result. Congrats

As I told you I will enable an option to output EnvMap/CubeMap from the dome mode. Therefore we will be able to "bake" animated EnvMaps
(I wasn't that excited with this possibility for the lack of cubemap support "out of the box" in current GLSL mode).
baking env maps in game realtime? that sounds awesome.. actually that makes real reflection/refraction for cars or any reflective/refractive object.
Also baking envmap in game would be a nice feature, currently it is possible to render it raytraced, and it usually looks different than seen in game.

btw I will also try image based lighting with this technique.

Quote:
Originally Posted by gomer View Post
Works great on my ATI card with mac drivers. Good job Martinsh.
great to hear it works also on Mac`s

Quote:
Originally Posted by cray View Post
Impressive, congratulations.
Thank You!
I really love your works, especially your line art
Some works little reminds me of Hayao Miyazaki/Studio Ghibli films
............................................
www.martinsh.co.nr - gallery is broken..

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

Last edited by martinsh; 15-Apr-09 at 14:57.
#7   Old 15-Apr-09, 14:54   
Reply With Quote
TAMcCullough TAMcCullough is offline
Member
 
Join Date: Mar 2009
Location: Ontario, Canada
Posts: 42
I'm new to Blender and have some questions about the scene.

I'm curious about the lighting. To me it looks like it is baked lighting that has been applied through a material. But I can't see the material. So this makes me wonder if it was baked by the GE sort of like the Source or Unreal Engines.

Will we be able to use this Env Map in materials with stencils? For example like water puddles on a muddy earth texture?

Looks fantastic.
#8   Old 15-Apr-09, 15:45   
Reply With Quote
Eterniam's Avatar
Eterniam Eterniam is offline
Member
 
Join Date: Mar 2009
Posts: 83
It looks amazing! But it would look even better if you baked them so that they reflected each other too!
#9   Old 15-Apr-09, 16:07   
Reply With Quote
martinsh's Avatar
martinsh martinsh is offline
Member
 
Join Date: Oct 2006
Location: riga, latvia
Posts: 482
here is something more interesting.

env.jpg

reflection_refraction_fresnel_aberration.blend
............................................
www.martinsh.co.nr - gallery is broken..

Blender artworks:
Shotgun
Assault Rifle
Realtime Bathroom Demo
Advanced GLSL 2D Filters
#10   Old 15-Apr-09, 20:22   
Reply With Quote
vicmax vicmax is offline
Member
 
Join Date: Jul 2008
Posts: 230
That's strange, the first file worked perfectly, but the last one just shows white objects... Is there something I should have done to make it work?
Anyway, congratulations for your work.
............................................
The wild west project needs members!
#11   Old 15-Apr-09, 20:26   
Reply With Quote
Sim88 Sim88 is offline
Member
 
Join Date: Aug 2006
Posts: 1,504
Works for me! That is sweet, you should make the camera move a little slower in the demo.
#12   Old 15-Apr-09, 21:09   
Reply With Quote
fobsta fobsta is offline
Member
 
Join Date: May 2004
Location: lOdOn
Posts: 741
Both demos look great. Can't wait to use them for car chrome and headlights. Maybe a few milk bottles as well
#13   Old 15-Apr-09, 21:16   
Reply With Quote
Cloud_GL's Avatar
Cloud_GL Cloud_GL is offline
Member
 
Join Date: Sep 2007
Location: Viņa del Mar, Chile
Posts: 786
Hi, the demos are real nice, but I found out, in the first one, that if you rotate the sphere, like making it a rigid body, the cube map also does as if the scene surrounding it were rotating too, isn't this not supposed to happen?
#14   Old 15-Apr-09, 21:48   
Reply With Quote
martinsh's Avatar
martinsh martinsh is offline
Member
 
Join Date: Oct 2006
Location: riga, latvia
Posts: 482
Quote:
Originally Posted by Cloud_GL View Post
Hi, the demos are real nice, but I found out, in the first one, that if you rotate the sphere, like making it a rigid body, the cube map also does as if the scene surrounding it were rotating too, isn't this not supposed to happen?
yeah, im currently working on that one..
............................................
www.martinsh.co.nr - gallery is broken..

Blender artworks:
Shotgun
Assault Rifle
Realtime Bathroom Demo
Advanced GLSL 2D Filters
#15   Old 15-Apr-09, 22:56   
Reply With Quote
martinsh's Avatar
martinsh martinsh is offline
Member
 
Join Date: Oct 2006
Location: riga, latvia
Posts: 482
Quote:
Originally Posted by TAMcCullough View Post
I'm new to Blender and have some questions about the scene.

I'm curious about the lighting. To me it looks like it is baked lighting that has been applied through a material. But I can't see the material. So this makes me wonder if it was baked by the GE sort of like the Source or Unreal Engines...
You can bake EnvMaps in Blender, but not in game itself (yet)

Quote:
Originally Posted by TAMcCullough View Post
...Will we be able to use this Env Map in materials with stencils? For example like water puddles on a muddy earth texture?

Looks fantastic.
umm, well yea if you know GLSL coding .. but i hope someone will hardcode or fix this is Blender itself, so you can access it through Blender Materials.

Edit: srry for double post. I`ts really late here..
............................................
www.martinsh.co.nr - gallery is broken..

Blender artworks:
Shotgun
Assault Rifle
Realtime Bathroom Demo
Advanced GLSL 2D Filters
#16   Old 15-Apr-09, 23:00   
Reply With Quote
Sasori's Avatar
Sasori Sasori is offline
Member
 
Join Date: Oct 2007
Posts: 98
Wow this stuff is freaking awesome i cant stop looking at it XD O.O Can you post any tutorials on making this please? And good luck with those to-do's
............................................
PC Haikus

Windows NT crashed.
I am the Blue Screen of Death.
No one hears your screams.

The code was willing,
It considered your request,
But the chips were weak.

A file that big?
It might be very useful.
But now it is gone.
#17   Old 16-Apr-09, 03:02   
Reply With Quote
Rorkimaru's Avatar
Rorkimaru Rorkimaru is offline
Member
 
Join Date: Jun 2008
Posts: 643
Looks very good, both do!

If you wanted to use the video texture plug-in for this effect in real time would you use cube maps or reflection mapping with the reflection camera tracking to the player camera? I imagine that doing this in real time would be processor heavy so the one camera method might work best.
#18   Old 16-Apr-09, 14:18   
Reply With Quote
malCanDo malCanDo is offline
Member
 
Join Date: Dec 2002
Location: Ireland
Posts: 343
Nice work with the reflection - this also worked on an integrated Intel driver. The refraction one didn't though.
............................................
Check out some cool web 3D demos at...http://www.candointeractive.com
#19   Old 16-Apr-09, 15:44   
Reply With Quote
FunkyWyrm FunkyWyrm is offline
Member
 
Join Date: Dec 2007
Location: Derbyshire, UK
Posts: 797
Very nice. Especiallly the distorting one and the reflections.

All are working with GeForce Go 7600 (about 4 years old) at very good frame rates.

Edit:
Using Vista 32 bit.
............................................
Anything is possible ...
#20   Old 16-Apr-09, 15:59   
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 19:32.


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