Monday, May 6, 2019

Explaining the xml file format for scene configuration (I)

We are going to analyze the structure of the configuration file of a scene: projext.xml. You can find on the directory of your device /modelan3dPro/projects/project_name/.

This is a xml file with all the scene configuration. This is one example:


<modelan3d>
<world fogDensity="0.01" fogEnabled="false" name="objetis2" 
 backgroundColor="0.000 0.000 0.000 1.000">
<camera cameraAngle="0 0 0" fieldOfView="75.00"  
location="0.000 91.574 157.700" lookAt="-0.000 27.171 65.217"  
lookAtDistance="112.70"/>
<lights>
<lightsPoint length="1">
<lightPoint location="0.000 200.000 200.000 1.000">
<material ambient="0.200 0.200 0.200 1.000" 
  diffuse="1.000 1.000 1.000 1.000" shiness="50.000" 
  specular="0.000 0.000 0.000 1.000"/>
</lightPoint>
</lightsPoint>
</lights>
<objects>
<globalAxis offset="0.0" transparency="0.0" visible="true"/>
<objects class="java.util.ArrayList">
<userGlObjectAbs class="com.modela3d.opengl.objects.group.GroupGlObject"  
creationTime="2017-12-15 17:08:51"  
minSDKVersion="8" creationType="101" 
 name="Object" rotation="0.000 0.000 0.000" scale="1.000 1.000 1.000" 
 translate="-4.145 43.562 74.250" vertices3Id="0">
<listObjects class="java.util.ArrayList">
<userGlObjectAbs class="com.modela3d.opengl.objects.UserGlObjectNoBacking" 
 creationTime="2017-12-15 16:51:43" minSDKVersion="8"  
creationType="2" name="Object" 
rotation="0.000 0.000 0.000" scale="1.000 1.000 1.000"  
translate="6.540 1.543 -15.003" vertices3Id="1">
<material ambient="0.200 0.200 0.200 1.000" 
 diffuse="1.000 0.765 0.000 1.000" 
 shiness="50.000" specular="1.000 1.000 1.000 1.000"/>
<matrixOperations length="3">
<vector3PojoXml type="0" x="6.5401344" y="1.5434628" z="-15.002789"/>
<vector3PojoXml type="1" x="0.0" y="0.0" z="0.0"/>
<vector3PojoXml type="2" x="1.0" y="1.0" z="1.0"/>
</matrixOperations>
</userGlObjectAbs>
<userGlObjectAbs class="com.modela3d.opengl.objects.UserGlObjectNoBacking" 
creationTime="2017-12-15 16:55:25" minSDKVersion="8" 
 creationType="2" name="Object" rotation="0.000 0.000 0.000" 
 scale="1.000 1.000 1.000" translate="21.348 -1.543 15.003"  
vertices3Id="2">
<material ambient="0.200 0.200 0.200 1.000" 
 diffuse="0.000 0.196 1.000 1.000" 
 shiness="50.000"  
specular="1.000 1.000 1.000 1.000"/>
<matrixOperations length="3">
<vector3PojoXml type="0" x="21.347689" y="-1.5434647" z="15.002785"/>
<vector3PojoXml type="1" x="0.0" y="0.0" z="0.0"/>
<vector3PojoXml type="2" x="1.0" y="1.0" z="1.0"/>
</matrixOperations>
</userGlObjectAbs>
</listObjects>
<matrixOperations length="3">
<vector3PojoXml type="0" x="-4.144524" y="43.561867" z="74.25049"/>
<vector3PojoXml type="1" x="0.0" y="0.0" z="0.0"/>
<vector3PojoXml type="2" x="1.0" y="1.0" z="1.0"/>
</matrixOperations>
</userGlObjectAbs>
</objects>
<plane planeSize="200" reflexion="true" shadows="true"  
textureAssetName="ground/square.png" textureScale="20.0"  
transparency="0.8" visible="true">
<material ambient="0.200 0.200 0.200 1.000"  
diffuse="1.000 1.000 1.000 1.000" 
 shiness="50.000" 
 specular="1.000 1.000 1.000 1.000"/>
</plane>
</objects>
</world>
</modelan3d>

Tuesday, November 27, 2018

Working on new functionality for Grid objects (4.6 version)

I wouldn't want to end the year without publishing something new. I've been working on a new feature to create textures, in order to use them as templates for creating grid objects. You can create textures in a simple way from text, drawing by freehand, or using one of the predefined vector shapes.




Tuesday, January 2, 2018

Integration with Google Poly is available at version 4.5 !!!

Integration with Google Poly is available now!!!. New version 4.5 on Google Play allows import objects directly from Google Poly.


Select "Add" and then select the new option "Google Poly".


Friday, December 29, 2017

Sunday, December 17, 2017

New version 4.4 available !!

New version 4.4 is available at Google Play!!!. New features:
  • New tool for select multiple objects.
  • New tools for group and un-group objects.  
  • New tools for align several objects (multiple selection), with the same value at X, Y or Z axis. 






Best 10 apps of 2017

http://technicalworldx.com/2017/12/14/10-top-apps-year-2017-tried/

Thanks to technicalworldx !!!

Friday, December 1, 2017