It looks like you're new here. If you want to get involved, click one of these buttons!
Hi All,
Just posting hoping I can gets few tips from the forum. Recently several good posts on textured cubes, notably ones from @dave1707, have given me a different approach to them using Craft (most of mine used meshes).
Good learning from that - so I turned my mind to Sky Boxes from Craft. Naively thinking all you had to do was place the camera at the centre of the box - but it doesn't work!
So - can anyone point me to the essential differences between cubes and Sky boxes? Is it anything to do with the Craft camera routines or the environment parameters for the scene?
Comments
@Bri_G All you have to do to get the inside view to work is either just reverse the uvs table or append a reverse of the uvs table to itself for an outside and inside view.
@dave1707 - OK, but what exactly do you mean by reverse the table. Change the order of the textures or change the values of the vertices?
@Bri_G My mistake, it’s not the uvs but the indices table. Just take the indices table and read the table in reverse order and append it to the original table.
@bri Here’s an example. The reverse code is at the bottom. Just zoom in to get inside of the box.
@dave1707 - thanks for the post, clarified how to do this in Craft now got a model universe on my pad.
@Simeon @John - just playing with skybox again and ran into the old problem of having seams visible. I know John updated the skybox to one line but I have run a few skybox maps and encountered the seam lines again. I think in the past I got round the problem by using separate faces and increasing the size which worked but at the expense of clashes across the seams - mismatching of graphics. Did the problem get resolved? Also an issue with mirroring if I remember correctly.
@Bri_G Check the size of your skybox image. Make sure the width is an exact multiple of 4 and the height an exact multiple of 3.
If they’re not exact multiples, then the uvs calculations will be off which might cause the seams.
Some of my own have shown the seams and a couple demo ones that I downloaded. I'll check dimensions of textures. Already tried adjusting texture sizes using your texture building routine to 102px faces vs 100px as mentioned above. Most of my face images are 256px squares for the builder.
@Bri_G Can I see a screenshot of the seams and the cubemaps you are using?
I have had errors on occasion when that the ratio is not correct and should be 4:3 - but always managed to resolve the problem.
Thanks for the offer of help - I'll post images if I can't resolve them.