MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "warnings": {
        "query": {
            "*": "Formatting of continuation data has changed. To receive raw query-continue data, use the 'rawcontinue' parameter. To silence this warning, pass an empty string for 'continue' in the initial query."
        }
    },
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Ripples",
        "continue": "gapcontinue||"
    },
    "query": {
        "pages": {
            "199": {
                "pageid": 199,
                "ns": 0,
                "title": "Ref LogicScripting",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "LogicScripting is a subject that is both simple and complex at the same time.\n\nBasically, logic scripting allows us to create the internal logic objects that Cyan uses from within an alcscript. Note particularly that logic scripting is a ''subset'' of AlcScript, and not alcscript itself.\n\nIn this guide, you will find that LogicScripting makes heavy use of the recursive feature of alcscript. Basically this means that every subkey in alcscript is an alcscript in itself.\n\nThis guide will have the following subjects:\n\n* [[LogicIntro|Game Logic]]\n* [[LogicTags|Tags, Names and References]]\n* [[LogicMods|Logic Modifiers]]\n** [[LogicModDetectors|Logic Detectors]]\n** [[LogicModConditions|Logic Conditions]]\n** [[LogicModActions|Logic Actions]]\n* [[LogicActions|Actions]]\n** [[LogicRespMod|Responder Modifiers]]\n** [[LogicPyFileMod|Python File Mods]]\n** [[LogicOneShotMod|OneShot Animations]]\n* [[LogicMessages|Messages]]"
                    }
                ]
            },
            "843": {
                "pageid": 843,
                "ns": 0,
                "title": "Reflective Surfaces with Dynamic Env Maps",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "Credit for this tutorial goes to Boblishman, who helped teach me how to make things shiny.\n\nThis is not that hard of a tutorial to do, however it does require:\n\nKnowing how to use Blender,\nMaking meshes in Blender.\nBasic texturing and UV Mapping in Blender.\n\nIf you do not know how to do those, I suggest that you learn them first.\n\n----\n===Dynamic Environmental Maps===\n\nThings that are reflective in the real world work like this:\n\nThe light from the surrounding objects (You, a friend, the trees, and the Bahro behind you), strike you, bounce off of you and on to another surface. Depending on that surface's reflectivity, will depend on how much of that light bounces back.\nA highly polished surface, with silvering (a mirror) will reflect back almost 100% of that light. Hence why you can see yourself in the mirror. \nA chalkboard on the other hand has a very LOW reflective surface, and very little of that light will be reflected back.\n\nThat's how it works in the real world.......\n\nThat is NOT how it works with 3D graphics.\n\nInstead, we FAKE it. Because, again (if you've read my Light Map tutorial), we don't really have photons whizing around in the game. Instead, we have textures being presented.\n\nIf we want a surface to appear \"Shiny\", then we think of it as being \"mirror like\", which means reflecting back the surroundings from it's surface.\nWell, we can't make something reflect, because there are no photons to bounce off it, but we can take images of the surroundings and place them on the object, ''making'' them look like a reflection.\n\nThese images when put together, are called a '''Environmental Map''' (this will be covered in the last section).\n\nIf we can have the game update these images in real time, we then call it a '''Dynamic Environmental Map'''.\n\nSo let's go make a floor shiny.......\n\n----\n===Mirror, Mirror, On The Wall......er....Floor....===\n\nOkay, first we need a floor:\n\n[[File:Dynenv1.jpg]]\n\nWe'll use this one from my Nexus I made. It's just a red granite surface. Now we'll make it shine like you see the floors of banks or government buildings.\n\nFirst, and this is '''important''', when you do this, your object needs something that will be reflecting back. In other words, a ball floating in empty space will not work. A room, or some environment with things that can be reflected will.\n\nGo ahead and texture your floor as normal and UV map it.\n\nNow go back to the Textures Panel and create a 2nd texture:\n\n[[File:Dynenv3.jpg]]\n\nNow in the drop down box, instead of picking \"Image\", pick \"EnvMap\" instead.\n\nA new tab will pop up called \"Envmap\". Like in my pic above, make sure the \"Static\" and \"Cube\" buttons are selected (they are by default).\n\nNow go back to the Materials Panel:\n\nMake sure our new texture is selected.\n\n[[File:Dynenv4.jpg]]\n\nNow click on the MapInput tab and make sure UV is selected:\n\n[[File:Dynenv5.jpg]]\n\nNow click on the Map To tab, and take a look here:\n\n[[File:Dynenv6.jpg]]\n\nThe \"Col\" slider that I'm pointing to with my arrow is defaulted to \"1.000\"\n\nA setting of 1.000 will make our object VERY reflective, and depending on the original texture, will be a shiny as a mirror.\n\nI've found setting it to 0.400 works quite well, but don't be afraid to play around with this. Just remember, the closer you get to 1.000 the more shiny your object's surface will be.\n\nNow for the last part: ALCScripting.\n\nOh, don't worry, this part is easy. Simply put the following lines in your ALCScript:\n\n\n <yourobjectname>:\n     type: dynenv\n     dynenv: \n         refreshrate: 0\n\n\nWhere <yourobjectname> is the name of the object you are trying to make shiny:\n\nHere's a pic:\n\n[[File:Dynenv2.jpg]]\n\nNow, let me talk about that \"refreshrate\" in the script.\n\nI recommend that you keep it at \"0\". This is how often the game will update the EnvMap on the object. If you set this number to \"30\" it will do so every second.\nHowever, at \"0\" the map will be drawn once at link in, and that's it. This will keep the avatar reflection turned off.\n\nIf you link in to certain places in Uru, you'll notice that while in 3rd person mode, you don't see your avatar's reflection. This is because the real time updating can tax a low end computer, so many of Cyan's maps are set to a refresh rate of \"0\", so everyone can enjoy the game, with no buggy looking avatar reflections.\n\nNow, you can change that number if you want, and experiment. Just remember that not everyone out there has a high end computer and can deal with it. \n\nOkay, that's it for making an object shiny all over. Let's export my Age, link in and take a look:\n\n[[File:KIimage0038-1.jpg]]\n\nYou'll see the shiny floor better as you move about the room, but in the image above, you can clearly see the window being reflected on the floor.\n\n----\n\n===Okay....But Can I Only Do Floors?===\n\nOh you can do anything if you'd like. I highly recommend this for small bodies of water that are NOT wavesets (fountain pools, puddles, etc).\nLarge bodies of water like Ponds, Lakes or Oceans we use Wavesets and the reflectiveness is built into the script already.\n\nBut let's say you have shiny copper or brass pipes of some D'ni machinery....it will work great on them! Glass windows! Brass door steps! You name it! Have fun!\n\n----\n===But Andy, I Only Wanted Part Of My Object Shiny.....===\n\nOkay, okay, that's not a problem either. \n\nIn that case, you need to have a THIRD texture, but one that is located in between the first texture and your EnvMap texture. This 3rd texture will be a \"Stencil\"\n\nYou'll be doing the same thing here, except where you paint the white stencil is where you want the texture to be shiny, leave the other parts black.\n\nThat's all you Have to do to get that. Examples of this are:\n\nThe Classroom Doors in Bevin, the floor around the fountain in Bevin to name 2.\n\nI hope you found this tutorial helpful.\n\n----\n=== Using an Image as Environmental Map ===\n\nThe process is so similar to a Dynamic Environmental Map that I'm not going to write a new wiki page for it (although the title of this one now no longer fits). Basically you still follow all the steps described by Andy except that you skip the AlcScript.\n\nThen in the Textures Panel you have to change \"Static\" to \"Load\". Now you can select the texture you want to use for the reflection.\n\n[[File:Static_envmap.png]]\n\n''Note:'' If your texture does not show up in the preview window it has not properly loaded and you will get an error upon export. To fix this simply clear the \"Ob:\" field as shown in the example and reload the texture.\n\n----\nReturn To: [[Main Page]]"
                    }
                ]
            }
        }
    }
}