Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (howardR, 7th_zorro), 893 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Dynamic Environment Cubemapping [DOWNLOAD] #375716
06/27/11 14:29
06/27/11 14:29
Joined: Apr 2007
Posts: 141
Germany
Timothy Offline OP
Member
Timothy  Offline 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.html

There 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
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

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: JibbSmart] #375719
06/27/11 14:35
06/27/11 14:35
Joined: Apr 2007
Posts: 141
Germany
Timothy Offline OP
Member
Timothy  Offline OP
Member

Joined: Apr 2007
Posts: 141
Germany
Do you mean calling something like "rendered_view.bmap = render;" again after changing the video resolution?
And thank you smile

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
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

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 Offline OP
Member
Timothy  Offline 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
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

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: JibbSmart] #375726
06/27/11 15:02
06/27/11 15:02
Joined: Apr 2007
Posts: 141
Germany
Timothy Offline OP
Member
Timothy  Offline OP
Member

Joined: Apr 2007
Posts: 141
Germany
Ok, thanks for your tip, I will try this.

Yep, Sid is pretty amazing. Generally I think new detailed models should come with the engine.

Re: Dynamic Environment Cubemapping [DOWNLOAD] [Re: Timothy] #394592
02/14/12 17:58
02/14/12 17:58
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
This is awesome!
Please reupload this, I really need this laugh

Re: Dynamic Environment Cubemapping [DOWNLOAD] [Re: Ch40zzC0d3r] #394597
02/14/12 18:24
02/14/12 18:24
Joined: Apr 2007
Posts: 141
Germany
Timothy Offline OP
Member
Timothy  Offline OP
Member

Joined: Apr 2007
Posts: 141
Germany
No problem. New link is in the first post.

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
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Thank you so much!!!! laugh
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 laugh
Thx by the way.

Last edited by Ch40zzC0d3r; 02/14/12 18:35.
Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1