<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum]]></title>
		<link>http://forum.maratis3d.com/index.php</link>
		<description><![CDATA[The most recent topics at Maratis forum.]]></description>
		<lastBuildDate>Tue, 06 Oct 2020 13:41:35 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Maratis 4 Editor Load Level Feature Difficulty]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1285&amp;action=new</link>
			<description><![CDATA[<p>Hello everyone!</p><p>I&#039;m trying to modify the maratis 4 experimental brunch.<br />For now, I&#039;m stuck with level loading. </p><p>The project is MaratisEditor.<br />For level loading I added levelLoader in main.cpp, so it looks:</p><p> </p><div class="codebox"><pre><code>engine-&gt;getLevelLoader()-&gt;addLoader(xmlLevelLoad)</code></pre></div><p>This took place in winEvents function, when the window is created (MWIN_EVENT_CREATE).</p><br /><p>When I try to load level with</p><div class="codebox"><pre><code>engine-&gt;loadLevel(...)</code></pre></div><p> </p><p>from the winEvents in case MWIN_EVENT_CREATE, it works fine:<br /><a href="https://yadi.sk/i/-oDcZ1HMNVGSoA">https://yadi.sk/i/-oDcZ1HMNVGSoA</a></p><p>When i try to load level from somwhere else (for example, from onEvent method of MV3dEdit, there is a problem):<br /><a href="https://yadi.sk/i/Cw9BVE0jXnPDfw">https://yadi.sk/i/Cw9BVE0jXnPDfw</a></p><p>I checked log and did debug, maratis loads the textures both times.</p><p>So, could you give me the direction of moving to find a solution?</p>]]></description>
			<author><![CDATA[dummy@example.com (hog)]]></author>
			<pubDate>Tue, 06 Oct 2020 13:41:35 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1285&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[load textures in thread]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1282&amp;action=new</link>
			<description><![CDATA[<p>I have implemented in my project a&nbsp; multi-thread assets load, meshes and animations load perfectly, but the textures are left blank, what should I change in my project or in the engine to avoid this problem?</p>]]></description>
			<author><![CDATA[dummy@example.com (ArielRiv)]]></author>
			<pubDate>Tue, 09 Oct 2018 04:11:34 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1282&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[I created a save system with Lua's file functions! Get it here!]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1280&amp;action=new</link>
			<description><![CDATA[<p>I was inspired to create a save system when I read the idea from the creator of this thread:<br /><a href="http://forum.maratis3d.com/viewtopic.php?id=893">http://forum.maratis3d.com/viewtopic.php?id=893</a></p><p>I tried to use the &quot;<strong>dofile()</strong>&quot; function to load a new &quot;Lua&quot; file that was in the directory of my game, but that didn&#039;t work for published games, so I studied the File functions of Lua to build upon the idea from that guy&#039;s post.</p><p>I&#039;ve been searching the internet for snippets of code during my whole day.</p><p>I&#039;ll write the solution here for future generations that discover Maratis:</p><p>1. Create a new Project, and place a 3D object on the screen. Use &quot;<strong>Player</strong>&quot; as the object&#039;s name.</p><p>2. Create an empty script file called &quot;<strong>GameScript.lua</strong>&quot; and attach it to your Scene.</p><p>3. Then, paste this script into the empty file:</p><div class="codebox"><pre><code>Player = getObject(&quot;Player&quot;)

function onSceneUpdate()


    --  When the Z button is pressed, we will create the content of the file,
    --  to simulate what happens when a player saves the game for the first time.


    if isKeyPressed(&quot;Z&quot;) then
    file = io.open(&quot;save_data.ini&quot;, &quot;w+&quot;)
    file:write(&quot;1\n2\n3\nturn right&quot;)
    file:flush()
    file:close()
    end

    function checkLine(lineNumber, lineContent)

    -- Search for whatever you want by checking for a line number and then checking for the content of the line.
    -- You can copy and paste the next section to search for text in multiple lines.

        if lineNumber == 4 then
            if lineContent == &quot;turn right&quot; then
                rotate(Player, {10, 0, 0}, 1, &quot;local&quot;)
            end
            if lineContent == &quot;Maratis is my closest friend&quot; then
                rotate(Player, {-10, 0, 0}, 1, &quot;local&quot;)
            end
        end
    end



--  Pressing the X button on your keyboard will start the search by calling the function that&#039;s listed above.

    if isKeyPressed(&quot;X&quot;) then
        f = io.open(&quot;save_data.ini&quot;, &quot;r&quot;)
        count = 0

        for line in f:lines() do
            count = count + 1
            checkLine(count, line)
        end

        f:close()
    end




-- When the C button is pressed, you can modify a single line, like when your player unlocks more content.


    if isKeyPressed(&quot;C&quot;) then

        local hFile = io.open(&quot;save_data.ini&quot;, &quot;r&quot;) --Reading.
        local lines = {}
        local restOfFile
        local lineCt = 1
        for line in hFile:lines() do
            if(lineCt == 4) then -- This number is the line that you will modify.
                lines[#lines + 1] = &quot;Maratis is my closest friend&quot; --  Change the content of that line here.
                restOfFile = hFile:read(&quot;*a&quot;)
                break
            else
                lineCt = lineCt + 1
                lines[#lines + 1] = line
            end
        end
        hFile:close()

        hFile = io.open(&quot;save_data.ini&quot;, &quot;w&quot;) -- Write the file.
            for i, line in ipairs(lines) do
                hFile:write(line, &quot;\n&quot;)
            end
        hFile:write(restOfFile)
        hFile:close()

    end

end</code></pre></div><p>4. Now, press &quot;File&quot; to open the menu and click &quot;Save&quot;, and then press &quot;File&quot; and click &quot;Publish Project&quot;.</p><p>5. Find your project&#039;s directory, and then enter the &quot;published&quot; directory.</p><p>6. Create an empty file called &quot;<strong>save_data.ini</strong>&quot; in that directory.</p><p>7. Now, double-click the &quot;exe&quot; file to try the game.</p><p>8. When you hold the &quot;X&quot; button on your keyboard, the code will search line 4 of the text file for the text &quot;<strong>turn right</strong>&quot;. Since the file is empty, it will not find the text, so your character won&#039;t rotate. When you press the &quot;Z&quot; button, four lines will be created in the text file, like this:</p><div class="codebox"><pre><code>1
2
3
turn right</code></pre></div><p>That&#039;s an example of what happens when a player starts a new game and doesn&#039;t have saved data yet.</p><p>Now that the words &quot;turn right&quot; have been saved in line 4, you can press the &quot;X&quot; button again, and your character will rotate while it&#039;s pressed!</p><p>You can use this to create a saving system. For example, when the game is first opened, you can make it search for a piece of text on line 27 that says &quot;100&quot;, which can mean that all levels have been unlocked. If that text is different, you can choose to only unlock a few levels for your players.</p><p>After you do all of that, you should press the &quot;C&quot; button. That will change the text of line 4 from &quot;turn right&quot; to &quot;Maratis is my closest friend&quot;. Now, when you press the X button, your character will rotate left instead of right. Study the code to see if you can understand how the rotation changed.</p><p>Note: I don&#039;t know if your characters will rotate in the directions that I&#039;ve mentioned because this might depend on how your 3D models are created, but they should still rotate. If they rotate in different directions than the ones I mentioned, you shouldn&#039;t think it&#039;s because of a glitch.</p><br /><p>Important idea about people who are worried about people cheating by changing the text of the file:</p><p>If you&#039;re worried about people changing the text to unlock the whole game immediately, you can just encrypt it in your head. For example, don&#039;t use messages like &quot;All-Weapons-Are-Unlocked&quot;. Create random gibberish and track it in a journal while you create your game, so &quot;tztz47sda&quot; on line 27 might mean that all weapons are unlocked. That means that at least one person will have to fully complete your game without cheating before the functions of your gibberish phrases are known. He can share his perfect save file with all other people later, but that happens will all games. Even with games created by professional companies, one guy can finish a whole game without cheating and share that save file with everyone, so don&#039;t be scared by this.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Tue, 12 Dec 2017 21:43:49 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1280&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Call for contribution : we need you !]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1034&amp;action=new</link>
			<description><![CDATA[<p>Dear community,</p><p>as you may know, the binaries available on Maratis website are out of date and the only way for users to get the latest version is to compile Maratis themselves. The current svn trunk code is stable and provides a lot of bug fixes, it&#039;s time to release new binaries !</p><p>This is an official call for help, we need contributors to maintain the 3 major system builds.<br />You will have in charge the maintenance of the SVN trunk build system and the building of the official releases for your platform.</p><p>- We need a Windows build maintainer for 32 and 64bits<br />- And a Linux build maintainer for 32 and 64bits<br />- I will maintain OSX and iOS-simulator builds, but a iOS-device tester is welcome (I don&#039;t have access to iOS devices)</p><p>Lets provide together regular releases for the community !</p><p>How to build : <a href="http://wiki.maratis3d.org/index.php?title=Building_Maratis">http://wiki.maratis3d.org/index.php?tit &#133; ng_Maratis</a></p><p><strong>SUMMARY :</strong> building and testing</p><p>- Linux 32 : <strong>ishands :</strong> <a href="http://apps.ishands.cf/maratis/Maratis3.2-beta.zip">link</a><br />- Linux 64 : <strong>bryce :</strong> <a href="http://skyland.loop404.com:8080/maratisdownloads">link</a><br />- Windows 32 : <strong>Akira_san :</strong> <a href="https://drive.google.com/file/d/0B6yNvVGWiWysLWlTTllJMF96blU/edit?usp=sharing">link</a> <strong>Vegas :</strong> <a href="https://dl.dropboxusercontent.com/u/19970067/Maratis/zReleases/Maratis_r240_win32_i386.rar">link</a><br />- Windows 64 : <strong>ulbex</strong> proposed his help<br />- Max OSX 32/64 and iOS : <strong>Anaël :</strong> <a href="http://maratis3d.org/download/maratis/maratis322/Maratis-3.22-betaB-osx.zip">link</a></p><p><span style="color: #FF0000">please test and give feedbacks !</span></p><p><strong>Changelog</strong> :</p><p>- performance improvement<br />- minor bug fixes and cleaning<br />- editor: edit light-color/text-color/gravity didn&#039;t update correctly<br />- X11 fullscreen mode fix<br />- joystick support for linux<br />- lua : corrected setParent 0 to unlink objects<br />- activate/deactivate physics bug<br />- Standard renderer fix (reset m_currentCamera at the end of drawScene)</p>]]></description>
			<author><![CDATA[dummy@example.com (wild master)]]></author>
			<pubDate>Fri, 08 Dec 2017 14:36:39 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1034&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Problem with multiple sceneLayers]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1277&amp;action=new</link>
			<description><![CDATA[<p>I have three scenes:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-Sky<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-World<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-GUI</p><p>I need the three scenes to be shown as layers at once in this way: World is the Sky layer and GUI is the World layer, meaning Sky is in the background, World in the middle and GUI is in front. but the engine only allows the rendering of two layers, what can I do?</p>]]></description>
			<author><![CDATA[dummy@example.com (ArielRiv)]]></author>
			<pubDate>Tue, 14 Nov 2017 04:45:31 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1277&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[3dsmax exporter updated]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1276&amp;action=new</link>
			<description><![CDATA[<p>I resumed the development of the maratis exporter for 3dsmax.<br />I have uploaded the first version of the new plugin.<br />There is still some bugs, so consider it a early test version.</p><p>I have compiled it for 3dsmax 2018.</p><p><a href="https://stigatle.no/index.php/maratis-3dsmax-exporter/">https://stigatle.no/index.php/maratis-3dsmax-exporter/</a></p><p>I have created a video tutorial, a basic manual can be downloaded from my website,<br />as well as the test scene used in the video tutorial.</p><p>It does already support a lot of features:<br />Animated meshes with bones.<br />Static meshes.<br />Diffuse texture and such<br />onmi\spot light<br />free\target camera (with FOV \ perspective \ orthographic settings)<br />Layers exports as &#039;scenes&#039; in maratis.</p><p>Check the video if you want.<br />The current bug is with the physics, I have created a modifier and such for it, but there is still some remaining issues I need to fix, a updated release is to be expected soon.</p><p>If anything is unclear or could be explained better- then feel free to let me know.<br />I have tried to make it as easy as possible to get things up and running.</p>]]></description>
			<author><![CDATA[dummy@example.com (hedphelym)]]></author>
			<pubDate>Fri, 22 Sep 2017 18:57:02 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1276&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[3dsmax exporter - physics mesh VS graphics mesh aligment issue.]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1275&amp;action=new</link>
			<description><![CDATA[<p>Hi,<br />I&#039;m currently updating my 3dsmax exporter for maratis, and I&#039;ve run into a slight issue.<br />It seems as if the physics mesh is not overlapping the graphics mesh the way I want.</p><p>Let&#039;s take a box as example (in 3dsmax) -<br />the default pivot point of a 3dsmax box is at the lower end of the box.<br />But it seems as if maratis expects the &#039;pivot&#039; to be in the center of the box?</p><p>So I guess my question now is:<br />How does maratis create the physics box? is it created from the &#039;center&#039; and out?<br />What parameters does it use from the graphics mesh to get the proper size it should be? (bounding box?).<br />And is there a way to see the physics mesh for debugging?</p><p>Right now it&#039;s pretty hard to &#039;see&#039; whats going on when all you see is physics shapes going into other shapes.<br />For example spheres goes half into the floor, when they should be on top, the sphere is fine if I set the pivot on the box floor to be in the center,&nbsp; so it seems as if it&#039;s the issue.</p><p>All though it&#039;s not ideal in any way - because I would like to move my pivot freely and then also align the physics with the graphics - regardless of where the pivot is located in 3dsmax. I&#039;m sure I can fix it somehow on my end, but it&#039;s just a bit unclear to me how it works.</p><p>If it&#039;s unclear I can upload a scene, one where the pivot\graphics\physics is wrong, and one where it&#039;s aligned.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sat, 09 Sep 2017 21:38:42 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1275&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[is maratis dead?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1167&amp;action=new</link>
			<description><![CDATA[<p>if ever, what reason killed the growth of maratis?</p>]]></description>
			<author><![CDATA[dummy@example.com (Nomad)]]></author>
			<pubDate>Sat, 29 Jul 2017 18:16:51 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1167&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[How to parent object to bone in C++?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1273&amp;action=new</link>
			<description><![CDATA[<p>I have tried in several ways to link an object to a bone (for example, to match a weapon to the hand of a character) but I have had difficulties with the transformations and I have not been able to solve them</p>]]></description>
			<author><![CDATA[dummy@example.com (ArielRiv)]]></author>
			<pubDate>Wed, 24 May 2017 07:52:11 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1273&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Working on a new game]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1225&amp;action=new</link>
			<description><![CDATA[<p>been away from maratis for awhile, just said i&#039;d give it a look at again.</p><p>here&#039;s a video of a little project i&#039;m working on.</p><p><a href="https://vimeo.com/197737799">https://vimeo.com/197737799</a></p><p>let me know what you think of the idea.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 09 Jan 2017 13:11:05 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1225&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Set object position to mouse x and y position]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1224&amp;action=new</link>
			<description><![CDATA[<p>so heres my simple code:</p><div class="codebox"><pre><code>Camera =getObject(&quot;Camera0&quot;)
player = getObject(&quot;Entity0&quot;) 



function onSceneUpdate()
colorr=math.random(0, 2)
colorg=math.random(0, 2)
colorb=math.random(0, 2)




getX = getAxis(&quot;MOUSE_X&quot;)
getY = getAxis(&quot;MOUSE_Y&quot;)

var1 = updateMatrix(getX)
print (var1)



Camera = getCurrentCamera()
setCameraClearColor(Camera, {colorr, colorg, colorb})




end</code></pre></div><p>i&#039;m trying to set the position of player to mouse position but when i use &quot;getAxis(&quot;MOUSE_X&quot;) it throws out a strange float, what can i do with this data?</p>]]></description>
			<author><![CDATA[dummy@example.com (blend)]]></author>
			<pubDate>Mon, 02 Jan 2017 02:45:12 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1224&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[How to disable smoothing textures in maratis?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1183&amp;action=new</link>
			<description><![CDATA[<p>I want to achieve a retro result, using very small as in this game textures:</p><p><a href="http://cdn.akamai.steamstatic.com/steam/apps/496920/header.jpg?t=1469233030">http://cdn.akamai.steamstatic.com/steam &#133; 1469233030</a></p><p><a href="http://s2.n4g.com/news/1941257_0.jpg">http://s2.n4g.com/news/1941257_0.jpg</a></p><p><a href="http://insertmoin.de/wp-content/uploads/2016/08/moirai.jpg">http://insertmoin.de/wp-content/uploads &#133; moirai.jpg</a></p><p><a href="https://i.ytimg.com/vi/50jOBb5QKMI/maxresdefault.jpg">https://i.ytimg.com/vi/50jOBb5QKMI/maxresdefault.jpg</a></p><br /><p>the problem is that maratis smooth textures making small textures look very blurry, can I disable smoothing?</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Wed, 28 Sep 2016 08:46:14 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1183&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Dead links!]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1173&amp;action=new</link>
			<description><![CDATA[<p>Hi everybody!</p><p>I found this little engine today and I wanted to play around with it a bit. But the links are dead on the download page for me. So could anyone link me to a working download or could you fix the links. I don&#039;t really want to compile the code, but I might do if I must.</p><p>Anyway, this engine looks great! I like that it has an editor</p><p>Thanks,</p><p>Jacob</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 29 Aug 2016 19:23:04 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1173&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Is Maratis3d Dead?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1172&amp;action=new</link>
			<description><![CDATA[<p>Hey all im back! </p><p>Me and my team decided to work with unity3d as some of the things we needed to do where a little difficult with Maratis3D. </p><p>Anyway i just wanted to know. Is Maratis3D dead? the same version has been out for some time now with no changes. </p><p>Also if at all possible does anyone know where to get the source for Maratis i clicked the link on the home page how ever it lead me to a error page.</p>]]></description>
			<author><![CDATA[dummy@example.com (ShadowDragon)]]></author>
			<pubDate>Thu, 25 Aug 2016 01:33:57 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1172&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[letters that do not belong to English are incorrectly in a MOText,]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?id=1171&amp;action=new</link>
			<description><![CDATA[<p>when I asingo a text string with a MOText setText object symbols that non-English language are displayed incorrectly, for example &quot;Ñ U&quot; and the like. ¿I can fix this display? I have noticed that the editor no problem any.</p><p>Help me please!! :&quot;(</p>]]></description>
			<author><![CDATA[dummy@example.com (ArielRiv)]]></author>
			<pubDate>Sat, 20 Aug 2016 18:45:57 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?id=1171&amp;action=new</guid>
		</item>
	</channel>
</rss>
