3 registered members (Dico, AndrewAMD, TipmyPip),
16,874
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Dynamic Environment Cubemapping [DOWNLOAD]
#375716
06/27/11 14:29
06/27/11 14:29
|
Joined: Apr 2007
Posts: 141 Germany
Timothy
OP
Member
|
OP
Member
Joined: Apr 2007
Posts: 141
Germany
|
Hi, I recently started to do some Dynamic Cubemapping and combined it with an old Fixed Function Effect by Steempipe (Environment Mapping) from Slin's massive shadercollection. It uses render to texture, so I think you have to own at least the Commercial edition (or use ChrisB's plugin). This is made with A7, but it should work with A8 too. This effect enables an entity to dynamically reflect its environment. It can f.e. be used for a car body. Here is a picture:  And here the download link: edit: http://www.file-upload.net/download-4116565/DEM.rar.htmlThere is still a problem, which creates graphic bugs by changing the engine resolution. I do not know what creates this problem, it could even be the engine (render to texture) or the shader. Greetings, Timothy
Last edited by Timothy; 02/14/12 18:24.
|
|
|
Re: Dynamic Environment Cubemapping [DOWNLOAD]
[Re: Timothy]
#375717
06/27/11 14:32
06/27/11 14:32
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
Expert
|
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
Often when changing resolution it's a good idea to recreate render targets. Looking good, though!
Jibb
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
Re: Dynamic Environment Cubemapping [DOWNLOAD]
[Re: Timothy]
#375722
06/27/11 14:37
06/27/11 14:37
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
Expert
|
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
That wouldn't do it, but... how big are the render targets? It might have to do with bmap_zbuffer (which is supposed to be automatic these days, but I've still found it necessary to call manually at times).
Jibb
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
Re: Dynamic Environment Cubemapping [DOWNLOAD]
[Re: JibbSmart]
#375723
06/27/11 14:44
06/27/11 14:44
|
Joined: Apr 2007
Posts: 141 Germany
Timothy
OP
Member
|
OP
Member
Joined: Apr 2007
Posts: 141
Germany
|
Well it creates a skycube. By changing 2 values in the code you can vary from 768*128 to 6144*1024 maps. But since every frame only one sixth of the "skycube" is being rendered the target map should be 128*128, 256*256, 512*512, 1024*1024 (dependant on your settings).
Edit: In the download it is 512.
Last edited by Timothy; 06/27/11 14:57.
|
|
|
Re: Dynamic Environment Cubemapping [DOWNLOAD]
[Re: Timothy]
#375725
06/27/11 14:57
06/27/11 14:57
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
Expert
|
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
Okay, having tried the demo, I don't know why it is but at a complete guess I'd say you might need to call bmap_to_cubemap again after changing resolution.
Also, for the sphere, the view positions seem to be a bit out of place. But it looks good in action, and I hadn't realised how many animations Sid has! I think he should come with the engine.
Jibb
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
Re: Dynamic Environment Cubemapping [DOWNLOAD]
[Re: Timothy]
#394599
02/14/12 18:32
02/14/12 18:32
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
Thank you so much!!!!  One question: I have 2 models. A weapon and the hands. Now I have a scope on the weapon. How I can assign the material JUST to the mirror-aim-thing from the scope? Hope there is any way  Thx by the way.
Last edited by Ch40zzC0d3r; 02/14/12 18:35.
|
|
|
|