Get an Xml without using states. Basics, Scripting (4 votes, average: 5.00 out of 5) Loading ...
Here is a very easy to use sample of script to get an xml. Instead of using states, I recommend using handlers… Introduction States suffice when you only have one xml to get, but when you want to load more than one file, or when you want to use states for another usage, it becomes difficult to use them for the xml. Setup Firstly, create a variable in your AIModel, named myXml1 in my case, type xml. Test the status At the beginning of the script, get the status of the xml variable: local status = xml.getReceiveStatus ( this.myXml1 ( ) ) If the status is 1, it means the xml has been received and you can parse it. if ( status == 1 )then local root = xml.getRootElement ( this.myXml1 ( ) ) --To doelse I have written the first step of the parse process (get the root element), you now have replace the “–To do” by your own parse process, according to your xml structure.
Facebook/Shiva Sample Project. This will save you some major pain.
Server. Otras Plataformas. RPG Kit - Life of a Game Designer. Need some optimization guidance for iPad/iPhone. Batching and optimization. Scripting (4 votes, average: 5.00 out of 5) Loading ...
This tutorial explains how to improve performances, on IPhone necessarily but also on computer, by reducing the number of draw calls and the CPU usage. Required ShiVa 1.8.1 Summary 1 – Draw calls2 – Auto-batcher3 – Object combiner4 – Numbers Draw calls The major problem on IPhone is the draw call number. Auto-batcher The engine has a feature to optimize the draw call number. Note you can gain performances if your models have no scale and no rotation. Learn more about the auto-batching optimisation Object combiner There is a new feature with ShiVa 1.8.1, allowing you to merge all your models into a single mesh.
How to combine your objects? hGroup = scene.createRuntimeObject ( hScene, "" ) Then, for each object you want to combine, parent it to the group: object.setParent ( hObject, hGroup, true ) The group is ready, it’s merge time, call the function bellow to combine your objects into a single mesh. Numbers. Texture Atlas Generator. This script generates a texture atlas out of the selected objects, and manipulates their UVs (and if necessary, their geometry as well).
Currently only Multimaterials and/or Standardmaterials (with bitmaps in diffuse channel!) Supported. Texture atlasses especially are important for real time applications and game development. Check to see performance comparisons. Features: - geometry slicing - padding - simple packing algorithm - editing many objects at once, thus creating only one atlas for all of them If feedback is positive, 3d-io would consider transforming this script into a much faster and better plugin, developed in C++. Example for a generated texture atlas: Additional Info: This script adds a single button to your Interface. Version Requirement: First ShiVa App Tutorial - Part 2. From ShiVa Wiki Back to WIKI User Tutorials Welcome to Part 2 of the Create Your First ShiVa App Tutorial.
In Part 1 of this tutorial, I introduced ShiVa and guided you through creating your first ShiVa application. In this part, I'll introduce the First Person View (FPV) framework, and get you moving around in your very own 3D world. As I said in Part 1, there are several extremely useful pre-built Frameworks available for ShiVa. So, for this part of the tutorial we'll be loading and running the FPVFramework....... Part 1 - Loading the FPVFramework Part 2 - Setting up the FPVFramework Part 3 - The FPVFramework Scripts. FirstPersonView. From ShiVa Wiki Models CornellBox with 2 boxes, grouped "Car" helper, tagged "FPVStart" (hehe) FPVDummy, created dynamically, just another helper Lights Cameras DefaultCamera, but FPVCamera set as Main User Camera (resulting in 2 cameras in the scene) AIModels main: FPVMain FPVCamera: FPVCamera (AIModel directly on the model) Scenes FIrstPersonView Misc HUD for the screen fading at the beginning Player gets created at the FPVStart, no model for the player traditional mouse and keyboard control typically found in a first person shooter Setup CornellBox is a collider specially-designed main user camera Init FPVMain.onInit ( ) loads HUD (screen fader) BEFORE setting the current scene custom function this.enableInputsHandling ( true ) to capture the mouse:
S3D Module for joomla.