saindd Posted October 19, 2015 Share Posted October 19, 2015 I've noticed that Torque has a different format for cross skyboxes. This seems to be the standard for various engines (Unity, Shiva, C4, etc): http://www.terathon.com/wiki/images/0/05/BryceFig05.jpgHowever, if i use a Skybox in cross format with Torque, i have to rotate some textures (right, 90 ccw, left 90 cw, and invert the back one). And still, they don't seem to match. Is this a buggy behavior that was fixed in some resource at garagegames.com or, is it just like that? Quote Link to comment Share on other sites More sharing options...
saindd Posted October 19, 2015 Author Share Posted October 19, 2015 BTW: the format is also incompatible with ATI's cubemapgen or the Nvidia converter as well. The vertical and horizontal cross maps don't work. I have to manually manipulate each and every texture to map Torque's, and even then, there are seams. :( Quote Link to comment Share on other sites More sharing options...
andrewmac Posted October 19, 2015 Share Posted October 19, 2015 Could you post at least one of the skyboxes you're trying to use? Are you piecing them together manually or do you have them already in DDS? Quote Link to comment Share on other sites More sharing options...
Steve_Yorkshire Posted October 19, 2015 Share Posted October 19, 2015 http://farm5.static.flickr.com/4054/4404356004_5d5befd018_o.jpg Quote Link to comment Share on other sites More sharing options...
saindd Posted October 19, 2015 Author Share Posted October 19, 2015 This is an example: http://wiki.polycount.com/w/images/7/73/Cubemap_Sorsele_humus.jpghttp://www.f-lohmueller.de/pov_tut/backgrnd/im/CubeMappingWrapping_1d_64.gifThe horizontal cross seems to be a standard. I'm able to export that from Bryce, Vue, Maya (with a few plugins) and also from cmftStudio, Lys and Cubegenmap. There's also the vertical cross, but seems to be used only by AMD's cubegenmap.However, in Torque, Left and Right, Front and Back, are rotated in a circular way to match the top and bottom textures. And i can't find an easy way to export that format from those applications. I'm having to do some heavy manual transformation in CC with lot's of trial and error: Swap R and L, rotate CCW, CW... now try another combination, and now another, and so on, until they match up. It sucks. Quote Link to comment Share on other sites More sharing options...
andrewmac Posted October 19, 2015 Share Posted October 19, 2015 This is the layout I'm used to which is what I used in Torque 6: /// +----------+ /// |-z 2| /// | ^ +y | /// | | | /// | +---->+x | /// +----------+----------+----------+----------+ /// |+y 1|+y 4|+y 0|+y 5| /// | ^ -x | ^ +z | ^ +x | ^ -z | /// | | | | | | | | | /// | +---->+z | +---->+x | +---->-z | +---->-x | /// +----------+----------+----------+----------+ /// |+z 3| /// | ^ -y | /// | | | /// | +---->+x | /// +----------+ Other than switching Y for Z so that Z is up, it looks like they match. 2 and 3 should be top and bottom. Good good. The current setup in T3D is the one @Steve_Yorkshire posted? That's an odd layout. Quote Link to comment Share on other sites More sharing options...
saindd Posted October 19, 2015 Author Share Posted October 19, 2015 Yes, that's Torque's layout:http://docs.garagegames.com/torque-3d/official/content/documentation/World%20Editor/Tutorials/images/SkyCubemapDone.jpghttp://docs.garagegames.com/torque-3d/official/content/documentation/World%20Editor/Tutorials/CreatingSky.html Quote Link to comment Share on other sites More sharing options...
andrewmac Posted October 19, 2015 Share Posted October 19, 2015 In the image @Steve_Yorkshire posted top and bottom are 4 and 5. In the layout I posted and the image you showed, 2 and 3 are top and bottom. Quote Link to comment Share on other sites More sharing options...
rlranft Posted October 20, 2015 Share Posted October 20, 2015 Heh, yeah, it's a thing - you have to remember that Torque started back in the mid~late 90's. There weren't many real "standard" ways of doing game things.... Quote Link to comment Share on other sites More sharing options...
marauder2k9 Posted October 27, 2015 Share Posted October 27, 2015 You have the source code and can change this to use one texture if you wanted and/or change which texture gets mapped to which polygon, I myself have it 0 1 2 3 across the middle Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.