![Smile :)](./images/smilies/icon_smile.gif)
Cubemap?
Moderator: Moderators
Cubemap?
Someone on FL Studio forums asked how to use a cubemap in ZGE. I remember seeing this but when I search the ZGE forums I only find mentions of it but no project. Maybe Kjell happen to have an example lying around? ![Smile :)](./images/smilies/icon_smile.gif)
![Smile :)](./images/smilies/icon_smile.gif)
Re: Cubemap?
Hej Ville,
![Razz :P](./images/smilies/icon_razz.gif)
- Creating a real OpenGL cube-map for use with OpenGL features or a samplerCube in a shader?
- Applying 6 individual images to a cube to create a sky-box / panorama-image ( a.k.a. fake cube-map )?
- Using a single horizontal-cross ( see below for example ) image for either a real of a fake cube-map?
![Image](http://wiki.polycount.com/w/images/7/73/Cubemap_Sorsele_humus.jpg)
Anyway, attached is a example of a real OpenGL cube-map generated from 6 individual Bitmap components ( and a quick & sloppy reflection demo ). It's a little clumsy, but there's no elegant way around it .. aside from adding a CubeMap component obviously![Wink :wink:](./images/smilies/icon_wink.gif)
K
Can't seem to find it either
![Razz :P](./images/smilies/icon_razz.gif)
Depends a little on what this person means with "cubemap".
- Creating a real OpenGL cube-map for use with OpenGL features or a samplerCube in a shader?
- Applying 6 individual images to a cube to create a sky-box / panorama-image ( a.k.a. fake cube-map )?
- Using a single horizontal-cross ( see below for example ) image for either a real of a fake cube-map?
![Image](http://wiki.polycount.com/w/images/7/73/Cubemap_Sorsele_humus.jpg)
Anyway, attached is a example of a real OpenGL cube-map generated from 6 individual Bitmap components ( and a quick & sloppy reflection demo ). It's a little clumsy, but there's no elegant way around it .. aside from adding a CubeMap component obviously
![Wink :wink:](./images/smilies/icon_wink.gif)
K
- Attachments
-
- Cubemap.zgeproj
- (273.5 KiB) Downloaded 191 times
Re: Cubemap?
That looks great, thanks!
I will reply to the user and ask for more details. It is in a private forum so cannot post the link here.
Yes I think a samplerCube in a shader is the next step because the question mentioned this shader: https://www.shadertoy.com/view/Wl3fWX
I will reply to the user and ask for more details. It is in a private forum so cannot post the link here.