The Sponza level has a good example of it:
http://www.maratis3d.org/?page_id=53
176 2014-02-11 08:47:09
Re: Get mouse position (4 replies, posted in Scripting)
177 2014-02-11 08:44:06
Re: No mesh when exporting from Blender to Maratis (2 replies, posted in General)
I have a tutorial for that. It may help:
http://forum.maratis3d.com/viewtopic.php?id=859
The issue might be in the .mesh file. Sometimes I have to open it in a text editor and adjust the opacity value.
178 2014-02-11 00:18:53
Re: Maratis based game engine! (2 replies, posted in General)
Well, the license is free and open sourced, so I don't see why not. But anael might be able to answer that better than I.
179 2014-02-10 19:12:25
Re: Automatic Text Display (13 replies, posted in Tutorials/Examples)
You are TOO cool. haha. You added backspace and delete. nice.
180 2014-02-10 19:04:13
Re: Blender Plugins (9 replies, posted in External Tools)
The BEPUIK plugin works wonders! It has been updated for 32bit and 64bit and it imports into Maratis just fine.
Also, this plugin helps making clothing animations easier (since we can only use armature animations).
181 2014-02-10 15:57:19
Re: How to delete clones? (6 replies, posted in General)
Thank you! When I am finished getting the graphical side of things figured out, I can dig deeper into the code side of things, and these posts will help a lot, thanks!.
182 2014-02-10 15:51:02
Re: Automatic Text Display (13 replies, posted in Tutorials/Examples)
I just tried out the text input script. THANK YOU SO MUCH! These scripts will come in so handy. I might be able to find a way to make the text delete when you press a key (put them into an array?)
183 2014-02-10 15:49:58
Re: Automatic Text Display (13 replies, posted in Tutorials/Examples)
I started a thread called "Code Snippets" I wonder if I should put my snippets on the wiki. That way, if people want a certain effect, they can just grab the code from there. These scripts would be nice as little snippets too.
184 2014-02-10 05:47:40
Re: CMake build system (33 replies, posted in General)
I just went to the wiki just now, you changed that Dahnielson? If so, it looks nice!
I think all the pages need a bit of reformatting. I haven't added anything in a while, trying to get stuff to work first.
Good to have you here also.
185 2014-02-10 05:43:36
Re: Question for Anael (2 replies, posted in Off-Topic)
Hahaha.
I feel the same way my good man.
Very few people who prefer the Lity. haha.
186 2014-02-10 05:26:56
Re: Automatic Text Display (13 replies, posted in Tutorials/Examples)
I moved some stuff around in the automatic text display script to make it more dynamic to use, but I still am struggling to understand what string.sub does in layman terms, or even what those lines of code does, its a very light script (thanks for that) but that part gets me.
--This is a text object
Text0 = getObject("Text0")
--This is a text object
Info = getObject("Info")
--time variable
t = 0
--initialize counter variable
count = 0
--Text you want printed
-- \n is to switch line
SampleText = "MOS Technology SID" ..
"\nGeneral Instrument AY-3-8910" ..
"\nAnalog-digital hybrid Atari POKEY" ..
"\nYamaha YM2149 on the Atari ST"
--Alternate text that can be displayed
myText = "Welcome to the Renderer"
function TypeText(text_name)
setText(Text0, T1text)
--increment timer
t = t + 1
-- Change 5 to a different value to increase or decrease typing speed
if t == 5 then
count = count + 1
t = 0
end
-- it's that string.sub thing who's writing letter one by one
for i=1, count do T1text = string.sub (text_name, 1, 0+i) end
-- Stop counting when we are at the end of the line
if count == string.len(text_name) then t = 0 end
Infotext = "Line Lenght :: " .. count
setText(Info, Infotext)
end
function onSceneUpdate()
TypeText(myText)
end
Oops, I re-read your initial post, I guess you had a time trying to figure out how it works too. hehe.
187 2014-02-09 17:16:48
Re: Bones manipulation (36 replies, posted in General)
This looks interesting, wish I could help, but I'm too simple for this complexity, haha. Hopefully someone will chime in, I'm curious as to what the issue could be.
How do you get the orientation of your bones? Perhaps a visual cue for that would be something you could add.
188 2014-02-09 17:13:50
Topic: Question for Anael (2 replies, posted in Off-Topic)
So, are you more of a "quantity" person or a "quality" person?
I'm guessing the latter. Hehe
189 2014-02-06 16:56:23
Re: Help!!! (4 replies, posted in General)
I copied the link to my dropbox, see if you can download it from here:
https://www.dropbox.com/s/jaso1nsneupp5 -win32.zip
ooops, vegas beat me to it by a second! haha
190 2014-02-05 17:12:32
Re: How to delete clones? (6 replies, posted in General)
Thanks Vegas. I am trying to get the speed bumps out of the way, I might need this functionality in the future. The code I posted on my post called "Code snippets" can clone a bunch of objects (get's slow when physics are turned on) but I wanted to use them as markers that delete the last clone one a certain number of clones has been created. Once I a decent animated test character I will start making more test levels and code snippets.
191 2014-02-05 17:05:35
Topic: Maratis would be a big sell on Ubuntu Linux (4 replies, posted in General)
I was just thinking...
"Is there really a solid game engine for ubuntu Linux?"
Also, is Maratis on the ubuntu store? It would be a sure way to get publicity.
Of course, we need the kinks ironed out first, but that is one way to introduce Maratis to a larger and more willing audience.
Just a thought.
(Free of course. hehe)
192 2014-02-05 16:56:24
Re: my project for the competition (30 replies, posted in Showcase)
I think there is an issue with placing the ship on the bottom row (using Windows 8 on a PC). I tried to place the ship, but I couldn't, after a while I couldn't place it on any row. Thanks for uploading the source so I can see how you did this! And it looks nice!
193 2014-02-03 22:04:13
Topic: Where was that API documentation? (1 replies, posted in General)
There was someone on here who had posted a link to an alternate website they made documenting the Maratis Game engine API (as the wiki still has virtually no documentation other than names on it).
Someone I told about Maratis might be interested in using it, but the main question they have is if it has documentation for it's C++ API.
I hope that I can say yes (with a link).
194 2014-02-03 21:56:58
Re: CMake build system (33 replies, posted in General)
Hi Dahnielson. Welcome. Good to see more users come.
195 2014-02-03 05:59:57
Re: my project for the competition (30 replies, posted in Showcase)
Yeah, nice game! Tomorrow I am going to work on getting a good animated character (idle and walking animation, perhaps transition) into Maratis to use as a test person for my game levels. I already have the code in the Soldier in St. Petersburg level, I just need better animation. We will see.
196 2014-02-02 05:12:23
Topic: I think This is possible with Maratis... (1 replies, posted in Off-Topic)
Was looking at some games made with Unity 3d, and I have found a good style of game to go for with Maratis. It's a game called "Gone Home."
http://www.youtube.com/watch?v=sqSbYsUalMQ#t=63
After looking at the style, it sorta reminded me of my demo level I was doing:
http://forum.maratis3d.com/viewtopic.php?id=888
(the one with the boxes)
The animations are simple, and it looks like the enableCameraLayer function would be used to do UI elements like in this game.
Full review:
http://www.youtube.com/watch?v=dhv0_tQJp0g
197 2014-01-31 03:01:50
Re: How to delete clones? (6 replies, posted in General)
That looks like it would delete the third item in the cloneList table.
I just found out how to use the table.insert function and the table.remove function. But I don't know how to use it to do this.
198 2014-01-30 01:29:41
Topic: How to delete clones? (6 replies, posted in General)
How would I delete clones that have been added to a scene. In my Code snippets post I am able to create them, and I have a counter that can do something once it reaches a number (used it for tracking how many times a key was pressed).
But when I use the deactivate item on the original object from which the clones were made, maratis crashes.
How do I delete the clones individually? Would I have to use that clonelist thing from the wiki in some special way?
199 2014-01-30 01:09:26
Re: OO stuff and frame drop (13 replies, posted in Scripting)
If you want the spawning to behave more like a particle system, you probably want to use the getClone function for bullets, and also give each clone a lifetime that it can be active.
Take you can take cues from the settings of the particle system in Blender. I just made a post called "Code snippets." The first post is a snippet that allows you to clone an object on another object's position. My objects are 3d with no velocity, but if your objects are just flat planes then it should move even faster.
200 2014-01-30 00:37:02
Topic: Code Snippets. (3 replies, posted in Scripting)
I want to post a collection of code snippets that do useful things you could use in your game. I will try to keep the code short and easy to understand;
Clone an object on another object's location:
function offsetClone(object1,offset,object2)
if onKeyUp("M") then
objectPosition = getPosition(object2)
clonedObject = getClone(object1)
setPosition(clonedObject,{objectPosition[1] ,objectPosition[2] + offset,objectPosition[3]})
end
end
How it works:
This function takes three arguments:
-The object whose location you want to use
-The direction along the Y axis you want to offset the clone
-The object you want to clone
Usage:
function onSceneUpdate()
offsetClone(clone,3,object)
end
It can be read:
Offset the clone object three units from another object (along the Y axis)
More functionality:
function offsetClone(object1,offset,object2,axis)
if onKeyUp("M") then
objectPosition = getPosition(object2)
clonedObject = getClone(object1)
x_axis = {objectPosition[1] + offset,objectPosition[2],objectPosition[3]}
y_axis = {objectPosition[1] ,objectPosition[2] + offset,objectPosition[3]}
z_axis = {objectPosition[1] ,objectPosition[2],objectPosition[3] + offset}
setPosition(clonedObject,axis)
end
end
offsetClone(clone,.5,object,x_axis)
It can be read:
Offset the clone object .5 units from another object along the X axis