
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? 

Re: Cubemap?
Hej Ville,

- 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?

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
K
Can't seem to find it either

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?

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

K
- Attachments
-
- Cubemap.zgeproj
- (273.5 KiB) Downloaded 352 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.